Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread 1T3XT info
Mike Preston wrote: > That was my initial thought as well. Is there any chance you're writing to two writers? Because you can have two different writers listening to the same document. That would explain a lot. How many times do you have PdfWriter.getInstance(..., ...) in your code? -- This a

Re: [iText-questions] Nested Table Background Overflowing

2010-02-02 Thread Don
1T3XT info 1t3xt.info> writes: > > Don wrote: > > I am trying to nest a table within the cell of another table with the goal of > > having some of the background of the outer table show around the table being > > nested. Here is the basic idea > > Can you provide a small standalone example

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread Mike Preston
That was my initial thought as well. So I put code in to write the current (local) page number to the console and it's being called and displayed at the end of every page. Breakpoints set in that block of code will stop in there too. I have to wonder if there's not a second instance of a docu

Re: [iText-questions] FYI: PdfPKCS7 missing empty timestamp attribute check, causing PKCS7ArrayIndexOutOfBoundsException

2010-02-02 Thread 1T3XT info
Harakiri wrote: >> What is your point? > > Just FYI for itext users who backport fixes into 2.x branch. There's no reason to make that back port. People shouldn't use old iText versions. >> What is your real name? >> Who are you working for? > > That doesnt matter in any way. It depends. If yo

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread Mark Storer
Off hand, I'd say your EndPage handler isn't being called in your production environment. Can you step through it in a debugger to verify it one way or the other? --Mark Storer Senior Software Engineer Cardiff.com #include typedef std::Disclaimer DisCard; > -Original Message---

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread 1T3XT info
Mike Preston wrote: > Exactly! The question is, why is it not getting written? Whenever I encounter a problem like this, I use a method taken from eXtreme Programming: I throw away all my code and I start anew. Usually, the problem disappears because: 1. I have more experience after the first at

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread Mike Preston
The file HelloWorldb.pdf is the test file, which is behaving correctly, ugly as it is. The file 14_10373.pdf should have a similar blue line which does not appear. Dunno where it went? -Original Message- >From: Leonard Rosenthol >Sent: Feb 2, 2010 10:45 AM >To: 'Mike Preston' , 'Post

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread Mike Preston
Exactly! The question is, why is it not getting written? The attached code fires OK on the end-of-page event, but the line never shows up in the document. I must be missing something but I don't see what it is...? class EndPageEvent extends PdfPageEventHelper { protected Phrase header

Re: [iText-questions] importRtfDocument(Unknown Source)

2010-02-02 Thread 1T3XT info
Mark Storer wrote: > Paulo, Bruno? Care to throw the RTF'ers a bone here? The people who were working on the RTF package have other jobs now. It's an economic law: paid work gets priority over unpaid work. And no: it's not all about the money. The money is just an excuse. It's also a minority o

Re: [iText-questions] FYI: PdfPKCS7 missing empty timestamp attribute check, causing PKCS7ArrayIndexOutOfBoundsException

2010-02-02 Thread 1T3XT info
Harakiri wrote: > It wasnt in the last official 2.17 release from sourceforge - so the fix is > only in 4.x. What is your point? What is your real name? Who are you working for? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info --

[iText-questions] AcroForm suddentely disapearring

2010-02-02 Thread Stephane Lavoie
Hi, I am currently working on the creation of a PDF document with AcroForms. I need many type of field in my document. Up to now, I have text field , choice field, check boxes, radio button. I frequently run into a problem which is giving me a lot of trouble. At first, my document is fine

Re: [iText-questions] Verify PDF whit revision comparation

2010-02-02 Thread mkl
Oscar, OscarP wrote: > i have tested the pdfs you attached and they work fine (with itext 2.1.5), > every pdf return false Hhmmm, in that case maybe there are too many differences between 2.1.5 and 4.2 for your patches... not too surprisingly, considering how near to iText internals you get.

Re: [iText-questions] importRtfDocument(Unknown Source)

