[iText-questions] Not able to get the correct page size

2009-04-16 Thread chidu
I am using spring's AbstractPdfView for my pdf views. I want a document in landscape A4. here is the code is used. No matter whatever size i give it only outputs one size. Please help me. protected void buildPdfDocument(Map model, Document document, PdfWriter pdfWriter,

Re: [iText-questions] iText Version

2009-04-16 Thread Xavier Le Vourch
Tummala-t, Kumar wrote: > Hi, > > We are using iText 1.02(b) for our application. > > Now we need to upgrade our app from jdk 1.4.2_13 to jdk 1.5.0_09. > Please let us know if we need to use any latest version of the iText > (or) we can continue without any issues with iText 1.02(b) which we >

[iText-questions] iText Version

2009-04-16 Thread Tummala-t, Kumar
Hi, We are using iText 1.02(b) for our application. Now we need to upgrade our app from jdk 1.4.2_13 to jdk 1.5.0_09. Please let us know if we need to use any latest version of the iText (or) we can continue without any issues with iText 1.02(b) which we would prefer to reduce any risks from ou

Re: [iText-questions] Problem with JHOVE validationof PDF/A

2009-04-16 Thread Leonard Rosenthol
While I think it's great that JHOVE exists, the web site CLEARLY INDICATES that it is NOT a complete PDF/A validation tool - it has a number of known limitations and can NOT be used as a serious validator at this time. I would recommend that you invest in one of the many commercial solutions for

[iText-questions] Problem with JHOVE validationof PDF/A

2009-04-16 Thread Christian Mahnke
Hello list, a short introduction: we are developing a small application to generate PDF/A files containing scanned images of scanned books. Since we a library, we have a strong focus on long term preservation. To be sure about the validity of the files we create we use the JHOVE [1] tool develop

Re: [iText-questions] [SPAM] iText# in conjunction with Windows print driver

2009-04-16 Thread David Thielen
www.windwardreports.com has it - but it's commercial. David Thielen 303-499-2544 x1185 720-352-0676 (cell) From: Paul Swift [mailto:paulswift1...@hotmail.com] Sent: Thursday, April 16, 2009 2:07 PM To: iText mailinglist Subject: [SPAM] [iText-questions] iText# in conjunction with Window

[iText-questions] Error creating RTF of images.

2009-04-16 Thread Jorge Luis Rodriguez Monteagudo
Hi , I am using itext to generate PDF's of images and all it's work OK , but when I try to make the same to generate RTF's of images do not work , this is the part of code : Document RTF = new Document(sizePagi

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Michael Schierl
On Thu, 16 Apr 2009 20:32:35 +0200, 1T3XT info wrote: > Michael Schierl wrote: >> The same exception is thrown if I include the PdfContentByte of that page >> and copy it over to the new document. > > What do you mean by this? A PdfImportedPage or just a content stream? // after document.newPage

Re: [iText-questions] Hyperlink Regression in iText 2.1.6 (SVN revision 3721 by mstorer)

2009-04-16 Thread Michael Schierl
On Thu, 16 Apr 2009 19:54:46 +0200, 1T3XT info wrote: > Michael Schierl wrote: >> Thanks for your quick fix. > > In SVN, I added a toString() for the imported link objects. > >> Unfortunately it still does not work for the original PDF (which is a bit >> too large to attach it here). I managed t

[iText-questions] iText# in conjunction with Windows print driver

2009-04-16 Thread Paul Swift
Does anyone have any experience of using iText# in conjunction with a Windows print driver? I have a new requirement where producing PDF files via a print driver is the ideal solution. As a long time user and advocate of iText#, I was hoping to include iText code already developed as part o

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread 1T3XT info
Michael Schierl wrote: > And, it still crashes, if you use jPDF Tweak and let it rescale the PDF > (scaling both the content and the hyperlinks) to, say, A3 format. Let me rephrase my question: has this ever worked? Because at first sight, I can't see how it would work. -- This answer is provided

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread 1T3XT info
Michael Schierl wrote: > The same exception is thrown if I include the PdfContentByte of that page > and copy it over to the new document. What do you mean by this? A PdfImportedPage or just a content stream? > I removed that part from the example > to make it clear that the hyperlinks are the cu

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Michael Schierl
On Thu, 16 Apr 2009 19:56:34 +0200, 1T3XT info wrote: > Xavier Le Vourch wrote: >> I've just added two new tests cases in SVN based on the two pdf files >> you sent to the list. The first one is now fixed by Bruno's change but >> the one from this thread still fails with a NPE. > > And it SHOULD

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread 1T3XT info
Xavier Le Vourch wrote: > I've just added two new tests cases in SVN based on the two pdf files > you sent to the list. The first one is now fixed by Bruno's change but > the one from this thread still fails with a NPE. And it SHOULD fail! Maybe not with a NullPointerException, but the example doe

