Re: [iText-questions] Error pdftextextractor.gettextfrompage

2016-06-14 Thread mkl
Sebastian, Sebastian Salvatico wrote > I'm having an issue with the pdftextextractor.gettextfrompage() method > while trying to read a .pdf. > I have this error "index was outside the bounds of the array". > I've read in several webs that this problem was solved by waiting for a > newer version o

[iText-questions] Error pdftextextractor.gettextfrompage

2016-06-14 Thread Sebastian Salvatico
Hi, I'm having an issue with the pdftextextractor.gettextfrompage() method while trying to read a .pdf. I have this error "index was outside the bounds of the array". I've read in several webs that this problem was solved by waiting for a newer version of itextsharp, The version i'm using is the

[iText-questions] Error in Digital signature

2015-06-17 Thread mgomez
Hi all :) I'm using itext 5.5.6 to sign a PDF document, using the: *Code sample 4.1: Signing a document using PKCS#11* of the book: /Digital Signatures for PDF documents/ But I have the following error when validating adobe reader:

Re: [iText-questions] error on converting html with < symbol to pdf

2013-09-24 Thread Balder VC
It's only simple logic see http://www.w3schools.com/tags/ref_entities.asp RESERVED CHARACTERS On 09/24/2013 03:59 PM, Vani Bose wrote: > Hi, > > I get the error when the following code is executed: > XMLWorkerHelper.GetInstance().ParseXHtml(writer, pdfDoc, new > StringReader(contents)); > > T

Re: [iText-questions] error on converting html with < symbol to pdf

2013-09-24 Thread Vani Bose
Hi, I get the error when the following code is executed: XMLWorkerHelper.GetInstance().ParseXHtml(writer, pdfDoc, new StringReader(contents)); The value of contents variable in the above code is in the attachment. Search for the text "Demo CM - sales achievement<" in the attachment. The error oc

Re: [iText-questions] error on converting html with < symbol to pdf

2013-09-24 Thread Michael Demey
Hi, Please provide the HTML that is failing and the iText and XmlWorker version numbers. If the versions are not the most recent ones (5.4.4) please upgrade and try again. Without those, we can only guess. And going from the error message my guess would be: "Your HTML is invalid." Kind regar

[iText-questions] error on converting html with < symbol to pdf

2013-09-24 Thread Vani Bose
Hi, We use iTextSharp tool to generate pdf from html. We get an error if we enter < symbol in a text box and the html is converted to pdf. *Invalid nested tag tr found, expected closing tag td. at iTextSharp.tool.xml.XMLWorker.EndElement(String tag, String ns) at iTextSharp.tool.xml.parser.XMLPa

[iText-questions] Error upon pdf decryption

2013-07-10 Thread Valentin Ts. Ivanov
Hi, decryption/encryption using BC 1.46 an iText 5.2.1 is working fine. Encryption using BC 1.49 and iText 5.4.2 is working fine, but decrypting throws : com.itextpdf.text.exceptions.InvalidPdfException: cannot create cipher: No such algorithm: 1.2.840.113549.3.2 at com.itext

[iText-questions] Error on PDF decryption

2013-07-08 Thread Valentin Ts. Ivanov
Hi, I debugged it down to EnvelopedDataHelper.createCipher(ASN1ObjectIdentifier algorithm); In my case the algorithm is 1.2.840.113549.3.2. This value comes from the very beginning (I guess at the time of encryption), from the encrypted document as "messageAlgorithm", as well as "keyEncAlg" whi

[iText-questions] Error on PDF decryption

2013-06-30 Thread Valentin Ts. Ivanov
So, I don't think the complete stack trace shows anything else, but the presence of GUI. Any ideas why the decryption only throws such an exception? Regards, Valentin -- This SF.net email is sponsored by Windows: Build f

[iText-questions] Error on PDF decryption

