[iText-questions] Problem with PDF with two digital signature fields getting corrupted by PdfStamper

2008-12-09 Thread Nathan ALDRIDGE
Hi, I have a PDF file with AcroField data. It has a primary digital signature field and a secondary one that gets signed later on. Somehow, in the stamping process, something is getting corrupted. I have boiled it down to a simple test case: Steps taken: 1. Sign the first signature field and sav

[iText-questions] How to convert PdfCopyFields object to byte[] for servlet response?

2008-12-09 Thread tbsit
I am converting a FOP 0.20.5 servlet to a use FOP 0.95. We needed to have bookmarks. which are supported in 0.95. I am completely new to Java, Apache FOP, servlets, and iText. Please excuse me, if I do not get the java semantics down correctly. No one in my shop is a java programmer. I have inhe

Re: [iText-questions] Encrypt pdf Bug

2008-12-09 Thread Steve Cole
If the original pdf was encrypted using an empty string or null password, then a random password was created and used (read the PdfWriter setEncryption method description). In other words, it does have a password, but there's no way to find out what it is. :( - Original Message - Fr

[iText-questions] How to extract TIF from a PDF?

2008-12-09 Thread Davis Ford
Hi, All the documentation / examples trend toward building up a PDF from various components. I have to process PDF files that only contain scanned TIF images. The PDFs are generated via a fax machine. As the faxes come in, the content is converted to TIF, and saved into a PDF file. I need to e

Re: [iText-questions] List of HTML Supported?

2008-12-09 Thread Andrea Conti
Dominic Maricic wrote: > Anyone know if there is a list of what html is supported by htmlworker? > > Thanks, > Dominic Maricic I believe the list of tags are in the HtmlTags class found under iText.text.html. I am using iTextSharp which I think follows the same namespace hierarchy as iText.

[iText-questions] Encrypt pdf Bug

