<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>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></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><fo:page-sequence master-reference="mainportrait" rx:insert-document="url(pdfdocname.pdf)"><o:p></o:p></p><p class=MsoNormal> <fo:flow flow-name="xsl-region-body"><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><fo:block /><o:p></o:p></p><p class=MsoNormal> </fo:flow><o:p></o:p></p><p class=MsoNormal></fo:page-sequence><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <fo:page-sequence master-reference="mainportrait" rx:insert-document="url(pdfdocname.pdf)"><o:p></o:p></p><p class=MsoNormal> <fo:flow flow-name="xsl-region-body"><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><fo:block>.</block><o:p></o:p></p><p class=MsoNormal> </fo:flow><o:p></o:p></p><p class=MsoNormal></fo:page-sequence><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have simplified my FO down to this to reproduce the behaviour:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rx="http://www.renderx.com/XSL/Extensions"><o:p></o:p></p><p class=MsoNormal> <fo:layout-master-set><o:p></o:p></p><p class=MsoNormal> <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></p><p class=MsoNormal> <fo:region-body margin-top="0" margin-bottom="0" margin-left="0" margin-right="0" /><o:p></o:p></p><p class=MsoNormal> </fo:simple-page-master><o:p></o:p></p><p class=MsoNormal> </fo:layout-master-set><o:p></o:p></p><p class=MsoNormal> <fo:page-sequence master-reference="mainportrait" rx:insert-document="url(mypdf.pdf)"><o:p></o:p></p><p class=MsoNormal> <fo:flow flow-name="xsl-region-body"><o:p></o:p></p><p class=MsoNormal> <fo:block /><o:p></o:p></p><p class=MsoNormal> </fo:flow><o:p></o:p></p><p class=MsoNormal> </fo:page-sequence><o:p></o:p></p><p class=MsoNormal></fo:root><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Produces a blank document.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rx="http://www.renderx.com/XSL/Extensions"><o:p></o:p></p><p class=MsoNormal> <fo:layout-master-set><o:p></o:p></p><p class=MsoNormal> <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></p><p class=MsoNormal> <fo:region-body margin-top="0" margin-bottom="0" margin-left="0" margin-right="0" /><o:p></o:p></p><p class=MsoNormal> </fo:simple-page-master><o:p></o:p></p><p class=MsoNormal> </fo:layout-master-set><o:p></o:p></p><p class=MsoNormal> <fo:page-sequence master-reference="mainportrait" rx:insert-document="url(mypdf.pdf)"><o:p></o:p></p><p class=MsoNormal> <fo:flow flow-name="xsl-region-body"><o:p></o:p></p><p class=MsoNormal> <fo:block>.</fo:block><o:p></o:p></p><p class=MsoNormal> </fo:flow><o:p></o:p></p><p class=MsoNormal> </fo:page-sequence><o:p></o:p></p><p class=MsoNormal></fo:root><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Produces a document with the inserted PDF and another page at the end with a full stop.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>