2013-06-27 Thread Valentin Ts. Ivanov
Here is the stack trace using mailing-list: com.itextpdf.text.exceptions.InvalidPdfException: cannot create cipher: No such algorithm: 1.2.840.113549.3.2 at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:649) at com.itextpdf.text.pdf.PdfReader.(PdfReader.

[iText-questions] Error extracting images — getting NullPointerException in LZWDecoder

2013-06-20 Thread itextuser01
I am using iText v5.4.2. I am trying to parse images from a PDF file. I get NullPointerException for certain images in certain PDF files. The PDF file with one "faulty" image can be downloaded here: https://dl.dropboxusercontent.com/u/3585277/LZW_Error.pdf

Re: [iText-questions] Error in Chrome and checkboxes using PdfCopy OR PdfSmartCopy

2013-05-02 Thread iText Info
Op 2/05/2013 16:18, Mitchell Ginzberg schreef: > > Here is my direct code. You're using PdfSmartCopy to copy interactive forms? Why aren't you using PdfCopyFields as explained in the documentation? See http://www.manning.com/lowagie2/samplechapter6.pdf (and search for PdfCopyFields). ---

[iText-questions] Error filling in PDF fields

2012-11-02 Thread Manny Duarte
I have a fillable PDF which I can't modify. I retrieved all the field names and there are some that I can't fill in. The name of one of them is: "F[0].P1[0].#field[13]". When I try to set the value of that field by: pdfFormFields.SetField("F[0].P1[0].#field[13]", "testvalue") I get the fol

Re: [iText-questions] Error with ITSAClient

2012-10-31 Thread 1T3XT BVBA
On 31/10/2012 17:18, Jose Antonio Ariza Martín wrote: Hello, I'm having an error trying to use the ITSAClient. I've used a lot of diferent url to get the timestamp but no one works. I don't know what I'm doing wrong or where is the mistake At first sight, I'd say the problem is obvious: you don

[iText-questions] Error with ITSAClient

2012-10-31 Thread Jose Antonio Ariza Martín
Hello, I'm having an error trying to use the ITSAClient. I've used a lot of diferent url to get the timestamp but no one works. I don't know what I'm doing wrong or where is the mistake. My code is: public static void signPdfFile(string sourceDocument, string destinatio

Re: [iText-questions] Error on TiffImage.getTiffImage invocation

2012-08-21 Thread 1T3XT BVBA
On 21/08/2012 0:51, Alex Betin wrote: > I know that you usually attribute it to broken TIFF files, but should > not such exception be handled by framework? It's always a tradeoff: TIFF producers should produce correct TIFF files. If TIFF consumers are tolerant towards incorrect TIFF files, TIFF

[iText-questions] Error while encrypting PDF

2012-08-09 Thread mananec
I am getting error after executing encryption Program of PDF .([Fatal Error] :1:1: Content is not allowed in prolog.).i get encrypted file even if error is coming.so please let me know what could be problem Below is source of Program package pdf; import java.io.FileNotFoundException; import java

Re: [iText-questions] Error extracting page from a pdf file

2012-07-31 Thread enediel . gonzalez
> I'm able to open with Adobe Reader the pdf file used on my test, no > error is shown during the process. The version of the file is 1.6 Your questions are hard to interpret for humans, your code is hard to interpret for machines. Thank you for your answer Based on the book (and bec

Re: [iText-questions] Error extracting page from a pdf file

2012-07-30 Thread 1T3XT BVBA
On 30/07/2012 22:50, [email protected] wrote: > But still I face the problem even trying to use the book's solution. > The following code generates one internal exception on the line > PdfImportedPage _PdfImportedPage = > _PdfWriter.GetImportedPage(_PdfReader, PageNumber); > > After this

Re: [iText-questions] Error extracting page from a pdf file

2012-07-30 Thread enediel . gonzalez
On , [email protected] wrote: On Fri, 27 Jul 2012 18:30:30 +, [email protected] wrote: > Hello everyone. > > I use the iTextSharp to split in pages one pdf file. In some cases the > pages on the original document contains certain information not available > in the pdf

Re: [iText-questions] Error extracting page from a pdf file

2012-07-28 Thread info
On Fri, 27 Jul 2012 18:30:30 +, [email protected] wrote: > Hello everyone. > > I use the iTextSharp to split in pages one pdf file. In some cases the > pages on the original document contains certain information not available > in the pdf for the same page generated by the > libra

[iText-questions] Error extracting page from a pdf file

2012-07-27 Thread enediel . gonzalez
Hello everyone. I use the iTextSharp to split in pages one pdf file. In some cases the pages on the original document contains certain information not available in the pdf for the same page generated by the library. The following is the code I actually use. protected bool SplitPDFFile_Extra

Re: [iText-questions] Error generating PDF/A

2012-07-13 Thread Abedellatif Hussein
Thank you very much for your quick response. I am using FileStream now instead of StreamWriter. Thanks again -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-generating-PDF-A-tp4655571p4655585.html Sent from the iText - General mailing list archive at Nabble.com.

Re: [iText-questions] Error generating PDF/A

2012-07-10 Thread Paulo Soares
Put the idocument.Open(); right after the writer.PDFXConformance = PdfWriter.PDFA1B; By the way, why are you using a StreamWriter? PDF is binary. Final note: you are not subscribed, Nabble IS NOT the iText mailing list. Paulo On Mon, Jul 9, 2012 at 10:03 AM, Abedellatif Hussein wrote: > Hi

[iText-questions] Error generating PDF/A

2012-07-10 Thread Abedellatif Hussein
Hi, I am trying to generate an Image only pdf/a file using "iTextSharp v 5.3.0" from a jpg source. the code works fine when using JAVA iText library. everything works fine except when I try to embed the ICC color profile I get this exception "Object reference not set to an instance of an object.

Re: [iText-questions] Error validating signed pdf with external sign

2012-05-28 Thread jmheras
Hi, Here there is a sample result. thanks http://itext-general.2136553.n4.nabble.com/file/n4655154/test.signat.pdf test.signat.pdf -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-validating-signed-pdf-with-external-sign-tp4654222p4655154.html Sent from the iTe

[iText-questions] Error validating signed pdf with external sign

2012-05-25 Thread Josep Maria Heras
Hello , I've to sign with an external sgnature. When i open de PDF and validate it, I get an error message that says something like document has been modified since sign was applied The structure of code is: - calc the hash - send it to the external service - get the external signature - put it t

Re: [iText-questions] Error extracting Japanese/Korean text from PDFusing iText 5.1.3

2012-02-17 Thread Paulo Soares
That's probably already fixed i the SVN. Please post the PDF. Paulo - Original Message - From: Mary Aubaun To: [email protected] Sent: Friday, February 17, 2012 12:21 AM Subject: [iText-questions] Error extracting Japanese/Korean text from PDFusing

[iText-questions] Error extracting Japanese/Korean text from PDF using iText 5.1.3

2012-02-16 Thread Mary Aubaun
I'm getting an error extracting text from a PDF using iText 5.1.3. It works fine with PDFs that use Roman characters, fails on Japanese and Korean documents. I searched the forums and found something similar, but not with the same error call stack, so I'm posting it. I can post the PDF, but woul

Re: [iText-questions] Error Converting fax TIF to PDF

2011-12-22 Thread Paulo Soares
ecoverable, just like the viewer does. Paulo From: Hugh McLaughlin [[email protected]] Sent: Wednesday, December 21, 2011 8:30 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Error Converting fax TIF to PDF The TIF opens fine in a viewe

Re: [iText-questions] Error Converting fax TIF to PDF

2011-12-21 Thread Hugh McLaughlin
The TIF opens fine in a viewer. How can you tell if a TIF is broken? From: Paulo Soares [mailto:[email protected]] Sent: Wednesday, December 21, 2011 1:13 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Error Converting fax TIF to PDF Looks like a broken

Re: [iText-questions] Error Converting fax TIF to PDF

2011-12-21 Thread Paulo Soares
Looks like a broken tiff. It may be an yet unknown bug but I would have to see the tiff. Paulo - Original Message - From: Hugh McLaughlin To: [email protected] Sent: Wednesday, December 21, 2011 5:56 PM Subject: [iText-questions] Error Converting fax TIF

[iText-questions] Error Converting fax TIF to PDF

2011-12-21 Thread Hugh McLaughlin
Hello Everyone and thanks for your help in advance. I am working on an application that watches for incoming faxes on Microsoft fax (Windows 2003 server). The inbound fax is written to a folder and I am using the FileSystemWatcher to watch for newly written TIF files to convert to PDF. From ther

[iText-questions] Error mirroring margins?

2011-10-02 Thread Juan Carlos Pérez
-- Mensaje reenviado -- De: Juan Carlos Pérez Fecha: 2 de octubre de 2011 23:22 Asunto: Error mirroring margins? Para: [email protected] Hello. I'm begining with iText and just playing with the very first examples in the book I've stumbled with this:

[iText-questions] Error mirroring margins?

2011-10-02 Thread Juan Carlos Pérez
Hello. I'm begining with iText and just playing with the very first examples in the book I've stumbled with this: when you set *margin mirroring* to *true* and then you add Paragraphs enough to reach the end of the page, then, if a Paragraph spans from a page to the following one, the first line w

Re: [iText-questions] Error reading/writing encrypted file

2011-09-26 Thread eduardofer
Hi again. Just to mention that with Adobe Reader 8.0 I have the same error in the input file. With 10.1 (windows XP SP3) I only get the error in the output file. Thanks again for your help, Eduardo. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-reading-writ

Re: [iText-questions] Error message

2011-08-10 Thread Bruno Lowagie
On 10/08/2011 18:10, Brenda S. Lippens wrote: I purchased a license for the iTextSharp Professional desktop license to download pdf files through our data processor, CU*Answers. CU*Answers has helped me load the software into the proper file but when I try to download a pdf I get an error me

Re: [iText-questions] Error message

2011-08-10 Thread Balder VC
Hi If CU*Answers made software that uses itext and let you pay for the license then you or CU*Answers is still responsible for the piece of software that they wrote. We cannot know in what way they use itext. If they are pointing you to this list they are unfair to you and don't want to help y

[iText-questions] Error message

2011-08-10 Thread Brenda S. Lippens
I purchased a license for the iTextSharp Professional desktop license to download pdf files through our data processor, CU*Answers. CU*Answers has helped me load the software into the proper file but when I try to download a pdf I get an error message: CU*Base GOLD could not complete the reque

Re: [iText-questions] Error processing PDF Zip file

2011-06-23 Thread Mark Storer
to:[email protected]] Sent: Thursday, June 23, 2011 1:12 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Error processing PDF Zip file Hi Mark, The warnings come when we process the splited f

Re: [iText-questions] Error processing PDF Zip file

2011-06-23 Thread Mark Storer
1 12:12 PM To: [email protected] Subject: [iText-questions] Error processing PDF Zip file Hi, We are using iText to split the PDF file and while processing the splited files using 'GhostScript' we are getti

Re: [iText-questions] Error opening pdf document

2011-04-14 Thread SALAZAR, DANTE
Thanks a lot Keith It contains almost all I need No problem with C#. I can translate to VB easy 2011/4/14 Keith O > > > Date: Tue, 12 Apr 2011 10:01:30 -0500 > > From: [email protected] > > To: [email protected] > > Subject: Re: [iText-q

Re: [iText-questions] Error opening pdf document

2011-04-14 Thread Keith O
> Date: Tue, 12 Apr 2011 10:01:30 -0500 > From: [email protected] > To: [email protected] > Subject: Re: [iText-questions] Error opening pdf document > > Thanks Keith > I solved the problem using response.end() at the end > > Unfortunatel

Re: [iText-questions] Error opening pdf document

2011-04-13 Thread John Williams
[mailto:[email protected]] Sent: Wednesday, April 13, 2011 1:42 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Error opening pdf document Thanks John Now I can print tables but with some limitations What are the equivalences (in .net) for table.setBorderWidth(1

Re: [iText-questions] Error opening pdf document

2011-04-13 Thread Paulo Soares
e 100, Williamsville, NY 14221 Office 716.631.3345 | Fax 716.631.3238 From: SALAZAR, DANTE [mailto:[email protected]] Sent: Tuesday, April 12, 2011 11:02 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Error opening pdf document T

Re: [iText-questions] Error opening pdf document

2011-04-13 Thread SALAZAR, DANTE
wrence Bell Dr. Ste 100, Williamsville, NY 14221 > > Office 716.631.3345 | Fax 716.631.3238 > > > > *From:* SALAZAR, DANTE [mailto:[email protected]] > *Sent:* Tuesday, April 12, 2011 11:02 AM > *To:* Post all your questions about iText here > *Subject:* Re: [iText-que

Re: [iText-questions] Error opening pdf document

2011-04-12 Thread John Williams
[email protected]] Sent: Tuesday, April 12, 2011 11:02 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Error opening pdf document Thanks Keith I solved the problem using response.end() at the end Unfortunately I haven´t had any further progress in my practices with

Re: [iText-questions] Error opening pdf document

2011-04-12 Thread SALAZAR, DANTE
; > To: [email protected] > > Subject: [iText-questions] Error opening pdf document > > > > I am using itextshap version 5.0.4.0 to generate a pdf file, to print > > an output of some data generated by an aspx page > > In a sumary way, the page have two textboxes

Re: [iText-questions] Error opening pdf document

2011-04-04 Thread Keith O
> Date: Mon, 4 Apr 2011 13:51:57 -0500 > From: [email protected] > To: [email protected] > Subject: [iText-questions] Error opening pdf document > > I am using itextshap version 5.0.4.0 to generate a pdf file, to print > an output of some data gene

[iText-questions] Error opening pdf document

2011-04-04 Thread SALAZAR, DANTE
I am using itextshap version 5.0.4.0 to generate a pdf file, to print an output of some data generated by an aspx page In a sumary way, the page have two textboxes and a button I fill some data in textboxes and then click the button to get the output in a pdf window Inside the button click event I

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

2011-02-16 Thread Bill Ensley
I have been out of the PDF dev world for a while now, my project using iText has been ticking along quite nicely. We have used iText since the very first year it was open and have successfully generated tens of thousand of PDFs since. I am now getting back into it for some new projects and ha

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

2011-02-16 Thread Joe Danziger
, and it is an awesome project that I look forward to using more. Thanks to all, -Joe Danziger From: Bill Ensley [mailto:[email protected]] Sent: Wednesday, February 16, 2011 11:22 AM To: Post all your questions about iText here Cc: Joe Danziger Subject: Re: [iText-questions] Error in N

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

2011-02-14 Thread Joe Danziger
[mailto:[email protected]] Sent: Monday, February 14, 2011 11:01 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Error in N-Up Example 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

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] Error: Unbalancedbegin/end textoperatorssinceiText 5

2010-12-01 Thread 1T3XT BVBA
Op 1/12/2010 18:15, slg01 schreef: > Hi, > > When you mentioned having page events running in the background, what is > that? See chapter 5 of the Second Edition of iText in Action. Page events implement the PdfPageEvent interface. > I am having a similar issue with unbalanced end/begin texts and I

Re: [iText-questions] Error: Unbalancedbegin/end textoperatorssinceiText 5

2010-12-01 Thread slg01
Hi, When you mentioned having page events running in the background, what is that? I am having a similar issue with unbalanced end/begin texts and I too did not have any where the error was occurring. It was happening with a document.newPage(). How did you debug? I am very very very new to i

Re: [iText-questions] Error: pftk and PdfNumber cast

2010-09-29 Thread Mark Storer
ard = null; From: Paulo Soares [mailto:[email protected]] Sent: Tuesday, September 28, 2010 11:33 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Error: pftk and PdfNumber cast That's a question for t

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-29 Thread 1T3XT info
On 29/09/2010 9:48, rishisahi wrote: > > Thanks Michael, > > First solution looks good to me .. Can you please point me to some example > code ?. I'm referring Manning.iText.in.Action but it does't have such > example ( or may be I'm missing ) . Yes, the second edition of "iText in Action" has mul

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-29 Thread mkl
Rishi, rishisahi wrote: > First solution looks good to me .. Can you please point me to some example > code ?. I'm referring Manning.iText.in.Action but it does't have such > example ( or may be I'm missing ) . As I don't know what you actually want to achieve, I cannot pinpoint any specific exa

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-29 Thread rishisahi
Thanks Michael, First solution looks good to me .. Can you please point me to some example code ?. I'm referring Manning.iText.in.Action but it does't have such example ( or may be I'm missing ) . Thanks for heads up. -- View this message in context: http://itext-general.2136553.n4.nabble.co

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-29 Thread mkl
Rishi, rishisahi wrote: > But my form having tables, image etc if I need to create a new output pdf > form then all these need to be created programmatically ? Sorry, I'm > fairly new with iText. The PdfStamper still copies everything needed from the PdfReader source pdf to its own output; thus,

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-29 Thread rishisahi
Thanks Michael.. But my form having tables, image etc if I need to create a new output pdf form then all these need to be created programmatically ? Sorry, I'm fairly new with iText. Regards, Rishi -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-pdfRandomAcce

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-29 Thread mkl
Rishi, the reason is quite obvious after all... I should have spotted this at the start... rishisahi wrote: > PdfReader reader = new PdfReader(filePath); > PdfStamper stamper = new PdfStamper(reader, new > FileOutputStream(filePath)); > AcroFields form = stamper.getAcroFields(); > You use the

Re: [iText-questions] Error: pftk and PdfNumber cast

2010-09-28 Thread 1T3XT info
On 28/09/2010 20:01, David RR Webber (XML) wrote: > We have a PDF that is failing with this error: > Unhandled Java Exception: > java.lang.ClassCastException: com.lowagie.text.pdf.PdfNumber cannot be > cast to com.lowagie.text.pdf.PdfDictionary > at com.lowagie.text.pdf.PdfCopy.addPage(pdftk) > > D

Re: [iText-questions] Error: pftk and PdfNumber cast

2010-09-28 Thread Paulo Soares
That's a question for the pdftk author. Paulo - Original Message - From: David RR Webber (XML) To: [email protected] Sent: Tuesday, September 28, 2010 10:34 PM Subject: [iText-questions] Error: pftk and PdfNumber cast We have a PDF that is failing

[iText-questions] Error: pftk and PdfNumber cast

2010-09-28 Thread David RR Webber (XML)
We have a PDF that is failing with this error:   Unhandled Java Exception:java.lang.ClassCastException: com.lowagie.text.pdf.PdfNumber cannot be cast to com.lowagie.text.pdf.PdfDictionaryat com.lowagie.text.pdf.PdfCopy.addPage(pdftk)Does anyone know exactly what the cause is here?   We think it ma

[iText-questions] Error: pftk and PdfNumber cast

2010-09-28 Thread David RR Webber (XML)
We have a PDF that is failing with this error:   Unhandled Java Exception:java.lang.ClassCastException: com.lowagie.text.pdf.PdfNumber cannot be cast to com.lowagie.text.pdf.PdfDictionaryat com.lowagie.text.pdf.PdfCopy.addPage(pdftk)Does anyone know exactly what the cause is here?   We think it may

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-28 Thread rishisahi
Hi Michael, Here is the sample pdf , http://itext-general.2136553.n4.nabble.com/file/n2718248/test_pdf_interface_distributed.pdf test_pdf_interface_distributed.pdf Regards, Rishi -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-pdfRandomAccessFileorArray-read

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-28 Thread mkl
Rishi, rishisahi wrote: > Thanks Michael.. Actually I've designed the pdf form by myself using Adobe > Acrobat 9 pro trial . Since I'm off for the day so not able to send the > adobe doc. Tomorrow I will send to you . Where do you want me to send ? It seems like you are posting to this list usin

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-28 Thread rishisahi
Thanks Michael.. Actually I've designed the pdf form by myself using Adobe Acrobat 9 pro trial . Since I'm off for the day so not able to send the adobe doc. Tomorrow I will send to you . Where do you want me to send ? -- View this message in context: http://itext-general.2136553.n4.nabble.com/

Re: [iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-28 Thread mkl
Rishi, rishisahi wrote: > I'm getting following error message while writing to the pdf fields. Actually the error already happens while trying to read an XFA form. This might hint at the document being broken and iText not being hardened enough against such broken documents to at least return an

[iText-questions] Error: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

2010-09-28 Thread rishisahi
Hi, I'm getting following error message while writing to the pdf fields. Here is error screen, http://itext-general.2136553.n4.nabble.com/file/n2716941/error.png Here is the code, PdfReader reader = new PdfReader(filePath);

Re: [iText-questions] "error during signature verification"

2010-09-09 Thread mkl
le dinh phuoc, le dinh phuoc wrote: > Please help when i want use Smartcard to create Signature after that > insert it to PDF file, i get error "Error during signature verifycation > Fail > decoding DER data as binary". follow is all may code. when try test sign i > only call "SmartCardSignD

[iText-questions] "error during signature verification"

2010-09-08 Thread le dinh phuoc
Hi All! Please help when i want use Smartcard to create Signature after that insert it to PDF file, i get error "Error during signature verifycation Fail decoding DER data as binary". follow is all may code. when try test sign i only call "SmartCardSignDetached" function. public void Smart

Re: [iText-questions] error Writer.directContent

2010-09-07 Thread ff441
Merci Beaucoup !!! I understand now why I blocked. Maybe that should be usefull for anyboby. So the great code is : Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim doc1 As New Document 'use a variable to let my code fit

Re: [iText-questions] error Writer.directContent

2010-09-07 Thread 1T3XT info
On 6/09/2010 12:45, ff441 wrote: > > Hi, > > I would like to add a text with pdfcontentbyte. > > This is my code : > > > Protected Sub Button1_Click(ByVal sender As Object, ByVal e As > System.EventArgs) > > Dim doc1 As New Document > > > 'use a variable to let my code fit across

[iText-questions] error Writer.directContent

2010-09-06 Thread ff441
Hi, I would like to add a text with pdfcontentbyte. This is my code : Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim doc1 As New Document 'use a variable to let my code fit across the page... Dim path As Str

Re: [iText-questions] Error: Unbalancedbegin/end textoperatorssinceiText 5

2010-08-31 Thread alrts
My code passed also the SanityCheck(). However, I had page events running in the background for a footer, which I forgot about, and the problem was there, a missing end tag in certain cases. SanityCheck() showed me where. Thank you for that hint. Thanks to Kevin's mentioning of "multiple content

Re: [iText-questions] Error: Unbalancedbegin/end textoperatorssinceiText 5

2010-08-30 Thread Kevin Day
One thing to consider would be the case where multiple content streams get combined to construct a complete content stream. In this case, it may *appear* that a cb stream has a leading BT with no trailing ET, and the trailing ET would wind up in a different stream. I'm not sure if the sanity che

Re: [iText-questions] Error: Unbalancedbegin/end textoperatorssinceiText 5

2010-08-30 Thread Mark Storer
ugust 30, 2010 11:19 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Error: Unbalancedbegin/end textoperatorssinceiText 5 A BT without a matching ET is an error. If you have any other operators than those allowed inside

Re: [iText-questions] Error: Unbalanced begin/end textoperatorssinceiText 5

2010-08-30 Thread Leonard Rosenthol
ailto:[email protected]] Sent: Monday, August 30, 2010 9:16 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Error: Unbalanced begin/end textoperatorssinceiText 5 The only problem I can see here is that you are still ignoring the request for a simple, complete, standalone

Re: [iText-questions] Error: Unbalanced begin/end textoperatorssinceiText 5

2010-08-30 Thread Mark Storer
Sent: Monday, August 30, 2010 9:16 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Error: Unbalanced begin/end textoperatorssinceiText 5 The only problem I can see here is that you are still ignoring the request

Re: [iText-questions] Error: Unbalanced begin/end text operatorssinceiText 5

2010-08-30 Thread Paulo Soares
t 30, 2010 4:59 PM Subject: Re: [iText-questions] Error: Unbalanced begin/end text operatorssinceiText 5 Referring back to my first example with ColumnText(), the internal buffer of the ColumnText ct reads just before the document is closed: Canvas = {BT 1 0 0 1 163.67 479.06 Tm

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread alrts
Referring back to my first example with ColumnText(), the internal buffer of the ColumnText ct reads just before the document is closed: Canvas = {BT 1 0 0 1 163.67 479.06 Tm /F1 26 Tf (Astrologisches Porträt)Tj ET } This looks pretty much ok, BT being short for BeginText(), then comes the SetSi

Re: [iText-questions] Error: Unbalanced begin/end text operatorssinceiText 5

2010-08-30 Thread Paulo Soares
[email protected] Sent: Monday, August 30, 2010 4:02 PM Subject: Re: [iText-questions] Error: Unbalanced begin/end text operatorssinceiText 5 Yes sure, Document.Open() comes after the writer just as in my first example. And yes, of course, each BeginText() must match with an EndText(). Th

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread 1T3XT info
alrts wrote: > ... and moreover, if you have experience with ColumnText(), and you look at > my very first example, the one which actually was running for years, it does > not contain any BeginText() and EndText() on the level of ColumnText(). To > my knowledge, this is valid iTextSharp coding, and

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread alrts
... and moreover, if you have experience with ColumnText(), and you look at my very first example, the one which actually was running for years, it does not contain any BeginText() and EndText() on the level of ColumnText(). To my knowledge, this is valid iTextSharp coding, and runs flawless on 3.

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread alrts
Yes sure, Document.Open() comes after the writer just as in my first example. And yes, of course, each BeginText() must match with an EndText(). This is the case. Just keep in mind that this code worked perfectly with iTextSharp 3.1.1 for years. -- View this message in context: http://itext-g

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread 1T3XT info
alrts wrote: > Paolo, > > the code is huge and difficult to supply. In the meantime, I could generate > the same error at the ContentByte level. Here it is obvious that something > strange is going on: > > document = new Document(); > document.Open(); > writer = PdfWriter.GetInstance(document, p

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread alrts
I'm afraid this is not the solution. The error still persists. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-Unbalanced-begin-end-text-operators-since-iText-5-tp2399694p2400108.html Sent from the iText - General mailing list archive at Nabble.com. ---

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread Leonard Rosenthol
-questions] Error: Unbalanced begin/end text operators sinceiText 5 Paolo, the code is huge and difficult to supply. In the meantime, I could generate the same error at the ContentByte level. Here it is obvious that something strange is going on: document = new Document(); document.Open(); writer

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread alrts
Paolo, the code is huge and difficult to supply. In the meantime, I could generate the same error at the ContentByte level. Here it is obvious that something strange is going on: document = new Document(); document.Open(); writer = PdfWriter.GetInstance(document, pdfFile); cb = writer.DirectCon

Re: [iText-questions] Error: Unbalanced begin/end text operators sinceiText 5

2010-08-30 Thread Paulo Soares
You must have something else going on. Please post the complete code so that the problem can be reproduced. Paulo - Original Message - From: alrts To: [email protected] Sent: Monday, August 30, 2010 8:52 AM Subject: [iText-questions] Error: Unbalanced

[iText-questions] Error: Unbalanced begin/end text operators since iText 5

2010-08-30 Thread alrts
When I wanted to use chunk.SetCharacterSpacing(), I realized that it was about time to update my 4 year old iTextSharp library. Many classes disappeared and I had to update my code. However I'm still stuck with an error message which did not show up before, namely Error: Unbalanced begin/end text

Re: [iText-questions] Error reading TIFF Image

2010-08-25 Thread 1T3XT info
On 24/08/2010 21:53, Adam Mork wrote: > which may be why it is failing, but i might be wrong. Let us know if you find a fix for this, and we'll consider your fix for a next release. For now, the issue is closed. -- Sell

Re: [iText-questions] Error reading TIFF Image

2010-08-25 Thread Gerold Krommer
On the other hand if you open a TIFF with a text editor, the first two bytes are either 'II' or 'MM'. This is to indicate if the bytes are to be read in Intel (little Endian) or Motorola (big Endian) format. To be nitpicking for a change: TIFF is a file format, JPEG is a name for a collecti

Re: [iText-questions] Error reading TIFF Image

2010-08-24 Thread mkl
Adam, Adam Mork wrote: > Hi Illiadis, > > So you and mkl are definitely right, the files I were pointing to show up > as JPEG when I open them in notepad, but that is because google sites is > converting them when I upload them. If I look at the original files in > notepad, they do not appear to

  1   2   3   4   5   >