Re: [iText-questions] PdfTextExtractor doesn't return any text

2011-02-18 Thread Pakhu
Version 5.0.6.0 solves the problem. I've checked several files that used to have problems with and now all of them are rendered properly Thank you Paulo -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfTextExtractor-doesn-t-return-any-text-tp3312023p3313877.html S

[iText-questions] (no subject)

2011-02-18 Thread Gerry Harris
Greetings to the list, I'm a new user to iText and I'm trying to place a PNG picture on my document. I can get the image to show up where I want, but the transparency of the image turns grey, so instead of being an image of a yield sign on a white (or sometimes light blue) background, it'

Re: [iText-questions] ITextSharp, FDF problem.

2011-02-18 Thread Keith O
Hi, please try what Paulo said first: > From: psoa...@glintt.com > To: itext-questions@lists.sourceforge.net > Date: Fri, 18 Feb 2011 18:18:56 + > Subject: Re: [iText-questions] ITextSharp, FDF problem. > > You must call pdfStamper.Close() even if you set CloseStream to false. > There are a

Re: [iText-questions] more complex Clipping Path

2011-02-18 Thread Leonard Rosenthol
You can either do it as a clipping path _OR_ you can do it as a mask (soft or hard) using a raster image. -Original Message- From: amonk [mailto:krzysztof.wy...@gmail.com] Sent: Friday, February 18, 2011 12:02 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] mo

Re: [iText-questions] PdfTextExtractor doesn't return any text

