<< Fare clic per visualizzazione il sommario >> Percorso: API di piattaforma > JamioPlug > JamioPlug Document Automation > ConvertToPDF |
Plug
Method
ConvertToPDF
Description
Converts an input file to PDF.
Supported input file types:
•Word File: DOC, DOCM, DOCX, DOT, DOTM, DOTX, FODT, HTML, MHTML, ODT, OTT, RTF, TXT, XHTML, XML, SQL
•Excel File: XLS, XLSX, XLSM, XLSB, XLTX, XLTM, CSV, SpreadsheetML, ODS, ODF
•Presentation File: PPT, PPTX, PPS, POT, PPSX, PPTM, PPSM, POTX, POTM, ODP
•Image File: BMP, JPE, JPEG, JPG, PNG, GIF, TIF, TIFF
•Signed File: P7M, TSD
•Svg File: SVG
•Email message: EML
Input |
|||
Name |
Description |
Type |
Optional |
serverAddress |
Server address for an external Domain (or "" for the current Domain) |
String |
Y |
token |
The session token (for the current session in the current Domain may be null or empty) |
String |
Y |
file |
File to be converted. The process attachment reference of the file to be converted. |
Reference |
|
fileName |
Input file name (or file extension; if null, the application will try to read it from the stream). The file name is checked, if it is invalid it will be changed according to the following criteria: •If it is null, empty, or contains only spaces, it is set to "No_Name"; •If it contains invalid characters, they are replaced with the character "_"; •If the name (without the extension) is a reserved name ("NUL", "PRN", "COM1", etc.), the "_" character is attached to the name; •If the name has an extension, and is longer than 253 characters, it is automatically truncated to 253 characters; •If the total length of the name (including extension) is longer than 255 characters, the name is truncated while the extension remains unchanged (255 - maximum length of the name including period and extension). |
String
Supported input file types: DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTF, FODT, ODT, OTT, HTML, MHTML, XHTML, TXT, SQL, XML, JPG, JPEG, JPE, BMP, TIFF, TIF, GIF, PNG, SVG, XLS, XLSX, XLSM, XLSB, XLTX, XLTM, CSV, SpreadsheetML, ODS, ODF, PPT, PPTX, PPS, POT, PPSX, PPTM, PPSM, POTX, POTM, ODP, P7M, TSD, EML. |
Y |
settings |
Conversion settings. |
Y |
|
Output |
|||
Name |
Description |
Type |
Optional |
returnValue |
The process attachment reference of the output PDF file. |
Reference |
|