convertImage
Converts a stored image file to PDF format and saves it to the file upload location.
Syntax
function convertImage(sourceRealName: string): string
| Parameter | Description |
|---|---|
sourceRealName
|
Unique internal ID of the image file (real name). |
Return Value
Returns a string containing the saved PDF's real name.
Examples
In this example:
- We convert the ID_d9bf2c95-ab7d-4acc-befb-4b5d448f09f6.png file to PDF format.
- We save the real name of the new PDF file in a variable called message.
- We display the message variable on screen. For details on how to display messages, see setMessage.
message = convertDocx('ID_d9bf2c95-ab7d-4acc-befb-4b5d448f09f6.png');
setMessage(message);