[iText-questions] Table of content

2010-06-20 Thread _apollo
x27;ll buy your 2nd Edition of iText in Action the next days. I have already the on from 2006. Regards _apollo -- View this message in context: http://itext-general.2136553.n4.nabble.com/Table-of-content-tp2261864p2261864.html Sent from the iText - Gen

Re: [iText-questions] How to extract embedded file ?

2010-06-18 Thread _apollo
Got it now with the execute method. Nevertheless I would like to understand, why my posted code did not work. -- View this message in context: http://itext-general.2136553.n4.nabble.com/How-to-extract-embedded-file-tp2247128p2260226.html Sent from the iText - General mailing list archive at Na

Re: [iText-questions] How to extract embedded file ?

2010-06-18 Thread _apollo
I want the same, and searched about 6 hours now. I've made a little example pdf: pdftk b.pdf attach_files a.txt a.edi output a.pdf I suppose the result are document level attachments. I'am working with iText 2.1.7, and tried the following code with iText-toolbox-2.1.7.jar: import java.io.IOExce

Re: [iText-questions] iText in Action 2nd Edition

2010-06-14 Thread _apollo
Is the functionality above 2.1.7 helpfull/necessary for tagging? Is the functionality above 2.1.7 helpfull/necessary for PDF/A validation? -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-in-Action-2nd-Edition-tp2253729p2254043.html Sent from the iText - General

[iText-questions] iText in Action 2nd Edition

2010-06-13 Thread _apollo
Hello. iText 2.1.7 is from July 2009. The ready book is announced about 1,5 years later. How useful is the new book for 2.1.7? Regards _apollo -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-in-Action-2nd-Edition-tp2253729p2253729.html Sent from the iText

Re: [iText-questions] Lose existing Bookmarks and Attachments with PdfCopy

2010-06-02 Thread _apollo
Thanks for your fast answer. >If you want Document Level Attachments to be copied, you need to add >them to PdfCopy explicitly (because now you're only copying annotations >that belong to pages, you aren't copying the Document Level Attachments). >Or you could use PdfStamper; that would simplify

Re: [iText-questions] Lose existing Bookmarks and Attachments with PdfCopy

2010-06-02 Thread _apollo
PdfReader reader = new PdfReader("/tmp/a.pdf"); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("/tmp/b.pdf")); PdfContentByte under = stamper.getUnderContent(1); stamper.addFileAttachment(null, null, "/tmp/a.xml", "a.xml"); stamper.close(); That seems to be ok. I wonder why getU

[iText-questions] Lose existing Bookmarks and Attachments with PdfCopy

2010-06-02 Thread _apollo
I've tried to make an copy of an existing PDF and add new attachments. It works with the following code, but I lose the old attachments and the old bookmarks, although I used PdfCopy, like described in the book from 2006. I'am using iText 2.1.7 import java.io.FileOutputStream; import java.io.IOEx