Hi,
I am not able to attach a zip file in PDF.
Message on console -
WARNING: Unknown formatting object
"{http://xmlgraphics.apache.org/fop/extensions/pdf}embedded-file" encountered
(a child of fo:declarations}. (No context info available)
I am using Apache FOP 1.0. I tried 0.95 as well.
Please check xsl code below.
Can you please suggest why its not attaching the zip in PDF?
Thanks.
Regards
Neeraj
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
<xsl:output method="xml" version="1.0" omit-xml-declaration="no"
indent="yes"/>
<xsl:template match="OriginalNotification">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA4"
page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-left="1.5cm"
margin-right="1.5cm" margin-bottom="0.5cm">
<fo:region-body margin-bottom="1.5cm" margin-top="3cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:declarations>
<pdf:embedded-file filename="attachments.zip"
src="url(file:///C:/attachments.zip)" description="Attachments"/>
</fo:declarations>
<fo:page-sequence master-reference="simpleA4">
<fo:flow flow-name="xsl-region-body">
<fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
<!--
<fo:basic-link
external-destination="url(file:///C:/attachments.zip)">Attachments</fo:basic-link>
-->
</xsl:template>
</xsl:stylesheet>