2008-12-09 Thread Sebastian Cuneo
Hi, When I try to copy or read a pdf which was generated with a black password or empty string then I can´t open it again. The library throw an exception saying the the pdf was not open with the owners password. PASSWORD USED: "" READING STATEMENT: PdfReader(new FileInputStream(this.tempFile),

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread Benjamin Podszun
Whoa, that was helpful. Thank you. The document validates now against all utilities that I have at my disposal. I embedded the font as WinAnsi and now I define the font as Identity_H, which - as far as I understand this font magic - means "look it up in your table"? Anyway, it's "compliant" now.

[iText-questions] List of HTML Supported?

2008-12-09 Thread Dominic Maricic
Anyone know if there is a list of what html is supported by htmlworker? Thanks, Dominic Maricic -- View this message in context: http://www.nabble.com/List-of-HTML-Supported--tp20904154p20904154.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread Schalück , Elmar
Hi, Maybe it's the same problem I had a year ago. Are you working with setCharAdvance? It will break PDF/A conformance. See: http://www.nabble.com/PDF-A-and-BaseFont.setCharAdvance-will-give-errors-td15090763.html#a15090763 Regards, Elmar > Sorry for replying to myself, but I think it's interest

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread Michael Klink
ISO 19005-1 says: 6.3.7 Character encodings All non-symbolic TrueType fonts shall specify MacRomanEncoding or WinAnsiEncoding as the value of the Encoding entry in the font dictionary. All symbolic TrueType fonts shall not specify an Encoding entry in the font dictionary, and their font progr

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread Michael Klink
ISO 19005-1 says: 6.3.7 Character encodings All non-symbolic TrueType fonts shall specify MacRomanEncoding or WinAnsiEncoding as the value of the Encoding entry in the font dictionary. All symbolic TrueType fonts shall not specify an Encoding entry in the font dictionary, and their font progr

Re: [iText-questions] Adding meta information to IText PDFs

2008-12-09 Thread Andrea Conti
1T3XT info wrote: > Andrea > Conti wrote: >> I am using ItextSharp but assume the following is applicable to Itext. >> >> === >> I can use the AddTitle, AddSubject, etc methods to add that information >> to a PDF. How can I add Copyright Status and Copyright Notice to a PDF? >>I hope

Re: [iText-questions] table of contents using htmlworker

2008-12-09 Thread 1T3XT info
Andrea Conti wrote: > Could you suggest a way to do this? Maybe, capture the elements as I add > them to the column text and then create the ToC manually. Is there any > gotcha with trying to read the element type as I pull it from the > htmlworker? HTMLWorker gives you an ArrayList of Element

Re: [iText-questions] table of contents using htmlworker

2008-12-09 Thread Andrea Conti
1T3XT info wrote: > Andrea > Conti wrote: >> Is it possible to create a table of contents using, for example, the H2 >> html tag? I don't see it in the book and I am hoping it is in the main >> tool or that someone has modified it to do that. > > No. That is unfortunate. Could you suggest a wa

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread 1T3XT info
Benjamin Podszun wrote: > pdf-tools' pdfvalidator still says: > > 1, 7, 0x03418527, "The embedded TrueType font XFNCRW+ArialMT contains more > than one cmap entries.", 1 > > Can anyone comment on whether this is a valid error? I'll have to leave this question for Leonard. He's the specialist wit

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread Benjamin Podszun
Thanks for the update. I might even try to use itext via ikvm then, just to see if that works out at all/solves these issues. Anyway, good to know about the roadmap! On Tue, 09 Dec 2008 13:12:24 +0100, 1T3XT info <[EMAIL PROTECTED]> wrote: > Benjamin Podszun wrote: >> Is itextsharp maintained >> b

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread 1T3XT info
Benjamin Podszun wrote: > Is itextsharp maintained > by the same team or just a subset (bruno and paolo are listed on the sf.net > page)? Currently iTextSharp is two versions behind. Syncing iTextSharp is sheduled for January/February 2009. That is: if nothing else gets in between for Paulo. -- T

Re: [iText-questions] help need

2008-12-09 Thread 1T3XT info
Tony wrote: > thank you. > I want getPageNumber return last > page on onEndPage method of PdfPageEventHelper Meanwhile I've reread your question. You're asking iText to predict the future. We'd make a lot of money if iText could do that. In reality, iText doesn't know how many pages you'll be a

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread Michael Klink
Yes, http://1t3xt.com/about/history.php?branch=history.21&node=214 states: Changes made by Paulo * PDF-A requires an EOL after obj Benjamin, which iText version do you use? Regards, Michael. -Original Message- From: 1T3XT info [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2

Re: [iText-questions] help need

2008-12-09 Thread Tony
thank you. I want getPageNumber return last page on onEndPage method of PdfPageEventHelper writer.getPageNumber() ; it is return last page of Pdf on onEndPage 2008-12-09 Tony 发件人: 1T3XT info 发送时间: 2008-12-09 17:46:35 收件人: Post all your questions about iText here 抄送: 主题: Re:

Re: [iText-questions] Gradient Background Behind ColumnText

2008-12-09 Thread Damian Nave
Creating a ShadingColor and assigning using setbackgroundcolor did the trick... THANKS HEAPS ! Kind Regards Damian -Original Message- From: 1T3XT info [mailto:[EMAIL PROTECTED] Sent: Tuesday, 9 December 2008 8:17 PM To: Post all your questions about iText here Subject: Re: [iText-que

Re: [iText-questions] help need

2008-12-09 Thread 1T3XT info
Tony wrote: > Dear all > Please find the enclosed pdf and source thank you. I don't open rar files. > I hava a problem for help about itext-1.3.jar That's a very, very old version. At least 3 years old. > I want getPageNumber on onEndPage method of PdfPageEventHelper > > getPageNumber i

Re: [iText-questions] Populate a list item

2008-12-09 Thread 1T3XT info
Giovanni Virdis wrote: > Hi, > > Is possible populate a list item when select a value from another list ? Same answer: use JavaScript the way you would in HTML. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ---

Re: [iText-questions] Upper case

2008-12-09 Thread 1T3XT info
Giovanni Virdis wrote: > Hi, > > Is possibile set a upper on a field? Do you know how to do it in HTML? If so, you can reuse the JavaScript that works in HTML in your PDF file, so that every key that is entered in a field is changed into upper case. -- This answer is provided by 1T3XT BVBA http:

[iText-questions] help need

2008-12-09 Thread Tony
Dear all Please find the enclosed pdf and source thank you. I hava a problem for help about itext-1.3.jar I want getPageNumber on onEndPage method of PdfPageEventHelper getPageNumber is totalPage of pdf. as follow: public void onCloseDocument(PdfWriter writer, Document document)

Re: [iText-questions] Split pages containing specific text

2008-12-09 Thread 1T3XT info
Damian wrote: > Hello everyone, > > I need to split a large pdf file, containing client invoices with 1, > 2,3... n pages. > Each page is numbered like "page 1 / 1, page 2/5) etc. > I need to split this large file into several files - "1.pdf" containing > all the invoices composed of one page -

[iText-questions] Populate a list item

2008-12-09 Thread Giovanni Virdis
Hi, Is possible populate a list item when select a value from another list ? Thanks -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you.

Re: [iText-questions] Concatinating PDFs

2008-12-09 Thread 1T3XT info
Klas Lindbäck wrote: > It is possible, but it requires that you know something about the source > PDFs. > If you know that the lower half of both source PDF:s is always blank > then you can > import them and put them on the same page using a vertical offset of > half a page for the second one.

Re: [iText-questions] PDF/A compliance tests

2008-12-09 Thread 1T3XT info
Benjamin Podszun wrote: > "The separator after an 'obj' must be an EOL.", 3 Isn't that something that was solved in the most recent iText version? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info --

Re: [iText-questions] Gradient Background Behind ColumnText

2008-12-09 Thread 1T3XT info
Damian Nave wrote: > Hi, > Thanks for that, i think i have figured out the issue... > The two following blocks of code, although they seem like they should act > identically to me, don't. > > This works as expected (with the extra border i don't really need) > > _cbr.setShadingFill(axialPattern)

[iText-questions] Upper case

2008-12-09 Thread Giovanni Virdis
Hi, Is possibile set a upper on a field? How I can? Thanks -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help p