Re: [iText-questions] iText and commons-httpclient input stream

2005-05-30 Thread Paulo Soares
Reading a pdf always require random access to it, either from file or memory. If the pdf doesn't come from file it's always read to memory first and it doesn't read past the end of stream. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, May 30, 2005 6:46 PM Subject: [iTe

[iText-questions] iText and commons-httpclient input stream

2005-05-30 Thread joust
Hi Bruno, hi Paulo, hi all, Recently I tried to build a servlet that modifies PDFs returned from a web server before they are transmitted to the client. This involves using commons-httpclient to request the PDF from the server and reading the PDF data from the http-client response. To achieve thi

Re: [iText-questions] Pdf Resolution

2005-05-30 Thread Leonard Rosenthol
At 09:08 AM 5/30/2005, Franck JACOB wrote: In the itext library the default pdf resolution is 72 dpi, iText doesn't have any such "default". It puts in the images that you supply with the dimensions that you supply at the scale factor that you supply. You want a higher reso

Re: [iText-questions] using more complex area for paragraph

2005-05-30 Thread Ilja Livenson
Nope, still the same mistake. And about the right wall/left wall coordinates: how does the left/right wall coordinates should be specified? the javadoc is not really clear about that: *--- setColumns*(float[] leftLine, float[] rightLine) "Sets the columns bounds. Each co

RE: [iText-questions] using more complex area for paragraph

2005-05-30 Thread Paulo Soares
You are missing ct.setYLine(20). If you are doing irregular columns it's advisable to also draw the walls (moveTo/lineTo) as a first debugging step. You may have the right wall at the left of the left wall. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > B

RE: [iText-questions] Registering Fonts other than TTF

2005-05-30 Thread Paulo Soares
You can customize FontFactory to your needs. > -Original Message- > From: JAC [mailto:[EMAIL PROTECTED] > Sent: Monday, May 30, 2005 5:14 PM > To: Paulo Soares > Cc: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Registering Fonts other than TTF > > No, all the f

Re: [iText-questions] Registering Fonts other than TTF

2005-05-30 Thread JAC
No, all the fonts in a TTC are registered (what's the problem?). There is no problem, in fact for general usage i'd thing it is the smartest aproach. For our needs it would be useful if I could allow users to give their own names to fonts inside the configuration files, but they may well live with

Re: [iText-questions] using more complex area for paragraph

2005-05-30 Thread Ilja Livenson
Bruno Lowagie wrote: Ilja Livenson wrote: Hi, I'm kind of stuck with this problem: the document I'm doing has a pretty complex form so I would really would like to specify Polygon (instead of Rectangle) for the form of the SimpleCell (which would look like this: http://ilja.webmedia.ee/cel

[iText-questions] HTMLWorker and default font

2005-05-30 Thread Adriaan Joubert
Hi, I saw a message from a while back saying how to set the default font for pdf text generated from HTML with HTMLWorker: http://article.gmane.org/gmane.comp.java.lib.itext.general/14296. It says something about registering a font in the FontFactory, but this did not help me much. All I

RE: [iText-questions] Registering Fonts other than TTF

2005-05-30 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of JAC > Sent: Monday, May 30, 2005 3:23 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Registering Fonts other than TTF > > Dear All, > > I am starting a new project for

[iText-questions] Pdf Resolution

2005-05-30 Thread Franck JACOB
Hello, In the itext library the default pdf resolution is 72 dpi, but I have to generate pdf with higher resolution (300 dpi for example), so how can I change this resolution ? Franck --- This SF.Net email is sponsored by Yahoo. Introducin

[iText-questions] spaces between tables

2005-05-30 Thread Christoph Kradolfer
It's an old program; all tables are of type Table, the cells of type Cell. Is there a way to for controlling the space before a new table? Is there a relatively simple way to change the following code to usage of PdfPTable and PdfPCell? CellcellHelper_o = null; PdfPCellcellHe

[iText-questions] Registering Fonts other than TTF

2005-05-30 Thread JAC
Dear All, I am starting a new project for PDF processing and i have a couple of questions: The font registry mechanism is available for TTF fonts only, or is it possible to register OTF fonts? Is it possible to register only a single font from a TTC file using the same notation as of Base

RE: [iText-questions] Russian as TextBox value

2005-05-30 Thread Paulo Soares
If you are creating the form field use an external font, like Arial.ttf, with the encoding "Cp1251" and it will work. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Leonid Kleiner > Sent: Monday, May 30, 2005 11:58 AM > To: itext-questions@lists

RE: [iText-questions] Table problem

2005-05-30 Thread Paulo Soares
You are probably experiencing an out of memory problem. Images added to a table remain in memory until the table is output and destroyed. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nicolas_Pace > Sent: Monday, May 30, 2005 7:42 AM > To: it

Re: [iText-questions] Russian as TextBox value

2005-05-30 Thread Leonid Kleiner
Which font do you use in TextBox field? I got squares in text box. - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Leonid Kleiner" <[EMAIL PROTECTED]>; Sent: Monday, May 30, 2005 11:30 AM Subject: RE: [iText-questions] Russian as TextBox value > The correct code is:

RE: [iText-questions] Russian as TextBox value

2005-05-30 Thread Paulo Soares
The correct code is: PdfReader reader = new PdfReader("c:/demo_ru.pdf"); PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("c:/filled_demo_ru2.pdf")); AcroFields form = stamp.getAcroFields(); String s = "\u0414\u0416"; form.

RE: [iText-questions] Flattening

2005-05-30 Thread Paulo Soares
PdfStamper.partialFormFlattening() > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Guillermo Odone > Sent: Thursday, May 26, 2005 10:50 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Flattening > > Hi, > Is there a

RE: [iText-questions] firstline position in a columntex

2005-05-30 Thread Paulo Soares
Post code reproducing the problem. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Thomas Kübler > Sent: Saturday, May 28, 2005 12:57 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] firstline position in a columntex >

RE: [iText-questions] Where I can configure the Print & Save protection options?

2005-05-30 Thread Paulo Soares
setEncryption() will disable print but nothing can disable save. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Lorenzo Jiménez > Sent: Saturday, May 28, 2005 12:30 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Whe

RE: [iText-questions] spaces between tables

2005-05-30 Thread Paulo Soares
PdfPTable.setSpacingBefore() > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Christoph Kradolfer > Sent: Monday, May 30, 2005 8:37 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] spaces between tables > > I'm creatin