2010-02-02 Thread Mark Storer
The iText RTF project on sourceForge has been updated to support Windows Vista (it's newer than my earlier source 'quote'), but not yet Windows 7. You should be able to download the source and make the fix yourself easily enough. While the RTF project on SF was created to move the RTF discussio

Re: [iText-questions] FYI: PdfPKCS7 missing empty timestamp attribute check, causing PKCS7ArrayIndexOutOfBoundsException

2010-02-02 Thread Harakiri
--- On Tue, 2/2/10, Paulo Soares wrote: > From: Paulo Soares > Subject: Re: [iText-questions] FYI: PdfPKCS7 missing empty timestamp > attribute check, causing PKCS7ArrayIndexOutOfBoundsException > To: "Post all your questions about iText here" > > Date: Tuesday, February 2, 2010, 12:06 PM >

Re: [iText-questions] FYI: PdfPKCS7 missing empty timestamp attribute check, causing PKCS7ArrayIndexOutOfBoundsException

2010-02-02 Thread Paulo Soares
That was fixed in October. Paulo > -Original Message- > From: Harakiri [mailto:harakiri...@yahoo.com] > Sent: Tuesday, February 02, 2010 4:38 PM > To: Post all your questions about iText here > Subject: [iText-questions] FYI: PdfPKCS7 missing empty > timestamp attribute check, causing

Re: [iText-questions] importRtfDocument(Unknown Source)

2010-02-02 Thread Mark Storer
Looking at the source for RtfDestinationFontTable, I'm guessing the call to getEnvironmentVariables returned null. This code is taken from 2.0.8-ish. private Properties getEnvironmentVariables() throws Throwable { Properties environmentVariables = new Properties();

Re: [iText-questions] Verify PDF whit revision comparation

2010-02-02 Thread OscarP
Michael, i have tested the pdfs you attached and they work fine (with itext 2.1.5), every pdf return false except VisiblySignedNewPage.pdf that returns true because it adds a new page and modify the structure of the document. Respect to "equals" method you are right, i should have written a pers

Re: [iText-questions] Check Box With X mark

2010-02-02 Thread Mark Storer
Sounds like you want a check box field with the shape set to 'X'. I'm pretty sure there's an example for creating form fields in the online examples. You'd just need to modify it to use the right check mark style. http://www.1t3xt.info/examples/browse/?page=example

Re: [iText-questions] Merging of dynamic XFA forms

2010-02-02 Thread Mark Storer
The only thing iText can do with XFA forms is get and set their field values. ANYTHING beyond that is beyond iText. --Mark Storer Senior Software Engineer Cardiff.com #include typedef std::Disclaimer DisCard; > -Original Message- > From: SRI!0! [mailto:srikan...@live.in] > S

[iText-questions] FYI: PdfPKCS7 missing empty timestamp attribute check, causing PKCS7ArrayIndexOutOfBoundsException

2010-02-02 Thread Harakiri
A signature with an empty timestamp attribute will cause an exception. Sample pdf file test1.pdf: http://old.nabble.com/PDF-signature-validation-problems-p25995965.html Issue in PdfPKCS7.java Old: AttributeTable attble = new AttributeTable(unat); Attribute ts = attble.get(PK

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread Leonard Rosenthol
Don't know why you think there should be a blue line in that 14_xxx file, there is clearly nothing in the PDF content stream other than drawing the text: q BT 60 562 Td 0 -16 Td /F1 12 Tf (CSG Systems, Inc. / Vantage Plus)Tj ( )Tj 0 0 Td 0 -16 Td (Misc Adjustment Research Report \(CPSD-148\))Tj (

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread 1T3XT info
Mike Preston wrote: > When I copy and pasted the two lines of code into the code that's not > rendering, alas, it still is not rendering. Show us the PDF. You say "it still is not rendering", but the word "rendering" can be interpreted in two different ways. iText renders the line to PDF; a viewe

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread Leonard Rosenthol
Can you post a sample PDF that demonstrates the problem? -Original Message- From: Mike Preston [mailto:mikepres...@sprintmail.com] Sent: Tuesday, February 02, 2010 9:41 AM To: Mark Storer; Post all your questions about iText here Subject: Re: [iText-questions] Need an extra pair of eyes -

Re: [iText-questions] Need an extra pair of eyes - subtle bug.

2010-02-02 Thread Mike Preston
Thanks for the suggestion, Mark. I set the stroke to bright blue (40,40,240) and tested again. In the test driver, the line came through as bright blue, BaseColor myColor = new BaseColor(40, 40, 240); canvas.setColorStroke(myColor); When I copy and pasted the two lines of co

Re: [iText-questions] iTextSharp PDf help

2010-02-02 Thread 1T3XT info
Bibin wrote: > Hello Team, > > How can I disable Content Copying, Page Extraction, etc. of a pdf > through iTextSharp pdf utility. Such features are on the security tab > (of a pdf Properties). > > Please guide me on this for which I will be grateful. Encrypt the PDF and set these permission

Re: [iText-questions] Question regarding usage rights after

2010-02-02 Thread 1T3XT info
Sethu R wrote: > I tried 3 different ways of instantiating the PdfStamper: I've tried them too. I took the following PDF: http://examples.itextpdf.com/resources/pdfs/xfa_enabled.pdf and I filled it using this code: http://itextpdf.com/examples/index.php?page=example&id=166 > 1. PdfStamper stamper

[iText-questions] iTextSharp PDf help

2010-02-02 Thread Bibin
Hello Team, How can I disable Content Copying, Page Extraction, etc. of a pdf through iTextSharp pdf utility. Such features are on the security tab (of a pdf Properties). Please guide me on this for which I will be grateful. Thank you, BIBIN PHILIP .NET Developer---

Re: [iText-questions] Question regarding usage rights after

2010-02-02 Thread Sethu R
Hi, > The example uses PdfStamper in APPEND MODE. > If you say the size of your PDF decreases, > you are definitely not following the example! > That's because you're not filling the form > on append mode. I tried 3 different ways of instantiating the PdfStamper: 1. PdfStamper stamper = new Pdf

Re: [iText-questions] Add PDF page to header/footer

2010-02-02 Thread 1T3XT info
Zoran Avtarovski wrote: > Thanks for that. > > I changed the absolute positioning to work from a bottom left zero. I > still have the issue with the header and footer not appearing. I’m not > sure if I understand the comment about using the instance of the PdfWriter. If you read p60 of the book

Re: [iText-questions] Add PDF page to header/footer

2010-02-02 Thread Zoran Avtarovski
Thanks for that. I changed the absolute positioning to work from a bottom left zero. I still have the issue with the header and footer not appearing. I¹m not sure if I understand the comment about using the instance of the PdfWriter. If I try to use the copyWriter instance to import the header an

Re: [iText-questions] Add PDF page to header/footer

2010-02-02 Thread 1T3XT info
Zoran Avtarovski wrote: > header.setAbsolutePosition(0f, 18f); > footer.setAbsolutePosition(0f, 747.9f); In which country do they add a header at the bottom of a page and the header at the top? Also: you didn't read (or didn't understand) the documentation. You're creating a PdfWriter instance co

