Difference between revisions of "Template:PDFOptions"

From SmartWiki
Jump to: navigation, search
(PDF Options)
(PDF Options)
Line 6: Line 6:
 
* '''Enable Export''' – enables the [[User|user]] to save a local copy of the PDF document.
 
* '''Enable Export''' – enables the [[User|user]] to save a local copy of the PDF document.
 
* '''Enable Save to server''' – enables the [[User|user]] to save the document as a PDF into any multiple file type fields in the related [[Entity|entity]].
 
* '''Enable Save to server''' – enables the [[User|user]] to save the document as a PDF into any multiple file type fields in the related [[Entity|entity]].
* '''Maximum PDF Page Length that can be Saved to Multiple File Field''' - Specifies the maximum number of pages of the resultant PDF permitted to be stored into a [[Multiple Files]] field if the '''Save to Multiple File Field''' settings is enabled. This includes pages attached using [[ssattach]]. If the PDF document is too long it will not be stored.
+
<!--* '''Maximum PDF Page Length that can be Saved to Multiple File Field''' - Specifies the maximum number of pages of the resultant PDF permitted to be stored into a [[Multiple Files]] field if the '''Save to Multiple File Field''' settings is enabled. This includes pages attached using [[ssattach]]. If the PDF document is too long it will not be stored.
 
* '''Automatic File Naming''': The syntax ''<nowiki><!--filename='WPF - filename'--></nowiki>'' can be included in the HTML Template, when saved as a PDF, the PDF filename will default to 'WPF - filename.pdf'.<br />
 
* '''Automatic File Naming''': The syntax ''<nowiki><!--filename='WPF - filename'--></nowiki>'' can be included in the HTML Template, when saved as a PDF, the PDF filename will default to 'WPF - filename.pdf'.<br />
 
Variables such as @name@ can be used (ex. ''<nowiki><!--filename='WPF - @name@'--></nowiki>'') to dynamically set the resultant PDF filename.<br />
 
Variables such as @name@ can be used (ex. ''<nowiki><!--filename='WPF - @name@'--></nowiki>'') to dynamically set the resultant PDF filename.<br />
 
For PDFs automatically generated by the system using [[Workflow]]s you can add the version number using the following syntax, based on the number of files already stored in the destination [[Multiple Files]] field:<br />
 
For PDFs automatically generated by the system using [[Workflow]]s you can add the version number using the following syntax, based on the number of files already stored in the destination [[Multiple Files]] field:<br />
 
<nowiki><!--filename='Application @Submission Number@  
 
<nowiki><!--filename='Application @Submission Number@  
<!--@sscalculation(IF("@PDF of Application.numoffiles@"*1>0,CONCAT("Version ","@PDF of Application.numoffiles@"*1+1),""))-->'--></nowiki>
+
<!--@sscalculation(IF("@PDF of Application.numoffiles@"*1>0,CONCAT("Version ","@PDF of Application.numoffiles@"*1+1),""))-->'--></nowiki>-->

Revision as of 16:15, 21 November 2018

PDF Options

  • Open Directly as PDF - with this field selected, the document will be exported to PDF format.
  • Enable Online Signature - enables the online signature feature to be applied to the document.
  • Enable Password Protection – enables the user to password protect the document (generally used when the document is going to be emailed). See Web Page View - Enable Password Protection
  • Enable Email as Attachment – enables the user to send the PDF as an attachment to an email message.
  • Enable Export – enables the user to save a local copy of the PDF document.
  • Enable Save to server – enables the user to save the document as a PDF into any multiple file type fields in the related entity.

</nowiki> can be included in the HTML Template, when saved as a PDF, the PDF filename will default to 'WPF - filename.pdf'.
Variables such as @name@ can be used (ex. <!--filename='WPF - @name@'-->) to dynamically set the resultant PDF filename.
For PDFs automatically generated by the system using Workflows you can add the version number using the following syntax, based on the number of files already stored in the destination Multiple Files field:
<!--filename='Application @Submission Number@ <!--@sscalculation(IF("@PDF of Application.numoffiles@"*1>0,CONCAT("Version ","@PDF of Application.numoffiles@"*1+1),""))-->'-->-->