Re: [iText-questions] Better after using CSR but still not validated

2011-02-14 Thread zia7770
Hi All, After using CSR although it was optional I am not getting the error anymore but the signer is not validated. Im attaching the output here http://itext-general.2136553.n4.nabble.com/file/n3306318/signed_but_not_validated.jpg signed_but_not_validated.jpg Waiting for someone's help. Rega

Re: [iText-questions] Viewing table attributes

2011-02-14 Thread Lychee W
Thank you Leonard for your response. I've been able to extract the structure tree as a PdfDictionary, but I've been stuck trying to locate the table / table attributes from it. How do you go about parsing the structure tree? Thank you again. 2011/2/9 Leonard Rosenthol > You need to locate th

Re: [iText-questions] PDF to PDFA Conversion

2011-02-14 Thread Leonard Rosenthol
If the original file has a digital signature, then any conversion will break it (as you would expect!). If you want to new file to have a signature, you'd need to resign it with the relevant credentials. There is also a standard for storing the original signature information as metadata, you m

Re: [iText-questions] PDFReader getPageContent() methodreturning weird escape codes

2011-02-14 Thread Mark Storer
That was just a historical example... From back when we were using NeedAppearances now that you mention it (instead of iText's built-in appearance generation). Yes, iText ignores Funny Settings in the default appearance string. That wouldn't help at all. Appologies for any confusion. --Mark St

[iText-questions] PDF/A

2011-02-14 Thread Acc
I am writing code to convert PDF to PDF/A format. I found few code snipped to create PDF/A by using IText Library . Can someone please tell me, what is the use of PdfDictionary class and why we use PdfDictionary class while creating PDF/A document. -- View this message in context: http://

Re: [iText-questions] PDF to PDFA Conversion

2011-02-14 Thread Acc
convert Digital Signature menace, existing PDF document will have the digital signature. I am quite new in this so I thought, there would be some method in Itext which will take care of digital signature. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-to-PDFA-Co

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread Antony Webster
OK but in this case in order to keep the same look as the original font field I'd need to retrieve its font family, weight and size. How can this be done? I've looked around online without much luck... Many thanks for your continued help _ From: 1T3XT BVBA [mailto:i...@1t3xt.info] To:

Re: [iText-questions] PDFReader getPageContent() method returning weird escape codes

2011-02-14 Thread Leonard Rosenthol
/DA is only used when creating NEW appearances. It has no impact on rendering. Combs are a good idea for certain types of things but this didn't sound like one. Leonard -Original Message- From: Mark Storer [mailto:msto...@autonomy.com] Sent: Monday, February 14, 2011 10:44 AM To: Post

Re: [iText-questions] PDF to PDFA Conversion

2011-02-14 Thread Leonard Rosenthol
Correct on both counts. No JavaScript. All fields MUST have an appearance. Leonard -Original Message- From: Mark Storer [mailto:msto...@autonomy.com] Sent: Monday, February 14, 2011 10:34 AM To: Post all your questions about iText here Subject: Re: [iText-questions] PDF to PDFA Conv

Re: [iText-questions] PDFReader getPageContent() method returning weird escape codes

2011-02-14 Thread Mark Storer
One potentially flaky option would be to mess with the Default Appearance string (/DA). It won't let you do kerning, but you can set the character and word spacing. Whether or not they'll be OBEYED is the flaky part. Our form supported "comb" fields before Acrobat added a comb flag for same.

Re: [iText-questions] PDF to PDFA Conversion

2011-02-14 Thread Mark Storer
PS: Forms are supported. Form SCRIPT is not. And IIRC, forms have to be "fully baked". Fields with out an appearance are a Bad Thing. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Original Message- > From: Leonard

Re: [iText-questions] PDF to PDFA Conversion

2011-02-14 Thread Leonard Rosenthol
Why would you strip out forms? Forms are FULLY SUPPORTED in PDF/A. What do you mean "convert digital signature"? Leonard -Original Message- From: Acc [mailto:jaiswalnit...@gmail.com] Sent: Monday, February 14, 2011 6:06 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText

Re: [iText-questions] Alternative names of standard 14 fonts

2011-02-14 Thread Leonard Rosenthol
The PDFs are invalid and they should include Widths. -Original Message- From: Dominika Tkaczyk [mailto:d.tkac...@uw.edu.pl] Sent: Monday, February 14, 2011 2:10 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Alternative names of standard 14 fonts Hello, I am tr

Re: [iText-questions] Error in N-Up Example

2011-02-14 Thread Joe Danziger
Thanks everyone for providing the answer on this. I am transcoding the example to ColdFusion to run within the Java sub-system, so I wasn’t aware of that notation. I see now that it should just be divided by 2. Thanks very much for the clarification! -Joe From: Alexis Pigeon [mailto:p

Re: [iText-questions] Error in N-Up Example

2011-02-14 Thread Alexis Pigeon
Hi Joe, On 14 February 2011 16:47, Joe Danziger wrote: > There appears to be an error in the example found on Page 171 of the 2E > book. This is also found online at > http://itextpdf.com/examples/iia.php?id=115. > > > > The issue is at the end of the lines where offsetX and offsetY get set. >

Re: [iText-questions] Error in N-Up Example

2011-02-14 Thread 1T3XT BVBA
Op 14/02/2011 16:47, Joe Danziger schreef: There appears to be an error in the example found on Page 171 of the 2E book. This is also found online at http://itextpdf.com/examples/iia.php?id=115. The issue is at the end of the lines where offsetX and offsetY get set. The lines both get div

[iText-questions] Error in N-Up Example

2011-02-14 Thread Joe Danziger
There appears to be an error in the example found on Page 171 of the 2E book. This is also found online at http://itextpdf.com/examples/iia.php?id=115. The issue is at the end of the lines where offsetX and offsetY get set. The lines both get divided by "2f", but there is no reference to any "

Re: [iText-questions] Adding extra margins to existing PDF. Using 5.0.4

2011-02-14 Thread 1T3XT BVBA
Op 14/02/2011 15:54, Frode Halvorsen schreef: > But What I don’t understand now, is this; When using this code, and > actually importing all pages as images. Why are the result.PDF’s still > not images ? getImage() doesn't rasterize the content. If you pass a PdfImportedPage, it copies all the PD

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread 1T3XT BVBA
Op 14/02/2011 15:34, Anthony Webster schreef: I have a one paged PDF which I'm using as a 'background', 'watermark' or 'stationary' if you will to the content I'm generating. This background pdf contains a number of form fields which I intend to fill and amongst these are $pagenum and $pagecoun

Re: [iText-questions] PDFReader getPageContent() method returning weird escape codes

2011-02-14 Thread 1T3XT BVBA
Op 14/02/2011 16:36, Wyatt Biker schreef: > So far all I understand is that I would have to get some information > from the field (using which methods?), getFieldPositions(), see page 263-264. > flatten it (which methods?), One possible way to do it, is the addParagraph method in listing 8.17.

Re: [iText-questions] PDFReader getPageContent() method returning weird escape codes

2011-02-14 Thread Wyatt Biker
The fields don't have to be editable after the user saves. If it's not too much could someone provide me the steps of doing this? I am not looking for an entire program but just the methods in the correct order to do this. Even the reference to the book would be good. So far all I understand is t

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread Anthony Webster
I have a one paged PDF which I'm using as a 'background', 'watermark' or 'stationary' if you will to the content I'm generating. This background pdf contains a number of form fields which I intend to fill and amongst these are $pagenum and $pagecount. Le 14/02/2011 15:28, 1T3XT BVBA a écrit :

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread 1T3XT BVBA
Op 14/02/2011 15:22, Anthony Webster schreef: Or perhaps I should be using PdfCopyFields but again I can't see how to apply this to my case... :( No, PdfCopyFields isn't the answer. I didn't really understand why you started talking about forms. Unless your background is a form. In that case, yo

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread Anthony Webster
Or perhaps I should be using PdfCopyFields but again I can't see how to apply this to my case... :( Le 14/02/2011 12:10, Anthony Webster a écrit : I have looked at the PageEvent example in chapter 5 and while I can see how this works with a static header (as in the example), wrapping the page

Re: [iText-questions] PDF to PDFA Conversion

2011-02-14 Thread 1T3XT BVBA
Hello, you have posted a mail to itext-questions@lists.sourceforge.net but you weren't subscribed. You are receiving this answer because I've added your mail address in Bcc: I will do this only once! Further answers will be sent to the mailing-list only (you won't receive them if you don't subscr

Re: [iText-questions] PDF to PDFA Conversion

2011-02-14 Thread Acc
Thanks for your reply: here is my requirement: - Convert PDF Level 1.4 to PDF/A - all fonts embedded - stripping out forms - able to convert Digital Signature below is the code snipped which i wrote using jar IText 2.1.3 . This code convert PDF to PDF/A , but I do not know that, it is coverin

Re: [iText-questions] scaling page position

2011-02-14 Thread CRON_20
Great thanks for your reply! My problem resolved successfully. -- View this message in context: http://itext-general.2136553.n4.nabble.com/scaling-page-position-tp3301089p3304895.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] Certifying Digital Signature By CAcert.org

2011-02-14 Thread zia7770
Hi All, I am trying to implement Digital Signature to sign a pdf document using iText and I like the digital signature be certified by https://www.cacert.org/. I have done the following steps so far: 1) created a keystore using the following command keytool -genkey -alias signer1 -keyalg RSA -key

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread Anthony Webster
I have looked at the PageEvent example in chapter 5 and while I can see how this works with a static header (as in the example), wrapping the page count in a template, in my case the page count goes into an AcroForm field and I can't really see how one could adapt the example's approach to achi

[iText-questions] Bharathi Kongara is out of the office.

2011-02-14 Thread Bharathi Kongara
I will be out of the office starting 02/14/2011 and will not return until 02/15/2011. I will respond to your message when I return. In my absence, please reach out to Ajay Maddukuri (602-766-1014) for any GSIS releated issues. For anything urgent, I can be reached on 435-760-5047. Thanks, Bhar

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread 1T3XT BVBA
Op 14/02/2011 11:47, Anthony Webster schreef: OK thanks. I'll look into that. Did I mention that the CONTENT can be in the 100s of pages. Would that make a big difference to the most optimal approach? There's no "general answer" on this question. The number of pages is only one parameter, not n

[iText-questions] Alternative names of standard 14 fonts

2011-02-14 Thread Dominika Tkaczyk
Hello, I am trying to use iText to parse PDF files and obtain text chunks along with their position, width and height. In a few files I've noticed a problem with string width: the width I get is oddly small, and font.getWidth(somestring) always returns 0. The fonts used in problematic files

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread Anthony Webster
OK thanks. I'll look into that. Did I mention that the CONTENT can be in the 100s of pages. Would that make a big difference to the most optimal approach? Many Thanks Le 14/02/2011 11:30, 1T3XT BVBA a écrit : Op 14/02/2011 11:24, Anthony Webster schreef: 1&2 But then I wouldn't be able to fil

Re: [iText-questions] iText-questions Digest, Vol 57, Issue 49

2011-02-14 Thread Iain Wilson
Hi All I am trying to merge multiple 'pdf images' into a single pdf document. All well so far. I need to rotate some of the images (where the height > width). In my code (see below) sourceXStart and sourceYStart are the x, y co-ordinates. if (rotation == 90 || rotation == 270) { //

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread 1T3XT BVBA
Op 14/02/2011 11:24, Anthony Webster schreef: 1&2 But then I wouldn't be able to fill a field with the total number of pages no? That's solved in the "Page X of Y" example in chapter 5. You provide a PdfTemplate that will act as a placeholder. As soon as you know the total number of pages, you

Re: [iText-questions] PDF Watermarks

2011-02-14 Thread Anthony Webster
1&2 But then I wouldn't be able to fill a field with the total number of pages no? 3. No reason. Why would that make a difference? Le 14/02/2011 08:30, 1T3XT BVBA a écrit : Op 14/02/2011 0:50, Antony Webster schreef: I'd be most interested in your opinions in terms of memory efficiency. Brow

Re: [iText-questions] Problem with signing PDF using HSM Luna - certificate chain not showing up

2011-02-14 Thread TvT
Hi, if you want to easily access / verify your certificates / keystore you can check with the keystore explorer: http://www.lazgosoftware.com/kse/index.html Regards, ToM 2011/2/11 : > Hi Gerhard, > > that seems to be a Luna configuration issue. Or you're making wrong > assumptions about the ce