It can be possible to dynamically add an External PDF file from the File Cabinet within a PDF file using an Advanced PDF Template.When we need to add a static PDF page in a PDF template. The user can create the static PDF file separately and can append it to the PDF template.
- Create Custom Field
- Label:Enter Label
- Type:Select Free-form Text
- ID: Enter _link_pdf
- Click Applies To
- Enter Checkmark for relevant Transaction/Record
- Click Save
- Add the PDF File to the File Cabinet
- Get the External Link on the File record
- Insert the link on the Custom field
Solution
- Navigate to Customization > Forms > Advanced PDF/HTML Templates
- Click Edit beside the preferred Advanced PDF/HTML Template
- Insert a <pdfset> tag before the first <pdf> tag
- After the </pdf> tag add <pdf src = “${record.custbody_link_pdf}” /> </pdfset>
This can be achieved by <pdfset>.
<pdfset>
<pdf>
<!— Enter the PDF template here–>
</pdf>
<pdf src= “${record.custbody_link_pdf}“ />
</pdfset>