xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MartinKl <klapec.mar...@hotmail.com>
Subject Barcode generation with FOP 1.1
Date Thu, 15 Jan 2015 15:55:49 GMT
Hello,
I am strugelling with barcode generation using barcode4j lib. Everything is
fine with 0.95 but when I switch it to 1.1 I get error message (see below)
and the pdf document is missing the barcode. Could someone help please? I've
attached simple eclipse project where is my test. (import like Maven
project). Thank you for help. 

Great Regards
Martin

LINK to project: 
https://dl.dropboxusercontent.com/u/41716864/barcode%20and%20fop.zip
<https://dl.dropboxusercontent.com/u/41716864/barcode%20and%20fop.zip>  

LOG:
SEVERE: Image not available. URI: (instream-object). Reason:
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for null (No context info available)
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for null
	at
org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:180)
	at
org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingDocument(AbstractIFPainter.java:296)
	at org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:203)
	at
org.apache.fop.render.intermediate.IFRenderer.renderForeignObject(IFRenderer.java:1290)
	at
org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractRenderer.java:820)
	at
org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewport(AbstractPathOrientedRenderer.java:785)
	at
org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IFRenderer.java:866)
	at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:678)
	at
org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRenderer.java:913)
	at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:643)
	at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:561)
	at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:598)
	at
org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:980)
	at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:546)
	at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:451)
	at
org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(AbstractPathOrientedRenderer.java:738)
	at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:428)
	at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:352)
	at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:299)
	at
org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:748)
	at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:273)
	at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:238)
	at
org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:597)
	at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:123)
	at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
	at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:191)
	at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)
	at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
	at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
	at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
	at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:262)
	at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:707)
	at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
	at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:682)
	at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:177)
	at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
	at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2202)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1276)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:673)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1192)
	at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1170)
	at org.referencefop.BarcodeTest.generatePdf(BarcodeTest.java:72)
	at org.referencefop.BarcodeTest.main(BarcodeTest.java:41)






--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Barcode-generation-with-FOP-1-1-tp41617.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message