2011-02-18 Thread Paulo Soares
> This problem only existed in iTextSharp (it's fixed now). If the problem persists in C# or Java please post the code you are using to test. Paulo Paulo Soares glintt.com> writes: > > It's a bug in the toUnicode parsing. I will be fixed next week. > > Paulo > > _

Re: [iText-questions] more complex Clipping Path

2011-02-18 Thread Mark Storer
If you have a path definition for one of those (with lines and curves and so forth), then the process is basically the same. OTOH, if you want varying levels of alpha, you need to use a Transparency Group as a soft mask onto a PdfTemplate. Chapter 10.1.4 of iText in Action 2nd edition covers it t

Re: [iText-questions] more complex Clipping Path

2011-02-18 Thread 1T3XT BVBA
Op 18/02/2011 21:01, amonk schreef: > hmm, > I know this way, but what if ... > my clipping path look like this? > http://itext-general.2136553.n4.nabble.com/file/n3313452/clip.jpg > > I'm sure that this path can be corretly interpreted to iText drawing > (moveTo,LineTo,curveBezier.etc.) and apply

Re: [iText-questions] Unsubscribe

2011-02-18 Thread 1T3XT BVBA
Op 18/02/2011 19:37, Jon Rowlan schreef: I have tried a number of times to remove myself from this list to no avail. Can a sysop please oblige. Many thanks and all the best iText people, thanks for your help. Either you've succeeded in unsubscribing, or you've registered using a different

Re: [iText-questions] more complex Clipping Path

2011-02-18 Thread amonk
hmm, I know this way, but what if ... my clipping path look like this? http://itext-general.2136553.n4.nabble.com/file/n3313452/clip.jpg I'm sure that this path can be corretly interpreted to iText drawing (moveTo,LineTo,curveBezier.etc.) and apply clipping path. -- View this message in contex

[iText-questions] Unsubscribe

2011-02-18 Thread Jon Rowlan
I have tried a number of times to remove myself from this list to no avail. Can a sysop please oblige. Many thanks and all the best iText people, thanks for your help. jON -- The ultimate all-in-one performan

Re: [iText-questions] decrypt pdf's

2011-02-18 Thread Mark Storer
To add a little more detail in the "modify iText" department, you'd need to change com.itext.text.pdf.PdfReader.java, lines 768-777. Specifically, you'd need to wrap them in a loop that could try all your passwords and only throw if none of them worked. --Mark Storer Senior Software Engineer

Re: [iText-questions] Input string was not in a correct format

2011-02-18 Thread Mark Storer
wkhtmltopdf is quite good I'm told. It even evaluates JavaScript within the HTML before rendering to PDF: http://code.google.com/p/wkhtmltopdf/ No, that's not even remotely iText related. On the other hand, it looks like our HTML->PDF conversion will receive quite a bit of attention/effort be

Re: [iText-questions] decrypt pdf's

2011-02-18 Thread Mark Storer
You don't. You have to try each one, catch the exception, then try the next. iText wasn't written with attempting multiple passwords on the same PdfReader in mind. Yes, this means a lot of redundant IO and computation. Can't be avoided at this time. If you'd like to alter PdfReader's source so

Re: [iText-questions] ITextSharp, FDF problem.

2011-02-18 Thread Paulo Soares
You must call pdfStamper.Close() even if you set CloseStream to false. There are a lot of streams floating around, I advise you to read HttpContext.Current.Request.InputStream to a byte[] and see what you got and do a pdfFlat.ToArray() to check for the flattened pdf integrity before further pro

Re: [iText-questions] more complex Clipping Path

2011-02-18 Thread Mark Storer
Use moveTo and lineTo to draw the star. Clip. Draw your picture. Unless you use the "even-odd winding rule" clipping, you should be able to just pick out the 5 corners of the star, close the path, and clip: PdfContentByte cb = ... cb.saveState(); cb.moveTo(100, 100); // top cb.lineTo(125, 50);

[iText-questions] ITextSharp, FDF problem.

2011-02-18 Thread Brian English
Hi, I posted to the itextsharp mailing list and got a response that it had been closed, and to use the itext mailing list. Maybe someone can help me with this? We currently have a site which will have a pdf which will post the FDF to a url. The idea is, once the FDF posts to the url, we h

Re: [iText-questions] How do I change the kerning of PDFContentByte before the showText.

2011-02-18 Thread 1T3XT BVBA
Op 18/02/2011 17:00, Wyatt Biker schreef: > Maybe I can rephrase the question. This was already answered a couple of days ago, wasn't it? You can create a PdfTextArray: http://api.itextpdf.com/com/itextpdf/text/pdf/PdfTextArray.html and then add it with showText(): http://api.itextpdf.com/com/itex

Re: [iText-questions] How do I change the kerning of PDFContentByte before the showText.

2011-02-18 Thread Wyatt Biker
Maybe I can rephrase the question. What I would like to be able to do is give the ability to the user to change the displayed spacing between individual characters in the way that canvas.setCharacterSpacing(-10); does. I figured if this method can do it, there must be some way to make another meth

Re: [iText-questions] document.close() throwing EOFException error

2011-02-18 Thread Wesley Baker
I think my main problem is I just realized I am using iText 2.1. Let me upgrade to the latest and try again with the PdfCopy and PdfStamper code. On Feb 18, 2011, at 2:42 AM, 1T3XT BVBA wrote: > Op 18/02/2011 3:17, Wesley Baker schreef: >> I could not use PdfStamper to place anchors (was that

[iText-questions] How do I change the kerning of PDFContentByte before the showText.

2011-02-18 Thread Wyatt Biker
The font is Times Roman. PdfContentByte canvas = stamper.getOverContent(1); canvas.beginText(); ... * *How do I do this something like * setKerning('B', 'C',defaultKernValue+10)* before I show the text below. Do I need to do something to this instead? *getKer

Re: [iText-questions] Calculate the height of font used.

2011-02-18 Thread Wyatt Biker
Ok, so the convention they use is 2 units from the left of the bounding box. That's good enough for me. On Fri, Feb 18, 2011 at 2:30 AM, 1T3XT BVBA wrote: > Op 18/02/2011 3:27, Wyatt Biker schreef: > > For now I noticed that Acrobat always uses 2 units as the margin > > (aligned left of course)

[iText-questions] Maintaining Reading order with PdfTextExtractor , iText5.0.5

2011-02-18 Thread DivyaKambhatla
Hi, When i extract content from a PDF using the getTextFromPage method of the PdfTextExtractor , the content that is extracted does not have the same order as the content in the PDF. Is there any way, (such as setting some methods to true,perhaps?) that the reading order can be maintained wh

Re: [iText-questions] PdfTextExtractor doesn't return any text

2011-02-18 Thread Paulo Soares
It's a bug in the toUnicode parsing. I will be fixed next week. Paulo From: Pakhu [mailto:fp...@hotelmanagement.es] Sent: Friday, February 18, 2011 3:58 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] PdfTextExtractor doesn't return any tex

Re: [iText-questions] Populating Drop Down-List items in Dynamic XFA file

2011-02-18 Thread AhmadQarshi
Thanks 1T3XT for your kind response. Please find the attached file containing the function. Hope the code would be readable now. http://itext-general.2136553.n4.nabble.com/file/n3312475/csharpCode.cs csharpCode.cs I am extracting the XFA of a dynamic PDF form created in LiveCycle. Adding 3 mo

Re: [iText-questions] PDFStamper consuming more memory

2011-02-18 Thread 1T3XT BVBA
Op 18/02/2011 11:11, sv_srinivaas schreef: > Hi, I'm using iText 5.0.3 to encrypt an existing PDF (of size 10mb) using the > PDFStamper.setEncryption() method but it takes more than 100mb of of memory. > Basically I want the document permission to be set to PRINT only. > > Normally I use the Random

Re: [iText-questions] Populating Drop Down-List items in Dynamic XFA file

2011-02-18 Thread 1T3XT BVBA
Op 18/02/2011 10:39, AhmadQarshi schreef: > Hi, I am populating Drop Down and List Box controls (where they have > an item with value 'CODE') in a Dynamic XFA form. The layout of your code doesn't allow us to easily read and understand it. Seems like you want to: 1. extract the XFA XML, 2. update

Re: [iText-questions] Split a PDF Page into header , footer and body.

2011-02-18 Thread DivyaKambhatla
Hi Mark, The problem with the above approach is that there is a possibility of loss of data. For a PDF, not all pages would necessarily contain a footer. So if a bBox is defined for one page it would necessarily not hold good for all the pages, since the header , footer specifications for di

[iText-questions] PDFStamper consuming more memory

2011-02-18 Thread sv_srinivaas
Hi, I'm using iText 5.0.3 to encrypt an existing PDF (of size 10mb) using the PDFStamper.setEncryption() method but it takes more than 100mb of of memory. Basically I want the document permission to be set to PRINT only. Normally I use the RandomAccessFileOrArray for the PdfReader and PDFStamper

Re: [iText-questions] merge pdf's with bookmarks

2011-02-18 Thread xi...@gmx.com
Thank you !!! I was looking with the words "merge" and "join" and I did not found it ! I'm a iText beginner and that's my first try. Thank you both for your answers ;) Al 18/02/2011 09:44, En/na 1T3XT BVBA ha escrit: Op 17/02/2011 19:33, xi...@gmx

Re: [iText-questions] Validating the Certificate

2011-02-18 Thread 1T3XT BVBA
Op 17/02/2011 20:39, zia7770 schreef: > I have got the above output as in Fig.1 following the steps bellow. The > output says that "The validity of the document certification is UNKNOWN. The > author could not be verified." You need to add the root certificate of the CA to the Trusted Identities: h

Re: [iText-questions] Input string was not in a correct format

2011-02-18 Thread Thangapandiyan Manoharan
Hi Yannis, I have changed but it's not working. I think, Itext is not good enough to convert html to PDF.I need to convert client uploaded HTML file into PDF, So in that situation I can't parse the HTML file. If you know any other HTML to PDF Conversion free dll. Please suggest. Thanks,

Re: [iText-questions] merge pdf's with bookmarks

2011-02-18 Thread 1T3XT BVBA
Op 17/02/2011 19:33, xi...@gmx.com schreef: Hello, I merged 3 PDFs using iTextSharp lib, one with bookmarks and two without bookmarks. The result is a pdf without any bookmark. Is that normal? Can I merge PDF's without lossing bookmarks? Yes, that's explained in the book, more specifically

Re: [iText-questions] document.close() throwing EOFException error

2011-02-18 Thread 1T3XT BVBA
Op 18/02/2011 3:17, Wesley Baker schreef: > I could not use PdfStamper to place anchors (was that correct?). You can add all kinds of annotations using PdfStamper, including Link annotations ( = anchors). If you want to add an Anchor object, you can do so using the ColumnText object. For more ex

Re: [iText-questions] Split a PDF Page into header , footer and body.

2011-02-18 Thread DivyaKambhatla
Hmm..I had thought about this too and this would definetly work if i were working with a single PDF for which i could probably define the bounding box..but the point is that i would be dealing with a slew of PDFs , which would be downloaded and read by my application at runtime. So i am not sure i