Hi,I am trying to generate a PDF document with barcode in it. I am running this example on FOP trunk.
When I run the sample barcode test xsl:fo file from the command prompt...
*fop -fo barcodetest.fo -pdf barcodetest.pdf* I have got the following messages on the console... 11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventWARNING: Unknown formatting object "{http://barcode4j.krysalis.org/ns}barcode" encountered (a child of fo:instream-foreign-object}. (See position 18:110)
11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventWARNING: Unknown formatting object "{http://barcode4j.krysalis.org/ns}code128" encountered (a child of barcode}. (See position 19:25)
11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventWARNING: Unknown formatting object "{http://barcode4j.krysalis.org/ns}height" encountered (a child of code128}. (See position 20:25)
11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventWARNING: Unknown formatting object "{http://barcode4j.krysalis.org/ns}human-readable" encountered (a child of code128}. (See position 21:33)
11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventWARNING: Unknown formatting object "{http://barcode4j.krysalis.org/ns}placement" encountered (a child of human-readable}. (See position 22:35)
11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventWARNING: Unknown formatting object "{http://barcode4j.krysalis.org/ns}font-name" encountered (a child of human-readable}. (See position 23:35)
11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventWARNING: Unknown formatting object "{http://barcode4j.krysalis.org/ns}font-size" encountered (a child of human-readable}. (See position 24:35)
11-Feb-2010 13:47:18 org.apache.fop.events.LoggingEventListener processEventSEVERE: The intrinsic dimensions of an instream-foreign-object could not be determined. (See position 17:63)
And the output file generated, but when I open the output file to see the barcode, 'There is some error with the file' message is showing.
I am attaching the input file and output file generated with this mail. Please have a look and help me...
Thanks, Venkat.
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"> <fo:layout-master-set> <fo:simple-page-master master-name="a4" page-height="297mm" page-width="210mm"> <fo:region-body margin-bottom="2cm"/> <fo:region-after extent="2cm" region-name="footer"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="a4"> <fo:static-content flow-name="footer"> <fo:block text-align="end" text-align-last="end">Can you see this?</fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block>First Page</fo:block> <fo:block-container absolute-position="fixed" top="10cm" left="10cm" height="20mm" width="100mm" reference-orientation="0"> <fo:block> <fo:instream-foreign-object fox:conversion-mode="bitmap"> <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns" message="0755360001262.18NT0033140N"> <barcode:code128> <barcode:height>15mm</barcode:height> <barcode:human-readable> <barcode:placement>bottom</barcode:placement> <barcode:font-name>TimesNewRomanPS</barcode:font-name> <barcode:font-size>8pt</barcode:font-size> </barcode:human-readable> </barcode:code128> </barcode:barcode> </fo:instream-foreign-object> </fo:block> </fo:block-container> <fo:block break-before="page">Second Page</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
barcodetest.pdf
Description: Adobe PDF document
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
