ConvertFileToPDF

This function converts file (Word, Excel etc) from given field to PDF file and put it in given field.

Syntax

ConvertFileToPDF("sourceField","destinationField",["destinationFileName"]);

Function arguments

  • sourceField – (String) Name or value of the document field to be converted to PDF.
  • destinationField – (String) Name of the document field in which converted file will be put.
  • destinationFileName – (String) [Optional] Name of the converted file. If empty then converted file will have the same name like source file with pdf extension.

Return value

This function returns Decimal.
Returns true if conversion was succesfull, otherwise returns false.

Examples

Example 1:
This will convert file from Aggrement field to PDF and put resulting file in AggrementPDF field.

if (ConvertFileToPDF("Aggrement","AggrementPDF")) { }

Example 2:
This will convert file from Aggrement field to PDF, set PDF file name to value containing [ClientName] field value and put resulting file in AggrementPDF field.

if (ConvertFileToPDF("Aggrement","AggrementPDF",[ClientName]+"_aggrement.pdf")) { }
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.