Re: [iText-questions] Russian as TextBox value

2005-05-30 Thread Leonid Kleiner
Yes It is TextBox form value PdfReader reader = new PdfReader("c:/demo_ru.pdf"); PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("c:/filled_demo_ru2.pdf")); AcroFields form = stamp.getAcroFields(); String s = "\u0414\u0416";

RE: [iText-questions] handling annotation clouds

2005-05-30 Thread Paulo Soares
There's no direct support for polygon annotations but you can create one yourself. Look at the pdf reference. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Personal Son > Sent: Sunday, May 29, 2005 8:26 AM > To: itext-questions@lists.sourcefor

RE: [iText-questions] skewing text with contentbyte

2005-05-30 Thread Paulo Soares
It's possible but you don't have to worry about it. Use ColumnText.showTextAligned(). > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Martin Resch > Sent: Monday, May 30, 2005 10:05 AM > To: itext-questions@lists.sourceforge.net > Subject: [iTex

RE: [iText-questions] Russian as TextBox value

2005-05-30 Thread Paulo Soares
Is it content, field, what? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Leonid Kleiner > Sent: Sunday, May 29, 2005 10:40 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Russian as TextBox value > > Hello > > C

[iText-questions] skewing text with contentbyte

2005-05-30 Thread Martin Resch
hi, in class chunk there is the method setSkew(). is it possible to skew the textwith the content byte (maybe with a affine transformation)? thanks in advance. Best regards, Martin --- This SF.Net email is sponsored by Yahoo. Introducin

RE: [iText-questions] Handling inconsistant pdf

2005-05-30 Thread Paulo Soares
I'll change the code to accept any name size when reading a PDF. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Personal Son > Sent: Friday, May 27, 2005 10:38 PM > To: itext-questions@lists.sourceforge.net > Cc: [EMAIL PROTECTED]; Personal Son

RE: [iText-questions] Problem getting field name of a pdf form

2005-05-30 Thread Paulo Soares
iText doesn't support forms created with Designer. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Friday, May 27, 2005 1:51 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Problem getting fi

RE: [iText-questions] How to get intractive fields page by page.

2005-05-30 Thread Paulo Soares
AcroFields.Item contains the page numbers where the field appears. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Faisal Maqsood > Sent: Friday, May 27, 2005 12:18 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] How

[iText-questions] spaces between tables

2005-05-30 Thread Christoph Kradolfer
I'm creating pdf documents. How can I influence the space between two tables, which I simply added to the document one after the other? I thought about putting the tables as cells into a 'collecting' table, but so I lost the spaces within the first table. Thank you very much for any idea! Chri

Re: [iText-questions] how can show chinese in pdf file

2005-05-30 Thread Bruno Lowagie
jun yue wrote: > I installed iText and download the iTextAsian.jar > but how can I do when programming ,I just want to output pdf file with > chinese ,or now iText can't support chinese? ,I think not, I can not > find information about how to use the iTextAsian.jar on the page > http://www.lowagie

Re: [iText-questions] size of text in a table

2005-05-30 Thread bruno
Xian Win wrote: Hi Sir, I am a student in the US and I am using your iText to produce pdf files (it's amazing). My question is this: Say I have a table and I want to shring the text size (size 8) and the spacing to be smaller as well - how can I do that. Thanks you Xian my code looks like

[iText-questions] size of text in a table

2005-05-30 Thread Xian Win
Hi Sir, I am a student in the US and I am using your iText to produce pdf files (it's amazing). My question is this: Say I have a table and I want to shring the text size (size 8) and the spacing to be smaller as well - how can I do that. Thanks you Xian my code looks like this: Table myTable

[iText-questions] Table problem

2005-05-30 Thread Nicolas_Pace
Hi! I have a servlet that returns a PDF built with iText, generated with info from a DB, and some images. It´s like a photo album. The problem is when i add more than 42 images. My code completely hangs and i don´t really know why. >From my debugging i can tell that it hangs when it tries to add to