Re: [iText-questions] Hyperlink Regression in iText 2.1.6 (SVN revision 3721 by mstorer)

2009-04-16 Thread 1T3XT info
Michael Schierl wrote: Thanks for your quick fix. In SVN, I added a toString() for the imported link objects. Unfortunately it still does not work for the original PDF (which is a bit too large to attach it here). I managed to build a smaller PDF that shows the same behaviour, this time when

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
Ok to be exact, they don't substitute pages, they are not so radical. They just scale the original content and put the image bellow. More correct behaviour impossible. It looks like this is too much enough for adobe not to recognize all the info on the original digital signature. Even for its last

Re: [iText-questions] Hyperlink Regression in iText 2.1.6 (SVN revision 3721 by mstorer)

2009-04-16 Thread Michael Schierl
On Thu, 16 Apr 2009 18:21:34 +0200, 1T3XT info wrote: > Michael Schierl wrote: >> To reproduce, just run the following code on the attached PDF. >> >> String filename = "D:\\temp\\buggy.pdf"; >> PdfReader rdr = new PdfReader(new >> RandomAccessFileOrArray(filename), new byt

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
Ok Michael. For you to know, I saw it happened still in v9 It's not on my project, but another one. They are more radical than me, it's not just an image added, is a page replaced with a scaled image of the original page, and an image added bellow. Then they end up still on same issue even with

Re: [iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Xavier Le Vourch
Michael Schierl wrote: > Hello again, > > now I managed to condense the "bad" PDF I wrote about in the > postscriptum of my last email to one small page that still shows the > behaviour. I've just added two new tests cases in SVN based on the two pdf files you sent to the list. The first one is n

Re: [iText-questions] Hyperlink Regression in iText 2.1 .6 (SVN revision 3721 by mstorer)

2009-04-16 Thread Mark Storer
Michael Schierl gmx.de> writes: > > Sorry if my statement was ambiguous. Although initially implemented by me, > the code of getLinks has been committed to iText svn by Paulo in revision > 2880 (in August 2007). > > Commit: > http://itext.svn.sf.net/viewvc/itext?view=rev&revision=2880 > > Vers

Re: [iText-questions] Hyperlink Regression in iText 2.1.6 (SVN revision 3721 by mstorer)

2009-04-16 Thread 1T3XT info
Michael Schierl wrote: > To reproduce, just run the following code on the attached PDF. > > String filename = "D:\\temp\\buggy.pdf"; > PdfReader rdr = new PdfReader(new > RandomAccessFileOrArray(filename), new byte[0]); > // this one works: PdfReader rdr = new PdfRe

[iText-questions] NullPointerException in PdfWriter.getNewObjectNumber

2009-04-16 Thread Michael Schierl
Hello again, now I managed to condense the "bad" PDF I wrote about in the postscriptum of my last email to one small page that still shows the behaviour. This time, the code to reproduce is a bit longer: PdfReader currentReader = new PdfReader("D:/temp/bug.pdf"); Document documen

Re: [iText-questions] Coldfusion 8 and iText

2009-04-16 Thread Paul Hastings
Adam Leszinski wrote: > From my understanding and research on the web I have found that > Coldfusion 8 ships with an iText library to support many of the tags > Coldfusion 8 provides for PDF generation, however this library is not > the full iText library and therefore there is the potential th

[iText-questions] Sizing of objects in PDF

2009-04-16 Thread Andrew McNaught
Hello, I'm having trouble with displaying objects in my PDFs the correct size. For example, let's say I try and output a single table cell with a width of 720 points. When I measure the cell with my ruler on screen at 100% it should be 10 inches wide but is actually about 11.15 inches wide. My

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
I am using an electronic id of another guy so I would prefer not to sent the generated docs since it would have someonelse private info, i would have to generate the docs with dummy ids. But the point is perfect simple. Normally signed documents (with timestamp, reason and location) with itext, aft

[iText-questions] Coldfusion 8 and iText

2009-04-16 Thread Adam Leszinski
I am looking to utilize or have the ability to utilize the full iText library with Adobe Coldfusion 8. >From my understanding and research on the web I have found that Coldfusion 8 >ships with an iText library to support many of the tags Coldfusion 8 provides >for PDF generation, however this

Re: [iText-questions] IMPORTANT: itext-questions

2009-04-16 Thread Bruno Lowagie
Barnali B wrote: > Can you please advice me in creating a PDF file for my application? > I am trying to add a page in an existing pdf. Say for example I am > trying to create the *'Table of Content'* for my already created pdf > which have some list of information. I want to place the *'Table of

Re: [iText-questions] Insert image in a pdf in a web application

2009-04-16 Thread Bruno Lowagie
mitroiasi wrote: > > Hi, > > I have a problem inserting an image in a pdf. I tried the code locally and > it works. > In the web application I don't know how to create the image from the: > context.getResourceAsStream("/pdf/images/cross.gif"); That's not an iText problem! This is something every

Re: [iText-questions] URL of submit button

2009-04-16 Thread Martin Leboeuf
Hi ! Indeed, if I remove usage rights, editing works fine. I could compromise on not being able to save a filled copy. But without usage rights, the submit button no longer works. Obviously, it needs to work. As a wild guess, I tried "new PdfStamper(reader, new FileOutputStream(RESULT), '\0',

Re: [iText-questions] CSS and html question

2009-04-16 Thread Bruno Lowagie
Anu Padki wrote: > I want to find out if there is any other way of achieving it, so that my > users can make changes to the stylesheet which I can use to generate the > html2pdf seamlessly. Use Flying Saucer for html2pdf. Flying Saucer used iText to produce the PDF, but adds HTML + CSS parsing

Re: [iText-questions] URL of submit button

2009-04-16 Thread Bruno Lowagie
Martin Leboeuf wrote: > Then, using Acrobat, I open the file and "enable usage rights", > so that end users can save filled versions of the pdf form. > Finally, I modify the file using the code above. After that, you CAN'T change objects in the document without breaking Reader Enabling, unless y

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread Leonard Rosenthol
That makes two of us! -Original Message- From: m...@wir-sind-cool.org [mailto:m...@wir-sind-cool.org] Sent: Thursday, April 16, 2009 9:45 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Signature gets corrupted when editing after sign Rui, hhmmm, being a bi

Re: [iText-questions] URL of submit button

2009-04-16 Thread Martin Leboeuf
Hi ! First, here is the code snippet modifying the pdf document : File f = File.createTempFile("TheModifiedFormFile", ".pdf"); PdfReader reader = new PdfReader("/path/to/OriginalFormFile.pdf"); PdfDictionary root = reader.getCatalog(); PdfDictionary acroform =

Re: [iText-questions] URL of submit button

2009-04-16 Thread Bruno Lowagie
Martin Leboeuf wrote: > Hi again ! > > Thanks for the help. I did manage to modify my form. The problem now is that > when I open the resulting file with Acrobat Reader, I get the following > message: > > "This document contained certain rights to enable special features in Adobe > Reader. The

Re: [iText-questions] PdfCopy

2009-04-16 Thread Jason Berk
Thanks, I never came across that website. Jason -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Thursday, April 16, 2009 1:57 AM To: Post all your questions about iText here Subject: Re: [iText-questions] PdfCopy Jason Berk wrote: > Is there a way to use PdfCopy to co

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread mkl
Rui, hhmmm, being a bit curious I really would like to know on what kinds of manipulations of signed materials Adobe softened its checks. Would it be possible for you to provide a sample document, maybe even sample code? Regards, Michael. -Original Message- From: rui fernandes [ma

Re: [iText-questions] Signature gets corrupted when editing aftersign

2009-04-16 Thread rui fernandes
Ok Michael, About the PDFStamper append mode, of course I do that. That's why it works when I add the image to a different/new page at the end of the document. But the happy truth is that I just checked with the new version of adobe reader 9, the same document and it works fine even when I add th

Re: [iText-questions] URL of submit button

2009-04-16 Thread Leonard Rosenthol
Unless you have a copy of Adobe Acrobat Professional or LiveCycle Reader Extensions Server, you can't. How did you end up modifying the document? Sounds like you didn't use a PdfStamper... Leonard -Original Message- From: Martin Leboeuf [mailto:martin.lebo...@mail.mcgill.ca] Sent: Th

Re: [iText-questions] URL of submit button

2009-04-16 Thread Martin Leboeuf
Hi again ! Thanks for the help. I did manage to modify my form. The problem now is that when I open the resulting file with Acrobat Reader, I get the following message: "This document contained certain rights to enable special features in Adobe Reader. The document has been changed since it was

Re: [iText-questions] iText License

2009-04-16 Thread Bruno Lowagie
Suren Avunjian wrote: > Hello, > > We are planning on using iText in our application and would like a copy > of the license agreement for our records. If you are talking about buying a license, please go to http://itextsoftware.com/ br, Bruno

Re: [iText-questions] Hyperlink Regression in iText 2.1.6 (SVN revision 3721 by mstorer)

2009-04-16 Thread Michael Schierl
On Thu, 16 Apr 2009 00:38:04 + (UTC), Mark Storer wrote: >> Yes, I know, that getLinks method has initially been implemented by me >> (so shame on me) but it seems the PDFReader got that much more >> complexity since then that I cannot really understand what is going on >> here, especially sin

Re: [iText-questions] Signature gets corrupted when editing aftersign

2009-04-16 Thread mkl
Rui, > The strange thing is that no binary corruption occurs > on signature if image is added to a new page, but it > occurs if i add it to the same first and only page. > This doesn't seems very justifiable I guess. actually there is (at least semantically) quite a big difference between chan

[iText-questions] sorry

2009-04-16 Thread rui fernandes
sorry for the mess i made with my emails, but i was get confused seeing i was not receiving the emails others write me back, to see on the web that other's answers were not on my thread and my answers didn't show up i guess is not only my fault

[iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
Hi Michael, Check the mail before on some comments on a similar old post. I will put some code in here when I can and if no one finds the solution to my problem. The strange thing is that no binary corruption occurs on signature if image is added to a new page, but it occurs if i add it to the sam

[iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
So, It's me again, I was passing through old related topics on the mailing list and saw a very similar problem. (Look bellow.) My problem with Paulo Soares answer is that it's not exactly right. Since just as I said, if I add the image to a new page the signature info just says the document has be

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
So, It's me again, I was passing through old related topics on the mailing list and saw a very similar problem. (Look bellow.) My problem with Paulo Soares answer is that it's not exactly right. Since just as I said, if I add the image to a new page the signature info just says the document has be

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
Hi Michael, To give you more details. Check bellow on some comments on a similar old post. I will put some code in here when I can and if know one finds the solution to my problem. The strange thing is that no binary corruption occurs on signature if image is added to a new page, but it occurs if

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread mkl
Hi, after signing a document only a very few changes to it are allowed. Additionally you must make sure you change the document in append mode. If you work in append mode and think your changes are allowed, please do throw in some code and a sample pdf. Regards, Michael.

Re: [iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
So, It's me again, I was passing through old related topics on the mailing list and saw a very similar problem. (Look bellow.) My problem with Paulo Soares answer is that it's not exactly right. Since just as I said, if I add the image to a new page the signature info just says the document has bee

[iText-questions] CSS and html question

2009-04-16 Thread Anu Padki
hello itext-gurus, I am very new to i-text. I am trying to achieve the following, and I believe it is not possible with itext as of now. Please advise. I have a velocity template which I convert to pdf (essentially html to pdf) I want the html to link to a css or include it in the header and m

[iText-questions] iText License

2009-04-16 Thread Suren Avunjian
Hello, We are planning on using iText in our application and would like a copy of the license agreement for our records. -- Best Regards, Suren Avunjian VP of Sales & Development Direct +1 (818) 395-4659 Fax +1 (928) 395-4659 LigoLab Incorporated Healthcare Solutions ATTENTION: The info

[iText-questions] Insert image in a pdf in a web application

2009-04-16 Thread mitroiasi
Hi, I have a problem inserting an image in a pdf. I tried the code locally and it works. In the web application I don't know how to create the image from the: context.getResourceAsStream("/pdf/images/cross.gif"); I found a code, but I don't want to use a new framework (jar) only for this reason

[iText-questions] IMPORTANT: itext-questions

2009-04-16 Thread Barnali B
Hi, Can you please advice me in creating a PDF file for my application? I am trying to add a page in an existing pdf. Say for example I am trying to create the 'Table of Content' for my already created pdf which have some list of information. I want to place the 'Table of Content' in the second

[iText-questions] Signature gets corrupted when editing after sign

2009-04-16 Thread rui fernandes
Hi, When I add an image to an already signed document, the final document gets the old signature info corrupted. If I add the image to a new page on the same document the problem doesn't happen. Both image adding and signing are made with itext. Does anyone knows this problem already or should I

Re: [iText-questions] Hyperlink Regression in iText 2.1.6 (SVN revision 3721 by mstorer)

2009-04-16 Thread mkl
Before revision3721, after calling the static method PdfObject PdfReader.getObject(PdfObject obj) for an instance of PdfIndirectReference, PdfReader.lastXrefPartial used to be properly set to the object index after returning (a side effect of ref.getReader().getPdfObject(idx)). PdfRea