aspose file tools*
The moose likes Java in General and the fly likes Covert a PDF to PDF/A format using iText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Covert a PDF to PDF/A format using iText" Watch "Covert a PDF to PDF/A format using iText" New topic
Author

Covert a PDF to PDF/A format using iText

Anup Bansal
Ranch Hand

Joined: Sep 12, 2006
Posts: 69
I need to convert PDF files to conform to PDF/A format.
How can I achieve this? Can I use iText.jar for this?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42609
    
  65
I don't think so; iText is for creating PDFs, not for making structural changes after the fact.


Ping & DNS - my free Android networking tools app
Anup Bansal
Ranch Hand

Joined: Sep 12, 2006
Posts: 69
I tried iText by first reading a PDF and then re-creating the PDF with the PDF version set 10 1.4 and conformance set to PDF-1A.
I validated the generated PDF using an external tool but it gave some issues.

Following is the snippet of the code:


Could you please suggest me other ways of achieveing this?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42609
    
  65
Setting version and conformance levels in iText does not alter a document; it merely specifies what operations are allowed from that point on. So it doesn't have the desired effect in this case.
Anup Bansal
Ranch Hand

Joined: Sep 12, 2006
Posts: 69
How can I achieve this format conversion? Is there any other jars available for the same?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42609
    
  65
Not to my knowledge; certainly no freely available ones. PDF is not amenable to a lot of changes after its creation; while some modifications are possible, structural alterations within pages generally aren't.

It's possible that Adobe has a native library you could license for this purpose.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Covert a PDF to PDF/A format using iText