Tip Tuesday - 3 ways to dynamically Merge different PDF files in Document Designer.
- Use multiple Embed Document with conditions. The conditions allow for the correct PDF to show up in the output per requirement.
- Use an XSL snippet and utilize <fo:external-graphic> for this. Using an XSL snippet will only append a single paged PDF. Section Margins should be set to 0 inches. See below for examples:
- Attaches 1 page to the document. If multi-paged, this will attach the first page.<fo:external-graphic src="url('PDF_URL.pdf')"/>
- Defines which page in the multi-paged document will be attached where n = page number.<fo:external-graphic src="url('PDF_URL.pdf#page=n')"/>
- The URL of the file is defined in a variable. <xsl:variable name = "link"><xsl:value-of select="'PDF_URL.pdf'"/></xsl:variable><fo:external-graphic src="{$link}"/> <!-- Note: the variable name is called with curly braces
Tagged:
0