<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1758474722;
mso-list-type:hybrid;
mso-list-template-ids:1761355952 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Darren:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>It is by design. I have posted on this before.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>rx:insert-document inserts a complete PDF *<b>before</b>* the page-sequence it is on. NOTE: I have put into development a request to modify this behavior in a later release, probably implemented by being able to specify before or after the sequence.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>A page-sequence in FO cannot be empty, if it is (has no content) then it is collapsed and not processed and nothing would be created in the case you present.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>You can use rx:insert-document to insert a PDF at the start or in-between page-sequences, but not at the end.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>There are two ways you can accomplish what you desire.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='color:#1F497D'>If you know all there is about the document in question (meaning the number of pages), you can use rx:pdf-page attribute to insert each page. In the sample template I posted before, the XML had something like this:<o:p></o:p></span></p><p class=MsoListParagraph><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoListParagraph><span style='color:#1F497D'><insert-document src=<a href="file:///c:\temp\test.pdf">file://c:/temp/test.pdf</a> pages=”6”/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Then it had a template like this, that was called recursively to add an fo:block containing the image of each page (pages holds the total pages, curpage is an increment, src is the location of the PDF)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:template</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"genpage"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:param</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"pages"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:param</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"curpage"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:param</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"src"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:if</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> test</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"$curpage < ($pages + 1)"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'><fo:block</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> line-height</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"0pt"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'><fo:external-graphic</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> rx:pdf-page</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"{$curpage}"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'> <br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:attribute</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"src"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:value-of</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> select</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"$src"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'></xsl:attribute></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'></fo:external-graphic></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'></fo:block></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:apply-templates/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:call-template</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"genpage"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:with-param</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"curpage"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> select</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"$curpage + 1"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:with-param</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"pages"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> select</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"$pages"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'><xsl:with-param</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> name</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"src"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> select</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"$src"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>/></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'></xsl:call-template></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'></xsl:if></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'><br> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#005AB4'></xsl:template></span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>You could add such a template and call it at the end of the document you are producing to append each page of a known-sized document into your document. Now note that you also need to likely create an empty page-sequence that is the same size as the PDF in question with no margins as this is inserting things in the flow.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='color:#1F497D'>If you do not know the number of pages, then you would need a process to insert a tag into the XEP Intermediate format at the appropriate place (at the end). The syntax of this tag in XEP Intermediate is:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><xep:insert-document src="file:/C:/Users/kbrown01/Desktop/CloudFormatter Templates/SampleMerge/EPSON009.PDF"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> You would put this immediately before the </xep:document> at the end and this would append any size PDF at the end of the document. You could in fact use such a thing to create a simple PDF merger. You could do this and run it:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'><xep:document</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#0099CC'>xmlns:xep</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"http://www.renderx.com/XEP/xep"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> producer</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"XEP 4.24.395"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> creator</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"Unknown"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'> </span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'>author</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"Unknown"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C'> title</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040'>=</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300'>"Untitled"</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'>></span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <xep:insert-document src="file:/C:/Users/kbrown01/Desktop/CloudFormatter Templates/SampleMerge/doc1.PDF"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <xep:insert-document src="file:/C:/Users/kbrown01/Desktop/CloudFormatter Templates/SampleMerge/doc2.PDF"/><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <xep:insert-document src="file:/C:/Users/kbrown01/Desktop/CloudFormatter Templates/SampleMerge/doc3.PDF"/><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096'></xep:document></span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Running the XEP Intermediate file would join doc1, doc2 and doc3 into a new document.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Kevin Brown<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Executive Vice President, Sales & Marketing RenderX, Inc.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>(650) 327-1000 Direct<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>(650) 328-8008 Fax<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>(925) 395-1772 Mobile<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>skype:kbrown01<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="mailto:kevin@renderx.com"><span style='color:#0563C1'>kevin@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="mailto:sales@renderx.com"><span style='color:#0563C1'>sales@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="http://www.renderx.com/"><span style='color:#0563C1'>http://www.renderx.com</span></a> <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> Xep-support [mailto:xep-support-bounces@renderx.com] <b>On Behalf Of </b>Darren Munt<br><b>Sent:</b> Wednesday, November 04, 2015 10:39 PM<br><b>To:</b> xep-support@renderx.com<br><b>Subject:</b> [xep-support] Using rx:insert-document<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-AU>I’ve just upgraded to the latest XEP version and I’m trying to insert an existing PDF into a document using the rx:insert-document extension. I wasn’t able to find a working example of this, if there is one I’d appreciate a link to it. However I found a support query about it and managed to glean the following XSL from it:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><fo:page-sequence master-reference="mainportrait" rx:insert-document="url(pdfdocname.pdf)"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:flow flow-name="xsl-region-body"><o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span lang=EN-AU><fo:block /><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:flow><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU></fo:page-sequence><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>When I send this to RenderX, the resulting document does not include my static PDF. However when I put some content in the fo:block, the static PDF is included but so is whatever content I place in the block appears on a new page at the end. For example:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><fo:page-sequence master-reference="mainportrait" rx:insert-document="url(pdfdocname.pdf)"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:flow flow-name="xsl-region-body"><o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span lang=EN-AU><fo:block>.</block><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:flow><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU></fo:page-sequence><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>I’m not at all sure that I have the syntax correct, but this is the only way I have been able to get it to work so far. Could you please let me know where I’m going wrong?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>I have simplified my FO down to this to reproduce the behaviour:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><fo:root xmlns:fo="<a href="http://www.w3.org/1999/XSL/Format">http://www.w3.org/1999/XSL/Format</a>" xmlns:rx="<a href="http://www.renderx.com/XSL/Extensions">http://www.renderx.com/XSL/Extensions</a>"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:layout-master-set><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:simple-page-master master-name="mainportrait" page-width="21.0cm" page-height="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:region-body margin-top="0" margin-bottom="0" margin-left="0" margin-right="0" /><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:simple-page-master><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:layout-master-set><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:page-sequence master-reference="mainportrait" rx:insert-document="url(mypdf.pdf)"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:flow flow-name="xsl-region-body"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:block /><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:flow><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:page-sequence><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU></fo:root><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>Produces a blank document.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><fo:root xmlns:fo="<a href="http://www.w3.org/1999/XSL/Format">http://www.w3.org/1999/XSL/Format</a>" xmlns:rx="<a href="http://www.renderx.com/XSL/Extensions">http://www.renderx.com/XSL/Extensions</a>"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:layout-master-set><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:simple-page-master master-name="mainportrait" page-width="21.0cm" page-height="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:region-body margin-top="0" margin-bottom="0" margin-left="0" margin-right="0" /><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:simple-page-master><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:layout-master-set><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:page-sequence master-reference="mainportrait" rx:insert-document="url(mypdf.pdf)"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:flow flow-name="xsl-region-body"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> <fo:block>.</fo:block><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:flow><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU> </fo:page-sequence><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU></fo:root><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>Produces a document with the inserted PDF and another page at the end with a full stop.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p></div></body></html>