Re: [iText-questions] Fwd: PDF File cannot be read by PdfReader object

2008-08-04 Thread 1T3XT info
Adrian Lim wrote: > Hello, > > I would like to ask also, if the file is broken, why can adobe read the > file? Because there's a lot of crappy software that produces broken PDFs. iText can also read some broken PDFs, but we don't repair ALL errors (neither does Adobe Reader). Note that it's re

Re: [iText-questions] Fwd: PDF File cannot be read by PdfReader object

2008-08-04 Thread Adrian Lim
Hello, I would like to ask also, if the file is broken, why can adobe read the file? thanks On 8/5/08, Adrian Lim <[EMAIL PROTECTED]> wrote: > > Hello, > > Thanks for replying. How can I check that pdf file is broken? > > Thanks > > > On 8/5/08, Paulo Soares <[EMAIL PROTECTED]> wrote: > >> You

Re: [iText-questions] Fwd: PDF File cannot be read by PdfReader object

2008-08-04 Thread Adrian Lim
Hello, Thanks for replying. How can I check that pdf file is broken? Thanks On 8/5/08, Paulo Soares <[EMAIL PROTECTED]> wrote: > > You file is broken. The page dictionary ends with '>>>' instead of '>>'. > > Paulo > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL P

Re: [iText-questions] iTextAsian.jar: Covered under iText LGPL/MPL license?

2008-08-04 Thread Bruno Lowagie
Todd Peterson wrote: > Hello, > > I'd like to get clarification as to whether using the iTextAsian.jar > file is covered under the same licensing terms as iText.jar. You can find the complete licensing info for the files in iTextAsian.jar here: http://www.1t3xt.com/src/core/com/lowagie/text/pdf/

[iText-questions] iTextAsian.jar: Covered under iText LGPL/MPL license?

2008-08-04 Thread Todd Peterson
Hello, I'd like to get clarification as to whether using the iTextAsian.jar file is covered under the same licensing terms as iText.jar. From looking around, I think so, but want to be sure. It seems like it is, as it is in the "Additional Software" section of http://www.1t3xt.com/products/itext.

Re: [iText-questions] iText & multithreading delays

2008-08-04 Thread Talmage
You mentioned that you replaced the iText code with some simple file IO. Have you tried replacing that with a set of Objects that call New() several hundred (thousand?) times to emulate what is likely going on behind the scenes in the iText library? I do not claim to be an expert on the Jvm or iTe

Re: [iText-questions] iText & multithreading delays

2008-08-04 Thread robert meyer
Paulo Soares glintt.com> writes: > > That's probably related to IO contention, iText does a lot of small reads. If you do everything in memory > what do you get? In any case, iText doesn't lock anything and any thread performance problems should be > addressed to the JVM. > > Paulo > Paulo:

Re: [iText-questions] Footer placed on page header

2008-08-04 Thread Paulo Soares
Any clue on how to use Google? Try a search with "itext page event". Really hard. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of NomadeWolf > Sent: Monday, August 04, 2008 5:01 PM > To: itext-questions@lists.sourceforge.net > Subject: Re:

Re: [iText-questions] Footer placed on page header

2008-08-04 Thread NomadeWolf
Any clue on how to do that? Paulo Soares-3 wrote: > > HeaderFooter is not supported anymore. Use page events. > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of NomadeWolf >> Sent: Saturday, August 02, 2008 12:12 PM >> To: itext-q

Re: [iText-questions] Problem importing RTF

2008-08-04 Thread Howard Shank
Using the latest code 2.1.4 from source it works just fine. There is the following in the document Line return The text: Debut and a Line Return Which is what is in your document below. Regards, Howard Shank - Original Message From: "Le Doyen, Loic" <[EMAIL PROTECTED]> To: itext-ques

Re: [iText-questions] [RE:] Re: Document-Level JavaScript

2008-08-04 Thread Paulo Soares
PdfDictionary names = (PdfDictionary)reader.getPdfObject(reader.getCatalog().get(PdfName.NAMES)); if (names == null) return null; names.Remove(PdfName.JAVASCRIPT); Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent

[iText-questions] [RE:] Re: Document-Level JavaScript

2008-08-04 Thread jsi
And how can I delete /Names->/JavaScript in the catalog programatically using iText? -Ursprungliche Nachricht- Von: Paulo Soares mailto:[EMAIL PROTECTED] Gesendet: 04.08.2008 17:16:00 An: Post all your questions about iText here mailto:itext-questions@lists

Re: [iText-questions] Fwd: PDF File cannot be read by PdfReader object

2008-08-04 Thread Paulo Soares
You file is broken. The page dictionary ends with '>>>' instead of '>>'. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Adrian Lim > Sent: Monday, August 04, 2008 11:08 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questi

Re: [iText-questions] itext with mac

2008-08-04 Thread devsa
1T3XT info wrote: > > Chafika Ben wrote: >> hi, >> I have a question for you if you can help me please. >> I used itextsharp avec asp.net to create a pdf document and it works >> fine (i used it on web site), on my docmentpdf i have some interactives >> combobox it works fine on Pc but i don'

Re: [iText-questions] Document-Level JavaScript

2008-08-04 Thread Paulo Soares
Start by deleting in the catalog /Names->/JavaScript. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Joachim Sieglen > Sent: Monday, August 04, 2008 3:08 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Document-L

Re: [iText-questions] Remove bookmarks with depth less then x

2008-08-04 Thread Paulo Soares
I'm not sure what the problem is. SimpleBookmark returns a List and you can delete/add whatever you want to it. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Monday, August 04, 2008 10:56 AM > To: itext-questions

Re: [iText-questions] iText & multithreading delays

2008-08-04 Thread Paulo Soares
That's probably related to IO contention, iText does a lot of small reads. If you do everything in memory what do you get? In any case, iText doesn't lock anything and any thread performance problems should be addressed to the JVM. Paulo > -Original Message- > From: [EMAIL PROTECTED] >

Re: [iText-questions] Footer placed on page header

2008-08-04 Thread Paulo Soares
HeaderFooter is not supported anymore. Use page events. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of NomadeWolf > Sent: Saturday, August 02, 2008 12:12 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Footer pla

[iText-questions] iText & multithreading delays

2008-08-04 Thread Robert Meyer
I'm having problems using iText in a multi-threaded environment. I built a small test app to see how iText would perform when used on a machine with multiple cpu's, and the results were not what I expected. The test code is fairly simple; I built a class that extends Thread: class mythread exten

[iText-questions] Problem importing RTF

2008-08-04 Thread Le Doyen, Loic
Hi, I'm currently using iText to modify an existing RTF file, so i create a new file and i import the existing one in it, but it don't work, the created file is empty after the operation. I test this phenomenon by using several kinds of RTF file, and it always works except with the special kind

[iText-questions] Document-Level JavaScript

2008-08-04 Thread Joachim Sieglen
Dear ladies and gentlemen, I tried to manipulate the document-level JavaScripts of PDF-forms programatically (with iTEXT). I found a method for reading document-level JavaScript (PDFReader.getJavaScript()) and a method for adding document-level JavaScript (PDFWriter.addJavaScript()). But the task

[iText-questions] Remove bookmarks with depth less then x

2008-08-04 Thread carstenstp
I have created a tool to split a PDF by bookmark levels (depth). My Example PDF: Level 1 Level 11 Level 111 Level 112 Level 12 Level 13 Level 2 Level 21 Level 211 Level 22 When I split the PDF at the 2nd level I get the following files: Files: =

[iText-questions] Digitally sign a PDF using a smartcard and programmatic pin with iTextSharp

2008-08-04 Thread donerler
I'm using iTextSharp to digitally sign a Pdf using a smartcard. For this I used the example given at http://itextpdf.sourceforge.net/howtosign.html#signextitextsharp2 : How to sign with a smartcard using an external signature dictionary with iTextSharp and .NET 2.0 This seems to work fine, but i