Re: [iText-questions] Need help to open a new page on condition.

2011-10-24 Thread Amedee Van Gasse
On Mon, October 24, 2011 14:36, 1T3XT BVBA wrote: > On 24/10/2011 13:52, Dalui, Somak wrote: >> >> Hi, >> >> I have a situation where a PDFPTable is created iterating on a Java >> object containing all data and then it is added to the document object. >> >> Now, I have to make a page break(or crea

Re: [iText-questions] URGENT : QUESTION(Help Needed)

2011-10-24 Thread TvT
sheesh URGENT and ASAP in one mail and on a free mailinglist... Here are your choices: 1. Get paid support and you can beautify your mail with all kinds of BIG letter words 2. Buy the iText book and read for yourself how to add that barcode 3. Rephrase your question and the subject without tho

[iText-questions] Pdf newPage()

2011-10-24 Thread Tyler, Brandon
I have been asked to create letters in an asp.net application in batch form. Everything is good and works great except for when I call the newPage() method, it automatically enters a hard returns before it puts text on the new page. This causes everything to not be lined up correctly. Is there a

Re: [iText-questions] Resigning digital signatures in PDF not invalidating other signatures

2011-10-24 Thread Leonard Rosenthol
As I wrote, there are 6 revisions to the PDF. Each time you signed it, you created one. The reason there are only five signatures, however, is because when you "resigned' one of the fields, iText REPLACED the entire field (and it's associated signature) so that Acrobat/Reader NEVER SEE the old

Re: [iText-questions] Bug in pdfReader?

2011-10-24 Thread Kevin Day
Recreate the problem using your original PDF file, or try to come up with the absolute simplest example that shows the problem, and I think you will find the issue (and you'll probably find that it's something you are doing earlier in the process) -- View this message in context: http://itext-gen

Re: [iText-questions] Resigning digital signatures in PDF not invalidating other signatures

2011-10-24 Thread Leonard Rosenthol
Let's see a PDF… Without it, we're clueless (as the crystal ball broke last week :( From: Rouan van Dalen mailto:rvda...@yahoo.co.uk>> Reply-To: Rouan van Dalen mailto:rvda...@yahoo.co.uk>>, Post here mailto:itext-questions@lists.sourceforge.net>> Date: Mon, 24 Oct 2011 07:59:54 -0700 To: Post

Re: [iText-questions] Resigning digital signatures in PDF not invalidating other signatures

2011-10-24 Thread Rouan van Dalen
I have now confirmed the behaviour.  I only get up to 5 signatures: 1 certification and 4 approval signatures.  I can sign the same field 5 times, the resulting PDF will never have more than 5 signatures. I am using ITextSharp 5.1.1 to add the signatures.  Might this be a bug in the ITextSharp

Re: [iText-questions] Resigning digital signatures in PDF not invalidating other signatures

2011-10-24 Thread Rouan van Dalen
TO: 1 recipientShow Details Message Body   I will try and see if I can produce a document which I can publish online. I mean that I have a PDF document with SignatureFieldA already signed.  I then sign SignatureFieldA again with a different signature appearance (thi signature capture from a sig

[iText-questions] Seemingly conflicting results when getting Pages dictionary

2011-10-24 Thread William Bell
Hi All, The following code snippet appears to produce conflicting results... code - PdfReader reader = new PdfReader (filename); PdfDictionary dic = reader.Catalog.GetAsDict (PdfName.PAGES); MessageBox.Show ("name = " + dic.ToString()); if (dic.IsPages()) Messag

[iText-questions] URGENT : QUESTION(Help Needed)

2011-10-24 Thread Govindarajulu, Bavitha
Hi, I am Bavitha from Giftcertificates.com. I am trying to use itext to generate a Barcode with Code:128(Raw). Is there a trial version of the software for me to download and test it using C#? Can you please provide me some examples of the code using C#. Any help would be greatly appreciated.

Re: [iText-questions] Resigning digital signatures in PDF not invalidating other signatures

2011-10-24 Thread Leonard Rosenthol
What do you mean you are "resigning" the first signature field? Can you post a PDF that shows where you have done this?? Leonard From: Rouan van Dalen mailto:rvda...@yahoo.co.uk>> Reply-To: Rouan van Dalen mailto:rvda...@yahoo.co.uk>>, Post here mailto:itext-questions@lists.sourceforge.net>>

Re: [iText-questions] Bug in pdfReader?

2011-10-24 Thread Elias
The only thing that it comes to my mind..., previosly I have a copy of file with the next code in java: ... fisSource = new FileInputStream(_source); fosDestination = new FileOutputStream(_destination); byte[] buffer = new byte[1024]; int bytesRead; while ((bytesRead = fisSource.read(buffer)) !=

[iText-questions] Resigning digital signatures in PDF not invalidating other signatures

2011-10-24 Thread Rouan van Dalen
Hi everyone.   I am having some trouble with understanding the digital signature concept.   I am using ITextSharp and can add signatures just fine.  I have multiple signature fields in my PDF document. When signing the PDF, I first create the certification signature (one per pdf) and allow CERTIFIE

Re: [iText-questions] Bug in pdfReader?

2011-10-24 Thread Elias
Hi Kevin, Thanks by your early response. Here is the document's trailer that you say: trailer <<3b03fe070a6e6f1835ebbc9ead9c88ad>]/Info 73 0 R/Size 74>> startxref 3102085 %%EOF Thanks in advance!! -- View this message in context: http://itext-general.2136553.n4.nabble.com/Bug-in-pdfReader-tp3

Re: [iText-questions] iText: Extract image location

2011-10-24 Thread Kevin Day
You can mix the text and image parsers to get what you are after. It's not going to be one or two lines of code (you'll have to write your own RenderListener), but definitely doable. -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-Extract-image-location-tp393217

Re: [iText-questions] Bug in pdfReader?

2011-10-24 Thread Kevin Day
my guess is that the PDF is corrupted, and that Acrobat repairs it before displaying it to you. The line of code that is throwing the NPE is one that assumes that the Catalog of the file will exist. This is a pretty fundamental thing - a PDF without a catalog isn't much of a PDF at all. To check

[iText-questions] Bug in pdfReader?

2011-10-24 Thread Elias
Hello folks!! I'm trying to read a pdf file modified with iText, I can open this file with a pdf reader, but I execute my program and it goes with the next line: ... PdfReader pdfReader = new PdfReader(ORIGINAL); ... I get the error: Exception in thread "main" java.lang.NullPointerException

Re: [iText-questions] Need help to open a new page on condition.

2011-10-24 Thread 1T3XT BVBA
On 24/10/2011 13:52, Dalui, Somak wrote: Hi, I have a situation where a PDFPTable is created iterating on a Java object containing all data and then it is added to the document object. Now, I have to make a page break(or create a new page) when a condition is met while creating the PDFPTabl

[iText-questions] Need help to open a new page on condition.

2011-10-24 Thread Dalui, Somak
Hi, I have a situation where a PDFPTable is created iterating on a Java object containing all data and then it is added to the document object. Now, I have to make a page break(or create a new page) when a condition is met while creating the PDFPTable. If I do document.newPage(), it makes no ef

Re: [iText-questions] PDF Splitting Increases Size.

2011-10-24 Thread 1T3XT BVBA
On 24/10/2011 13:04, Hitesh Barhate wrote: Hi, Thank you for reply. In that particular PDF there are 100 image objects. These images are stored under resources obj in PDF. These resources are getting copied in all the splitted PDFs. Normally the /Resources in a /Page dictionary only

Re: [iText-questions] PDF Splitting Increases Size.

2011-10-24 Thread Hitesh Barhate
On 10/24/2011 2:53 PM, mkl wrote: Hitesh Barhate, Hitesh Barhate wrote: I have one particular PDF file with 100 pages and 10 MB size (PDF contains only images). When I split that PDF file using iText then the splitted files combined size becomes 1000 MB. Each splitted file becomes 10 MB. But t

Re: [iText-questions] PDF Splitting Increases Size.

2011-10-24 Thread mkl
Hitesh Barhate, Hitesh Barhate wrote: > I have one particular PDF file with 100 pages and 10 MB size (PDF contains > only images). When I split that PDF file using iText then the splitted > files combined size becomes 1000 MB. Each splitted file becomes 10 MB. > > But this is not the case with al

[iText-questions] PDF Splitting Increases Size.

2011-10-24 Thread Hitesh Barhate
Hi, I have one particular PDF file with 100 pages and 10 MB size (PDF contains only images). When I split that PDF file using iText then the splitted files combined size becomes 1000 MB. Each splitted file becomes 10 MB. But this is not the case with all the PDFs. It happens only with