pcorless / icepdf

PDF Rendering and Viewing API in Java
Apache License 2.0
84 stars 21 forks source link

PDF not rendering after being created by merging PDFs via iText or PDFBox #364

Closed tfurst1 closed 4 months ago

tfurst1 commented 4 months ago

I am creating an app that uses ICE-PDF to display a PDF. The PDF opens, but all the pages are blank. When the cursor is over the PDF page it just shows the "processing" circle cursor: image In this app we publish some XML to PDF using Antenna House, then assemble those PDFs into a larger PDF using iText (also tried PDFBox). The PDF opens fine in Adobe, with all content present.

I setup the viewer as I have in a handful of other apps I have created: image Is this something that has been seen before?

Hope that you are able to point me in the right direction to get this fixed.

pcorless commented 4 months ago

Setup looks good. Are you able to post a sample file publicly? My guess is there is something up with the file.

tfurst1 commented 4 months ago

Not sure I can share the PDF itself as it contains customer data. I can say that it opens without issue in Adobe. Doubt that this helps, but here are the doc props from Adobe (file name and directory removed): image Is there any other info I can get for you without sharing the PDF itself?

pcorless commented 4 months ago

If you enable fine level logging (there is info in wiki, and a sample config file), there might be some output in the logs that might shed some light.

tfurst1 commented 4 months ago

Are you able to either give me an example of how to setup the logging, or a concrete example? The "logging" folder under "examples" looks to be just a config type file. It is unclear to me how I apply this when setting up the viewer

tfurst1 commented 4 months ago

Well, have to fall on my sword here. I left out the font-box lib on this project... I added than and I am getting PDF's displayed.

pcorless commented 4 months ago

Good to hear