canvasGenerateFrom
Last updated
Last updated
Converts a file data to a canvas, canvas are mainly used for printing.
Web
Mobile
Name | Description | Data Type | Default | Options | Required |
---|---|---|---|---|---|
Description | Output Type |
---|---|
The function to be executed when the canvas is generated successfully.
The function to be executed when the canvas is not generated.
Description | Output Type |
---|---|
Description | Output Type |
---|---|
type
The data type of the file to be converted, basically what is the data type of the 'value'.
Text
base64
base64
No
value
The data of the file to be converted.
Any
-
-
Yes
fileType
The file type of the file to be converted, basically what is the file type of the 'value'.
Text
image
image, pdf
No
documentSize
If the 'fileType' is 'pdf', this parameter is used to scale the size appropriately.
Text or Number
-
a4, {Any Number}
No
Returns 'true' or 'false', based on the execution status.
Boolean
Returns the html canvas.
Returns the error.
Text/Object