Re: [iText-questions] Merging of dynamic XFA forms

2010-02-02 Thread 1T3XT info
SRI!0! wrote: > Hi, >Iam populating the data into XFA PDF templates. I was able to retrieve > the XML from PDF modify this by adding the data to XML and was able to set > it back to PDF. The Data is also reflected back in the template. Everything > is fine up to here. But I have two templates a

Re: [iText-questions] Type 3 Fonts showtext()

2010-02-02 Thread Paulo Soares
I'll investigate. Paulo > -Original Message- > From: Hans Petrich [mailto:hans.petr...@bartonseo.com] > Sent: Monday, February 01, 2010 4:52 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Type 3 Fonts showtext() > > I've been working on a simple test case t

Re: [iText-questions] Add PDF page to header/footer

2010-02-02 Thread Paulo Soares
The page event is fired? Paulo > -Original Message- > From: Zoran Avtarovski [mailto:zo...@sparecreative.com] > Sent: Tuesday, February 02, 2010 10:25 AM > To: Post all your questions about iText here > Subject: [iText-questions] Add PDF page to header/footer > > I'm hoping someone can

Re: [iText-questions] Merging of dynamic XFA forms

2010-02-02 Thread Leonard Rosenthol
For merging XFA, you will need to manipulate the XFA and NOT the PDF structures (eg. ignore PdfCopy). Leonard -Original Message- From: SRI!0! [mailto:srikan...@live.in] Sent: Tuesday, February 02, 2010 2:27 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Merging

[iText-questions] Add PDF page to header/footer

2010-02-02 Thread Zoran Avtarovski
I¹m hoping someone can help, because I¹m having a lot of trouble with adding existing PDF pages as the header and footer of a new document. I have two existing single page PDF documents: Header.pdf (562pt x 107pt) Footer.pdf (562pt x 94pt) I¹m trying to add these to a new report document

[iText-questions] Separating signature and timestamp on different servers

2010-02-02 Thread p_repetti
Hello I am using iText 2.1.7 to digitally sign and timestamp a PDF. I need to separate the signing and the timestamping process on two different servers, i.e. the signing is performed by a remote service that has access to a smartcard, while the timestamping is performed locally, where there is i