[iText-questions] [SPAM] Re: Duplicate indirect objects

2013-03-14 Thread mkl
adriano, adriano wrote I think we are starting to converge to a common understanding of my point! :) Well, you want to analyze all data in a PDF file, be it reachable from the root or not. This can be a valid requirement, e.g. for repairing files with broken cross references or for analyzing

[iText-questions] PDFStamper.close() indirectly throws FileNotFoundException

2013-03-14 Thread Peter Lachall
Our application uses iText 5 to populate a PDF form and write out the populated form to disk. The code is roughly: Document document = new Document(); copy = new PdfCopy(document, new FileOutputStream(newFileName)); document.open(); PdfReader reader = new

[iText-questions] Insert Revisions Programmatically In A PDF File

2013-03-14 Thread kgk
Hello. I am trying to insert/copy the revisions from an old PDF file (extracted with AcroFields.ExtractRevision()) to a new one. Can this be done with iText? Basically, I have a document in two formats: In a DOC/DOCX document and in a PDF file. The PDF version needs to accumulate all the

Re: [iText-questions] Insert Revisions Programmatically In A PDF File

2013-03-14 Thread Leonard Rosenthol
It's not possible with ANY PDF library, since revisions are specific to the PDF for which they were created. A PDF revision (or incremental update, to the use the PDF terminology) is a collection of new, modified or (references to) deleted objects from the previous revision. Since object ID's

[iText-questions] Variable Header on every page

2013-03-14 Thread Pedro Peixoto
Hi, I'm building a repport for this java application in my company, and it should have a variable header on every page. The header structure itself does not change: It's a fixed table with a few columns and rows. What changes is the content of the cells. For example: One of the cells has a Date

[iText-questions] Rotating a pargraph an absolute number of degrees

2013-03-14 Thread Carlos Arturo Bernal Carvajal
Hello, I need to add text to a PDF file at absolute positions, rotations, and alignments. The text can have multiple lines. In theory what i would need to do, is to define a paragraph of some defined width and height, set the users text, font, font style, alignment(center, left, right, justify),

Re: [iText-questions] Variable Header on every page

2013-03-14 Thread AJ Weber
Write a class (or add to your class) and extend PdfPageEventHelper. Override the onEndPage. You need the rectangle (area) that you want to add the header or footer to, which you can calculate from the cropbox or similar. Within there you can add anything you want, and it is called at the

[iText-questions] Reposting: Javascript and xfa worker

2013-03-14 Thread Sirisha Dinavahi
I have a simple javascript in my PDF (created using Adobe livecycle designer) that sets the value of a checkbox to true. I set the javascript to run at client. Once I run the document through XFA worker trail version, and open the flattened document I dont see the javascript being executed. The

Re: [iText-questions] [SPAM] Re: Duplicate indirect objects

2013-03-14 Thread Andrew J Daykin
Hello, Reading a PDF File based on COS Objects will teach you *a lot* about PDF Internals. There are some tools out there to do that or you can write your own I used to have a plug-in to do that but I've mislaid the source and it no longer works with the later versions of Acrobat :-(

Re: [iText-questions] Rotating a pargraph an absolute number of degrees

2013-03-14 Thread Jon Wu
Hi Carlos, I just did this and found the info in the list archives. You just have to apply a transform which is pretty trivial. It sounds like your problem is that you're using ColumnText.showTextAligned() which Shows a line of text. Only the first line is written. Try something like this

Re: [iText-questions] Rotating a pargraph an absolute number of degrees

2013-03-14 Thread Carlos Arturo Bernal Carvajal
I see Jon, Thank you very much, it seems like it's just what i need. I'll give it a try and let you know. Best regards. Carlos Bernal. 2013/3/14 Jon Wu j...@wuservices.com Hi Carlos, I just did this and found the info in the list archives. You just have to apply a transform which is