At 09:39 AM 2/24/2006, Petter Nyström wrote:
Hello! I am browsing the internet for code libraries to work with PDF documents. So far, iText looks the best!

iText is an excellent library for many things PDF - but certainly not all...


One of the basic things I want to do is to pull images out of a PDF, let third-party software modify these images and then plug the modified images back into the PDF without changing the document layout. Can iText do this?

        No.

In fact, I am not aware of ANY non-commercial library that will provide that level of functionality (specifically the "putting back" part - the extraction is easy).


Or to what extent can iText help me in writing my own code for doing this?

You could use iText to extract the images, though you'd also need a VERY detailed understanding of image handling and color management in order to make sure that the extracted data was in the correct form.

Depending on what types of modifications you are going to allow the 3rd party tools to do, it MIGHT be possible to use iText, but you'd need to work at a very low level of PDF functionality to find, modify and replace the relevant objects.


When I set out on my search for PDF libraries, my highest goal was really to find a PDF parser. I would love to find code that takes a PDF document and turns it into a data structure representing the elements in the PDF - i.e. a parse tree. Then I could traverse this tree and do whatever modifications I'd like to the nodes therein. When finished, I'd need some code to turn the parse tree back into a flat string - a PDF document.

        There are a couple of commercial libraries that offer this feature.


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                             215-938-0880 (fax)



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to