Child pages
  • pdf_output

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{hidden} DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden} {sub-section:description|text=}{sub-section}\\ {table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}byte[]{td}{td}[#combinePDFDocuments]\(array) Combine muliple PDF docs into one.{td}{tr}{tbody}{tbody}{tr}{td}byte[]{td}{td}[#combineProtectedPDFDocuments]\(array, passwords) Combine muliple protected PDF docs into one.{td}{tr}{tbody}{tbody}{tr}{td}byte[]{td}{td}[#convertPDFFormToPDFDocument]\(pdf_form, name_value_array) Convert a PDF form to a PDF document.{td}{tr}{tbody}{tbody}{tr}{td}byte[]{td}{td}[#convertProtectedPDFFormToPDFDocument]\(pdf_form, pdf_password, name_value_array) Convert a protected PDF form to a PDF document.{td}{tr}{tbody}{tbody}{tr}{td}byte[]{td}{td}[#endMetaPrintJob]\() Ends a previously started meta print job.{td}{tr}{tbody}{tbody}{tr}{td}{td}{td}[#getPDFPrinter]\(\[filename\]) Returns a PDF printer that can be used in print calls.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getPagesPrinted]\() Returns the number of pages printed by the last print call done in the context of a meta print job.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getTotalPagesPrinted]\() Returns the total number of pages printed in the context of a meta print job.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#insertFontDirectory]\() Add a directory that should be searched for fonts.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#startMetaPrintJob]\() Used for printing multiple things into the same PDF document.{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=combinePDFDocuments|class=node}{tr:id=name}{td}h6.combinePDFDocuments{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}byte[]{span}{span:id=iets|style=float: left; font-weight: bold;}combinePDFDocuments{span}{span:id=iets|style=float: left;}\(array){span}{td}{tr}{tr:id=des}{td}{sub-section:combinePDFDocuments_des|text=|trigger=button}{sub-section}{sub-section:combinePDFDocuments_des|trigger=none|class=sIndent}Combine muliple PDF docs into one.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:combinePDFDocuments_snc|text=|trigger=button}{sub-section}{sub-section:combinePDFDocuments_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:combinePDFDocuments_prs|text=|trigger=button}{sub-section}{sub-section:combinePDFDocuments_prs|trigger=none|class=sIndent}array {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:combinePDFDocuments_ret|text=|trigger=button}{sub-section}{sub-section:combinePDFDocuments_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:combinePDFDocuments_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:combinePDFDocuments_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:combinePDFDocuments_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:combinePDFDocuments_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:combinePDFDocuments_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:combinePDFDocuments_sam|trigger=none}{code:language=javascript} //combine muliple pdf docs into one. pdf_blob_column = combinePDFDocuments(new Array(pdf_blob1,pdf_blob2,pdf_blob3)); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=combineProtectedPDFDocuments|class=node}{tr:id=name}{td}h6.combineProtectedPDFDocuments{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}byte[]{span}{span:id=iets|style=float: left; font-weight: bold;}combineProtectedPDFDocuments{span}{span:id=iets|style=float: left;}\(array, passwords){span}{td}{tr}{tr:id=des}{td}{sub-section:combineProtectedPDFDocuments_des|text=|trigger=button}{sub-section}{sub-section:combineProtectedPDFDocuments_des|trigger=none|class=sIndent}Combine muliple protected PDF docs into one.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:combineProtectedPDFDocuments_snc|text=|trigger=button}{sub-section}{sub-section:combineProtectedPDFDocuments_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:combineProtectedPDFDocuments_prs|text=|trigger=button}{sub-section}{sub-section:combineProtectedPDFDocuments_prs|trigger=none|class=sIndent}array passwords {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:combineProtectedPDFDocuments_ret|text=|trigger=button}{sub-section}{sub-section:combineProtectedPDFDocuments_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:combineProtectedPDFDocuments_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:combineProtectedPDFDocuments_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:combineProtectedPDFDocuments_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:combineProtectedPDFDocuments_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:combineProtectedPDFDocuments_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:combineProtectedPDFDocuments_sam|trigger=none}{code:language=javascript} //combine muliple protected pdf docs into one. pdf_blob_column = combineProtectedPDFDocuments(new Array(pdf_blob1,pdf_blob2,pdf_blob3), new Array(pdf_blob1_pass,pdf_blob2_pass,pdf_blob3_pass)); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=convertPDFFormToPDFDocument|class=node}{tr:id=name}{td}h6.convertPDFFormToPDFDocument{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}byte[]{span}{span:id=iets|style=float: left; font-weight: bold;}convertPDFFormToPDFDocument{span}{span:id=iets|style=float: left;}\(pdf_form, name_value_array){span}{td}{tr}{tr:id=des}{td}{sub-section:convertPDFFormToPDFDocument_des|text=|trigger=button}{sub-section}{sub-section:convertPDFFormToPDFDocument_des|trigger=none|class=sIndent}Convert a PDF form to a PDF document.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:convertPDFFormToPDFDocument_snc|text=|trigger=button}{sub-section}{sub-section:convertPDFFormToPDFDocument_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:convertPDFFormToPDFDocument_prs|text=|trigger=button}{sub-section}{sub-section:convertPDFFormToPDFDocument_prs|trigger=none|class=sIndent}pdf_form name_value_array {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:convertPDFFormToPDFDocument_ret|text=|trigger=button}{sub-section}{sub-section:convertPDFFormToPDFDocument_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:convertPDFFormToPDFDocument_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:convertPDFFormToPDFDocument_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:convertPDFFormToPDFDocument_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:convertPDFFormToPDFDocument_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:convertPDFFormToPDFDocument_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:convertPDFFormToPDFDocument_sam|trigger=none}{code:language=javascript} var pdfform = plugins.file.readFile('c:/temp/1040a-form.pdf'); //var field_values = plugins.file.readFile('c:/temp/1040a-data.fdf');//read adobe fdf values or var field_values = new Array()//construct field values field_values[0] = 'f1-1=John C.J.' field_values[1] = 'f1-2=Longlasting' var result_pdf_doc = plugins.pdf_output.convertPDFFormToPDFDocument(pdfform, field_values) if (result_pdf_doc != null) { plugins.file.writeFile('c:/temp/1040a-flatten.pdf', result_pdf_doc) } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=convertProtectedPDFFormToPDFDocument|class=node}{tr:id=name}{td}h6.convertProtectedPDFFormToPDFDocument{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}byte[]{span}{span:id=iets|style=float: left; font-weight: bold;}convertProtectedPDFFormToPDFDocument{span}{span:id=iets|style=float: left;}\(pdf_form, pdf_password, name_value_array){span}{td}{tr}{tr:id=des}{td}{sub-section:convertProtectedPDFFormToPDFDocument_des|text=|trigger=button}{sub-section}{sub-section:convertProtectedPDFFormToPDFDocument_des|trigger=none|class=sIndent}Convert a protected PDF form to a PDF document.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:convertProtectedPDFFormToPDFDocument_snc|text=|trigger=button}{sub-section}{sub-section:convertProtectedPDFFormToPDFDocument_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:convertProtectedPDFFormToPDFDocument_prs|text=|trigger=button}{sub-section}{sub-section:convertProtectedPDFFormToPDFDocument_prs|trigger=none|class=sIndent}pdf_form pdf_password name_value_array {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:convertProtectedPDFFormToPDFDocument_ret|text=|trigger=button}{sub-section}{sub-section:convertProtectedPDFFormToPDFDocument_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:convertProtectedPDFFormToPDFDocument_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:convertProtectedPDFFormToPDFDocument_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:convertProtectedPDFFormToPDFDocument_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:convertProtectedPDFFormToPDFDocument_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:convertProtectedPDFFormToPDFDocument_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:convertProtectedPDFFormToPDFDocument_sam|trigger=none}{code:language=javascript} var pdfform = plugins.file.readFile('c:/temp/1040a-form.pdf'); //var field_values = plugins.file.readFile('c:/temp/1040a-data.fdf');//read adobe fdf values or var field_values = new Array()//construct field values field_values[0] = 'f1-1=John C.J.' field_values[1] = 'f1-2=Longlasting' var result_pdf_doc = plugins.pdf_output.convertProtectedPDFFormToPDFDocument(pdfform, 'pdf_password', field_values) if (result_pdf_doc != null) { plugins.file.writeFile('c:/temp/1040a-flatten.pdf', result_pdf_doc) } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=endMetaPrintJob|class=node}{tr:id=name}{td}h6.endMetaPrintJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}byte[]{span}{span:id=iets|style=float: left; font-weight: bold;}endMetaPrintJob{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:endMetaPrintJob_des|text=|trigger=button}{sub-section}{sub-section:endMetaPrintJob_des|trigger=none|class=sIndent}Ends a previously started meta print job. For meta print jobs that were stored in memory, not in a file on disk, also returns the content of the generated PDF document.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:endMetaPrintJob_snc|text=|trigger=button}{sub-section}{sub-section:endMetaPrintJob_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:endMetaPrintJob_prs|text=|trigger=button}{sub-section}{sub-section:endMetaPrintJob_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:endMetaPrintJob_ret|text=|trigger=button}{sub-section}{sub-section:endMetaPrintJob_ret|trigger=none|class=sIndent}byte[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:endMetaPrintJob_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:endMetaPrintJob_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:endMetaPrintJob_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:endMetaPrintJob_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:endMetaPrintJob_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:endMetaPrintJob_sam|trigger=none}{code:language=javascript} //to print multiple forms to one pdf document (on file system). var success = plugins.pdf_output.startMetaPrintJob('c:/temp/out.pdf') if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); plugins.pdf_output.endMetaPrintJob() //to print multiple forms to one pdf document (to store in dataprovider). var success = plugins.pdf_output.startMetaPrintJob() if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); mediaDataProvider = plugins.pdf_output.endMetaPrintJob() {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getPDFPrinter|class=node}{tr:id=name}{td}h6.getPDFPrinter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}{span}{span:id=iets|style=float: left; font-weight: bold;}getPDFPrinter{span}{span:id=iets|style=float: left;}\(\[filename\]){span}{td}{tr}{tr:id=des}{td}{sub-section:getPDFPrinter_des|text=|trigger=button}{sub-section}{sub-section:getPDFPrinter_des|trigger=none|class=sIndent}Returns a PDF printer that can be used in print calls. If a file name is provided, then a PDF printer that generates a PDF into the specified file is returned. If no argument is provided, then the PDF printer corresponding to the last started meta print job is returned.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getPDFPrinter_snc|text=|trigger=button}{sub-section}{sub-section:getPDFPrinter_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getPDFPrinter_prs|text=|trigger=button}{sub-section}{sub-section:getPDFPrinter_prs|trigger=none|class=sIndent}\[filename\] {sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=ret}{td}*Returns*\\{sub-section:getPDFPrinter_ret|text=|trigger=button}{sub-section}{sub-section:getPDFPrinter_ret|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getPDFPrinter_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPDFPrinter_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getPDFPrinter_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPDFPrinter_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getPDFPrinter_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPDFPrinter_sam|trigger=none}{code:language=javascript} //to print current record without printdialog to pdf file in temp dir. controller.print(true,false,plugins.pdf_output.getPDFPrinter('c:/temp/out.pdf')); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getPagesPrinted|class=node}{tr:id=name}{td}h6.getPagesPrinted{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getPagesPrinted{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getPagesPrinted_des|text=|trigger=button}{sub-section}{sub-section:getPagesPrinted_des|trigger=none|class=sIndent}Returns the number of pages printed by the last print call done in the context of a meta print job.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getPagesPrinted_snc|text=|trigger=button}{sub-section}{sub-section:getPagesPrinted_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getPagesPrinted_prs|text=|trigger=button}{sub-section}{sub-section:getPagesPrinted_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getPagesPrinted_ret|text=|trigger=button}{sub-section}{sub-section:getPagesPrinted_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getPagesPrinted_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPagesPrinted_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getPagesPrinted_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPagesPrinted_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getPagesPrinted_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPagesPrinted_sam|trigger=none}{code:language=javascript} //to print multiple forms to one pdf document (on file system). var success = plugins.pdf_output.startMetaPrintJob('c:/temp/out.pdf') if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); plugins.pdf_output.endMetaPrintJob() //to print multiple forms to one pdf document (to store in dataprovider). var success = plugins.pdf_output.startMetaPrintJob() if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); mediaDataProvider = plugins.pdf_output.endMetaPrintJob() {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getTotalPagesPrinted|class=node}{tr:id=name}{td}h6.getTotalPagesPrinted{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getTotalPagesPrinted{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getTotalPagesPrinted_des|text=|trigger=button}{sub-section}{sub-section:getTotalPagesPrinted_des|trigger=none|class=sIndent}Returns the total number of pages printed in the context of a meta print job. Call this method before ending the meta print job.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getTotalPagesPrinted_snc|text=|trigger=button}{sub-section}{sub-section:getTotalPagesPrinted_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getTotalPagesPrinted_prs|text=|trigger=button}{sub-section}{sub-section:getTotalPagesPrinted_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getTotalPagesPrinted_ret|text=|trigger=button}{sub-section}{sub-section:getTotalPagesPrinted_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getTotalPagesPrinted_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTotalPagesPrinted_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getTotalPagesPrinted_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTotalPagesPrinted_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getTotalPagesPrinted_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTotalPagesPrinted_sam|trigger=none}{code:language=javascript} //to print multiple forms to one pdf document (on file system). var success = plugins.pdf_output.startMetaPrintJob('c:/temp/out.pdf') if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); plugins.pdf_output.endMetaPrintJob() //to print multiple forms to one pdf document (to store in dataprovider). var success = plugins.pdf_output.startMetaPrintJob() if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); mediaDataProvider = plugins.pdf_output.endMetaPrintJob() {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=insertFontDirectory|class=node}{tr:id=name}{td}h6.insertFontDirectory{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}insertFontDirectory{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:insertFontDirectory_des|text=|trigger=button}{sub-section}{sub-section:insertFontDirectory_des|trigger=none|class=sIndent}Add a directory that should be searched for fonts. Call this only in the context of an active meta print job.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:insertFontDirectory_snc|text=|trigger=button}{sub-section}{sub-section:insertFontDirectory_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:insertFontDirectory_prs|text=|trigger=button}{sub-section}{sub-section:insertFontDirectory_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:insertFontDirectory_ret|text=|trigger=button}{sub-section}{sub-section:insertFontDirectory_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:insertFontDirectory_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:insertFontDirectory_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:insertFontDirectory_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:insertFontDirectory_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:insertFontDirectory_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:insertFontDirectory_sam|trigger=none}{code:language=javascript} //Insert font directories for font embedding. //You must create an MetaPrintJob before using it. plugins.pdf_output.insertFontDirectory('c:/Windows/Fonts'); plugins.pdf_output.insertFontDirectory('c:/WinNT/Fonts'); plugins.pdf_output.insertFontDirectory('/Library/Fonts'); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=startMetaPrintJob|class=node}{tr:id=name}{td}h6.startMetaPrintJob{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}startMetaPrintJob{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:startMetaPrintJob_des|text=|trigger=button}{sub-section}{sub-section:startMetaPrintJob_des|trigger=none|class=sIndent}Used for printing multiple things into the same PDF document. Starts a meta print job and all print calls made before ending the meta print job will be done into the same PDF document. If a file name is specified, then the PDF document is generated into that file. If no argument is specified, then the PDF document is stored in memory and can be retrieved when ending the meta print job and can be saved into a dataprovider, for example.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:startMetaPrintJob_snc|text=|trigger=button}{sub-section}{sub-section:startMetaPrintJob_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:startMetaPrintJob_prs|text=|trigger=button}{sub-section}{sub-section:startMetaPrintJob_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:startMetaPrintJob_ret|text=|trigger=button}{sub-section}{sub-section:startMetaPrintJob_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:startMetaPrintJob_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:startMetaPrintJob_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:startMetaPrintJob_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:startMetaPrintJob_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:startMetaPrintJob_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:startMetaPrintJob_sam|trigger=none}{code:language=javascript} //to print multiple forms to one pdf document (on file system). var success = plugins.pdf_output.startMetaPrintJob('c:/temp/out.pdf') if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); plugins.pdf_output.endMetaPrintJob() //to print multiple forms to one pdf document (to store in dataprovider). var success = plugins.pdf_output.startMetaPrintJob() if (success) { forms.form_one.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form one printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); forms.form_two.controller.print(false,false,plugins.pdf_output.getPDFPrinter()); application.output('form two printed ' + plugins.pdf_output.getPagesPrinted() + ' pages.'); } application.output('total printed pages: ' + plugins.pdf_output.getTotalPagesPrinted()); mediaDataProvider = plugins.pdf_output.endMetaPrintJob() {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryAdd metadata to the PDF, like AuthorCombine multiple PDF docs into one.Combine multiple protected PDF docs into one.Convert a PDF form to a PDF document.Convert a protected PDF form to a PDF document.Add password protection and security options to the PDFAdd password protection and security options to the PDFAdd password protection and security options to the PDFAdd password protection and security options to the PDFAdd password protection and security options to the PDFEnds a previously started meta print job.Returns a PDF printer that can be used in print calls.Returns a PDF printer that can be used in print calls.Returns the number of pages printed by the last print call done in the context of a meta print job.Create a thumbnail from the provided PDFCreate a thumbnail from the provided PDFCreate a thumbnail from the provided PDFReturns the total number of pages printed in the context of a meta print job.Add a directory that should be searched for fonts.Add pages numbers to a PDFAdd pages numbers to a PDFAdd some PDF based content over a PDFAdd some PDF based content over a PDFAdd some PDF based content over a PDFAdd some PDF based content over a PDFAdd text over every page at a 45 degree angleAdd text over every page at a 45 degree angleUsed for printing multiple things into the same PDF document.Used for printing multiple things into the same PDF document.Add an image as a watermark on every page, or the pages specified as a parameterAdd an image as a watermark on every page, or the pages specified as a parameterAdd an image as a watermark on every page, or the pages specified as a parameter

functionservoy sDetail2100%height:30px2Methods DetailsaddMetaDataname

addMetaData(data, metaData)

dessIndent
Add metadata to the PDF, like Author
prs

Parameters

sIndentdatathe PDFmetaDataa JavaScript object (Scriptable) that contains the metadata as property/value pairs
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRowcombinePDFDocumentsname

combinePDFDocuments(pdf_docs_bytearrays)

dessIndent
Combine multiple PDF docs into one.
Note: this function may fail when creating large PDF files due to lack of available heap memory. To compensate, please configure the application server with more heap memory via -Xmx parameter.
prs

Parameters

sIndentpdf_docs_bytearraysthe array of documents to combine
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
combineProtectedPDFDocumentsname

combineProtectedPDFDocuments(pdf_docs_bytearrays, pdf_docs_passwords)

dessIndent
Combine multiple protected PDF docs into one.
Note: this function may fail when creating large PDF files due to lack of available heap memory. To compensate, please configure the application server with more heap memory via -Xmx parameter.
prs

Parameters

sIndentpdf_docs_bytearraysthe array of documents to combinepdf_docs_passwordsan array of passwords to use
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
convertPDFFormToPDFDocumentname

convertPDFFormToPDFDocument(pdf_form, field_values)

dessIndent
Convert a PDF form to a PDF document.
prs

Parameters

sIndentpdf_formthe PDF Form to convertfield_valuesthe values to use
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
convertProtectedPDFFormToPDFDocumentname

convertProtectedPDFFormToPDFDocument(pdf_form, pdf_password, field_values)

dessIndent
Convert a protected PDF form to a PDF document.
prs

Parameters

sIndentpdf_formthe PDF Form to convertpdf_passwordthe password to usefield_valuesthe field values to use
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
encryptname

encrypt(data, ownerPassword)

dessIndent
Add password protection and security options to the PDF
prs

Parameters

sIndentdatathe PDFownerPasswordthe owner password
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
encryptname

encrypt(data, ownerPassword, userPassword)

dessIndent
Add password protection and security options to the PDF
prs

Parameters

sIndentdatathe PDFownerPasswordthe owner passworduserPasswordthe user password
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
encryptname

encrypt(data, ownerPassword, userPassword, allowAssembly, allowCopy, allowDegradedPrinting, allowFillIn, allowModifyAnnotations, allowModifyContents, allowPrinting, allowScreenreaders)

dessIndent
Add password protection and security options to the PDF
prs

Parameters

sIndentdatathe PDFownerPasswordthe owner passworduserPasswordthe user passwordallowAssemblywhether to set the allow assembly permissionallowCopywhether to set the allow copy permissionallowDegradedPrintingwhether to set the allow degraded printing permissionallowFillInwhether to set the allow fill in permissionallowModifyAnnotationswhether to set the allow modify annotations permissionallowModifyContentswhether to set the allow modify contents permissionallowPrintingwhether to set the allow printing permissionallowScreenreaderswhether to set the allow screen readers permission
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
encryptname

encrypt(data, ownerPassword, userPassword, allowAssembly, allowCopy, allowDegradedPrinting, allowFillIn, allowModifyAnnotations, allowModifyContents, allowPrinting, allowScreenreaders, is128bit)

dessIndent
Add password protection and security options to the PDF
prs

Parameters

sIndentdatathe PDFownerPasswordthe owner passworduserPasswordthe user passwordallowAssemblywhether to set the allow assembly permissionallowCopywhether to set the allow copy permissionallowDegradedPrintingwhether to set the allow degraded printing permissionallowFillInwhether to set the allow fill in permissionallowModifyAnnotationswhether to set the allow modify annotations permissionallowModifyContentswhether to set the allow modify contents permissionallowPrintingwhether to set the allow printing permissionallowScreenreaderswhether to set the allow screen readers permissionis128bitwhether to use 128-bit encryption
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
encryptname

encrypt(data, ownerPassword, userPassword, allowAssembly, allowCopy, allowDegradedPrinting, allowFillIn, allowModifyAnnotations, allowModifyContents, allowPrinting, allowScreenreaders, is128bit, metaData)

dessIndent
Add password protection and security options to the PDF
prs

Parameters

sIndentdatathe PDFownerPasswordthe owner passworduserPasswordthe user passwordallowAssemblywhether to set the allow assembly permissionallowCopywhether to set the allow copy permissionallowDegradedPrintingwhether to set the allow degraded printing permissionallowFillInwhether to set the allow fill in permissionallowModifyAnnotationswhether to set the allow modify annotations permissionallowModifyContentswhether to set the allow modify contents permissionallowPrintingwhether to set the allow printing permissionallowScreenreaderswhether to set the allow screen readers permissionis128bitwhether to use 128-bit encryptionmetaDataa JavaScript object (Scriptable) that contains the metadata as property/value pairs
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
endMetaPrintJobname

endMetaPrintJob()

dessIndent
Ends a previously started meta print job. For meta print jobs that were stored in memory, not in a file on disk, also returns the content of the generated PDF document.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getPDFPrintername

getPDFPrinter()

dessIndent
Returns a PDF printer that can be used in print calls. Returns the last started meta print job.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getPDFPrintername

getPDFPrinter(filename)

dessIndent
Returns a PDF printer that can be used in print calls. The PDF printer that generates a PDF into the specified file is returned.
prs

Parameters

sIndentfilenamethe file name
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getPagesPrintedname

getPagesPrinted()

dessIndent
Returns the number of pages printed by the last print call done in the context of a meta print job.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getThumbnailImagename

getThumbnailImage(data)

dessIndent
Create a thumbnail from the provided PDF
prs

Parameters

sIndentdatathe PDF
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getThumbnailImagename

getThumbnailImage(data, pageNumber)

dessIndent
Create a thumbnail from the provided PDF
prs

Parameters

sIndentdatathe PDFpageNumberPDF page to get thumbnail of. This parameter is zero based index.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getThumbnailImagename

getThumbnailImage(data, pageNumber, dpi)

dessIndent
Create a thumbnail from the provided PDF
prs

Parameters

sIndentdatathe PDFpageNumberPDF page to get thumbnail of. This parameter is zero based index.dpiresolution used to render the thumbnail image
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getTotalPagesPrintedname

getTotalPagesPrinted()

dessIndent
Returns the total number of pages printed in the context of a meta print job. Call this method before ending the meta print job.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
insertFontDirectoryname

insertFontDirectory(path)

dessIndent
Add a directory that should be searched for fonts. Call this only in the context of an active meta print job.
prs

Parameters

sIndentpaththe path to use
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
numberPagesname

numberPages(data)

dessIndent
Add pages numbers to a PDF
prs

Parameters

sIndentdatathe PDF
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
numberPagesname

numberPages(data, fontSize, locationX, locationY, font, hexColor)

dessIndent
Add pages numbers to a PDF
prs

Parameters

sIndentdatathe PDFfontSizethe font size to uselocationXthe x location of the numberslocationYthe y location of the numbersfontthe font to usehexColorthe font color to use
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
overlayname

overlay(data, forOverlay)

dessIndent
Add some PDF based content over a PDF
prs

Parameters

sIndentdatathe PDFforOverlaya PDF to use as overlay
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
overlayname

overlay(data, forOverlay, isOver)

dessIndent
Add some PDF based content over a PDF
prs

Parameters

sIndentdatathe PDFforOverlaya PDF to use as overlayisOverwhether the overlay will be put over the content
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
overlayname

overlay(data, forOverlay, isOver, pages)

dessIndent
Add some PDF based content over a PDF
prs

Parameters

sIndentdatathe PDFforOverlaya PDF to use as overlayisOverwhether the overlay will be put over the contentpagesan array of page numbers to put the overlay on
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
overlayname

overlay(data, forOverlay, pages)

dessIndent
Add some PDF based content over a PDF
prs

Parameters

sIndentdatathe PDFforOverlaya PDF to use as overlaypagesan array of page numbers to put the overlay on
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
overlayTextname

overlayText(data, text)

dessIndent
Add text over every page at a 45 degree angle
prs

Parameters

sIndentdatathe PDFtextthe text to use for the overlay
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
overlayTextname

overlayText(data, text, locationX, locationY, isOver, fontSize, font, hexColor)

dessIndent
Add text over every page at a 45 degree angle
prs

Parameters

sIndentdatathe PDFtextthe text to use for the overlaylocationXthe x location of the overlaylocationYthe y location of the overlayisOverwhether to put the overlay over the contentfontSizethe font size to usefontthe font to usehexColorthe font color to use
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
startMetaPrintJobname

startMetaPrintJob()

dessIndent
Used for printing multiple things into the same PDF document. Starts a meta print job and all print calls made before ending the meta print job will be done into the same PDF document. The PDF document is stored in memory and can be retrieved when ending the meta print job and can be saved, for example, into a dataprovider.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
startMetaPrintJobname

startMetaPrintJob(filename)

dessIndent
Used for printing multiple things into the same PDF document. Starts a meta print job and all print calls made before ending the meta print job will be done into the same PDF document. The PDF document is generated in a File specified by the filename.
prs

Parameters

sIndentfilenamethe file name
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
watermarkname

watermark(data, image)

dessIndent
Add an image as a watermark on every page, or the pages specified as a parameter
prs

Parameters

sIndentdatathe PDFimagethe path of an image to use or array of bytes containing actual image
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
watermarkname

watermark(data, image, locationX, locationY, isOver)

dessIndent
Add an image as a watermark on every page, or the pages specified as a parameter
prs

Parameters

sIndentdatathe PDFimagethe path of an image to use or array of bytes containing actual imagelocationXthe x location of the imagelocationYthe y location of the imageisOverwhether to put over the content
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
watermarkname

watermark(data, image, locationX, locationY, isOver, pages)

dessIndent
Add an image as a watermark on every page, or the pages specified as a parameter
prs

Parameters

sIndentdatathe PDFimagethe path of an image to use or array of bytes containing actual imagelocationXthe x location of the imagelocationYthe y location of the imageisOverwhether to put over the contentpagesan array of pages where to apply the watermark
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow