Support for PDF 1.7
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Support for PDF 1.7  XML
Forum Index -> ICEpdf General
Author Message
bmyers

Joined: 05/03/2010 00:00:00
Messages: 4
Offline


Is there any plan and/or timeframe for ICEpdf to support the PDF 1.7 format, especially now that PDF is an "open standard"?

Ideally, PDF 1.7, Adobe Extension Level 5 would be great!

Thanks!

--Brad
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1097
Online


ICEpdf does support a large portion of the PDF 1.7 format but as you have identified not all of it. Generally speaking we have relied on supported customers and more recently the ICEpdf community to provide input into the direction of the product.

As new features are added to the PDF specification it can take quite some time before the features are widely implemented by third party PDF encoders. And ultimately even longer before we start seeing PDF's in the wild that are encoded with these new features.

Is there any particular feature you wanted to see implemented from the ISO 3200-1 supplement extension level 5? At the very least I can create an enhancement bug based on your feedback this way it can be scheduled into a future release.
[Email]
bmyers

Joined: 05/03/2010 00:00:00
Messages: 4
Offline


Thanks for the info!
I am trying to generate a set of thumbnails of PDF-1.7 documents, using icepdf-4.0.0, with the following code:

document.getPageImage(0, GraphicsRenderingHints.PRINT, Page.BOUNDARY_CROPBOX, 0.0f, 1.0f);

but failing with an exception:

java.lang.NullPointerException
at org.icepdf.core.pobjects.Page.getSize(Page.java:941)
at org.icepdf.core.pobjects.Document.getPageImage(Document.java:1029)

I've attached the offending PDF.
 Filename ACORD 0131 2009-10.pdf [Disk] Download
 Description PDF file
 Filesize 40 Kbytes
 Downloaded:  63 time(s)


--Brad
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1097
Online


The problem with this document is related to AcroForm support. We don't currently support this potion of the spec. Normally the pages graphic representation would be handle by postscript and only the editable form elements would be rendered using AcroForm notation. Unfortunately this PDF is 100% Acroforms which is causing some problems with our parser.


The Acroform section of the spec is quite large. Are you interested in just static rendering or do you require full interactively and submission?


Thanks for sending the file.
[Email]
bmyers

Joined: 05/03/2010 00:00:00
Messages: 4
Offline


I am just trying to statically render the pages. Actually I just need to render the first page, to create a thumbnail for browsing a library of PDFs.

Is there a way I can force the AcroForm section to be skipped?
Alternatively, can I use another tool like the iText API to write out a version of the PDF without the AcroForm section (e.g. as a PDF 1.6 document) and then render that version?

Thanks!
--Brad

--Brad
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1097
Online


Unfortunately the Acroform section is already skipped. The main problem is that there isn't any other page level information to generate a page view with. I'm not sure if the PDF in question is correctly formed, it might be offside as the spec goes.

I'm not that familiar with the latest offerings from IText API but you could give a try but it might be a bit of a long shot.
[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team