[jira] [Commented] (FOP-2772) NPE where pdf as background image

2019-01-28 Thread simon steiner (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16754183#comment-16754183
 ] 

simon steiner commented on FOP-2772:


The bug was fixed, are you running the latest pdf plugin?

> NPE where pdf as background image
> -
>
> Key: FOP-2772
> URL: https://issues.apache.org/jira/browse/FOP-2772
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.2
>Reporter: Radu Coravu
>Assignee: simon steiner
>Priority: Major
> Attachments: image.pdf
>
>
> Trying to embed a certain PDF image in an XSL-FO document using Apache FOP 
> and PDF Box:
> {code}[exec] Caused by: java.lang.NullPointerException
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.createKidEntryFromInt(StructureTreeMerger.java:334)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.setCurrentSessionElemKid(StructureTreeMerger.java:485)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.TaggedPDFConductor.configureCurrentSessionElem(TaggedPDFConductor.java:76)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.TaggedPDFConductor.handleLogicalStructure(TaggedPDFConductor.java:71)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createStreamForPDF(AbstractPDFBoxHandler.java:115)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:71)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:249)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:205)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:170)
>  [exec] at 
> org.apache.fop.render.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:218)
>  [exec] at 
> org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:181)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1294)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawImage(AbstractPathOrientedRenderer.java:969)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackground(AbstractPathOrientedRenderer.java:308)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.drawBackground(IFRenderer.java:1383)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackground(AbstractPathOrientedRenderer.java:215)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackAndBorders(AbstractPathOrientedRenderer.java:173)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackAndBorders(AbstractPathOrientedRenderer.java:145)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderBlockViewport(IFRenderer.java:795)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:593)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.renderPage(RenderPagesModel.java:193)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.checkPreparedPages(RenderPagesModel.java:174)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:146)
>  [exec] at 
> org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
>  [exec] at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)
>  [exec] at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)
>  [exec] at 
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
>  [exec] at 
> org.apache.fop.fo.DelegatingFOEventHandler.endPageSequence(DelegatingFOEventHandler.java:114)
>  [exec] at 
> 

[jira] [Commented] (FOP-2772) NPE where pdf as background image

2019-01-28 Thread Pahonsi bebeto Achile (JIRA)


[ 
https://issues.apache.org/jira/browse/FOP-2772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16754175#comment-16754175
 ] 

Pahonsi bebeto Achile commented on FOP-2772:


Please I want to solve to solve this bug but I newbie I don't know how to start 
how to get the code source 

> NPE where pdf as background image
> -
>
> Key: FOP-2772
> URL: https://issues.apache.org/jira/browse/FOP-2772
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.2
>Reporter: Radu Coravu
>Assignee: simon steiner
>Priority: Major
> Attachments: image.pdf
>
>
> Trying to embed a certain PDF image in an XSL-FO document using Apache FOP 
> and PDF Box:
> {code}[exec] Caused by: java.lang.NullPointerException
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.createKidEntryFromInt(StructureTreeMerger.java:334)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.setCurrentSessionElemKid(StructureTreeMerger.java:485)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.TaggedPDFConductor.configureCurrentSessionElem(TaggedPDFConductor.java:76)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.TaggedPDFConductor.handleLogicalStructure(TaggedPDFConductor.java:71)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createStreamForPDF(AbstractPDFBoxHandler.java:115)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:71)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:249)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:205)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:170)
>  [exec] at 
> org.apache.fop.render.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:218)
>  [exec] at 
> org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:181)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1294)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawImage(AbstractPathOrientedRenderer.java:969)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackground(AbstractPathOrientedRenderer.java:308)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.drawBackground(IFRenderer.java:1383)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackground(AbstractPathOrientedRenderer.java:215)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackAndBorders(AbstractPathOrientedRenderer.java:173)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackAndBorders(AbstractPathOrientedRenderer.java:145)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderBlockViewport(IFRenderer.java:795)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:593)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.renderPage(RenderPagesModel.java:193)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.checkPreparedPages(RenderPagesModel.java:174)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:146)
>  [exec] at 
> org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
>  [exec] at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)
>  [exec] at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)
>  [exec] at 
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
>  [exec] at 
> 

[jira] [Commented] (FOP-2772) NPE where pdf as background image

2018-05-10 Thread Radu Coravu (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16471466#comment-16471466
 ] 

Radu Coravu commented on FOP-2772:
--

Thanks [~ssteiner1]

> NPE where pdf as background image
> -
>
> Key: FOP-2772
> URL: https://issues.apache.org/jira/browse/FOP-2772
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.2
>Reporter: Radu Coravu
>Assignee: simon steiner
>Priority: Major
> Attachments: image.pdf
>
>
> Trying to embed a certain PDF image in an XSL-FO document using Apache FOP 
> and PDF Box:
> {code}[exec] Caused by: java.lang.NullPointerException
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.createKidEntryFromInt(StructureTreeMerger.java:334)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.setCurrentSessionElemKid(StructureTreeMerger.java:485)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.TaggedPDFConductor.configureCurrentSessionElem(TaggedPDFConductor.java:76)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.TaggedPDFConductor.handleLogicalStructure(TaggedPDFConductor.java:71)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createStreamForPDF(AbstractPDFBoxHandler.java:115)
>  [exec] at 
> org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:71)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:249)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImage(AbstractIFPainter.java:205)
>  [exec] at 
> org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:170)
>  [exec] at 
> org.apache.fop.render.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:218)
>  [exec] at 
> org.apache.fop.render.pdf.PDFPainter.drawImage(PDFPainter.java:181)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.java:1294)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawImage(AbstractPathOrientedRenderer.java:969)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackground(AbstractPathOrientedRenderer.java:308)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.drawBackground(IFRenderer.java:1383)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackground(AbstractPathOrientedRenderer.java:215)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackAndBorders(AbstractPathOrientedRenderer.java:173)
>  [exec] at 
> org.apache.fop.render.AbstractPathOrientedRenderer.drawBackAndBorders(AbstractPathOrientedRenderer.java:145)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderBlockViewport(IFRenderer.java:795)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:593)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.java:998)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:557)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderRegion(AbstractRenderer.java:344)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:308)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:737)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:263)
>  [exec] at 
> org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:244)
>  [exec] at 
> org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:587)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.renderPage(RenderPagesModel.java:193)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.checkPreparedPages(RenderPagesModel.java:174)
>  [exec] at 
> org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:146)
>  [exec] at 
> org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:316)
>  [exec] at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:226)
>  [exec] at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:145)
>  [exec] at 
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
>  [exec] at 
> org.apache.fop.fo.DelegatingFOEventHandler.endPageSequence(DelegatingFOEventHandler.java:114)
>  [exec] at 
>