Re: [iText-questions] How to fit PdfPTable in a page ?

2003-05-29 Thread Grzegorz Kucner
The only thing I have is footer which is served elsewhere using PageEvent on main writer. Best Regards, Grzegorz Kucner - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "'Grzegorz Kucner'" <[EMAIL PROTECTED]>; "Paulo Soares" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent:

Re: [iText-questions] Embedding barcode fonts - how?

2003-05-29 Thread Graham Leggett
Paulo Soares wrote: Use the class Barcode39 instead. It doesn't require fonts and is more configurable. I converted the code to use the following code, but no barcode appears (or the barcode is being rendered white on white). PdfContentByte cb = ((PdfWriter)writer).getDirectContent(); Barcode39

RE: [iText-questions] How to fit PdfPTable in a page ?

2003-05-29 Thread Paulo Soares
With tableZ.writeSelectedRows(0, -1, 100, 100, cb2) you should have something in the bottom of the page. Best Regards, Paulo Soares > -Original Message- > From: Grzegorz Kucner [SMTP:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 13:36 > To: Paulo Soares; [EMAIL PROTECTED] > Subject:

RE: [iText-questions] Barcode fonts - still cannot get it to work (font not found)

2003-05-29 Thread Paulo Soares
When you open in Acrobat what font name does it show? It may be a case of font propagation. Instead of creating a Chunk, create a Paragraph and add it alone to the document. Best Regards, Paulo Soares > -Original Message- > From: Graham Leggett [SMTP:[EMAIL PROTECTED] > Sent: Thursday, Ma

Re: [iText-questions] How to fit PdfPTable in a page ?

2003-05-29 Thread Grzegorz Kucner
> > -Original Message- > > From: Grzegorz Kucner [SMTP:[EMAIL PROTECTED] > > Sent: Friday, March 21, 2003 17:21 > > To: [EMAIL PROTECTED] > > Subject: [iText-questions] How to fit PdfPTable in a page ? > > > > .. > > > > How to force PdfPTable to fit it in a single page? Is there there

[iText-questions] Add an Annotation to a PDF document?

2003-05-29 Thread Sven Henckel
Hi all, how is it possible to add an annotation to an existing document? I know that it's not possible to simply add it, but to open an exisiting PDF document, write its whole content in a new file and add an annotation to it. I would like to have a fully filled (with red) rectangle in the center

[iText-questions] Barcode fonts - still cannot get it to work (font not found)

2003-05-29 Thread Graham Leggett
Hi all, I am trying to use the following code to render a simple code 39 barcode, with the code 39 bardoce ttf font embedded in the PDF: BaseFont bfCode39 = BaseFont.createFont("CODE39.TTF", BaseFont.WINANSI, BaseFont.EMBEDDED); Chunk barcode = new Chunk("*" + row.serial + "*", new com.lowagie

RE: [iText-questions] Embedding barcode fonts - how?

2003-05-29 Thread Paulo Soares
Use the class Barcode39 instead. It doesn't require fonts and is more configurable. Best Regards, Paulo Soares > -Original Message- > From: Graham Leggett [SMTP:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 11:49 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Embedding bar

[iText-questions] Embedding barcode fonts - how?

2003-05-29 Thread Graham Leggett
Hi all, I am trying to use the following code to place a barcode in my PDF document: new PdfBarcode("CODE39.TTF", PdfBarcode.CODE39, 36, "0123465678") The above code works, but when I try and view the pdf, the barcode does not show up because the font is not installed on that specific platform.

RE: [iText-questions] Using servlet for merging files

2003-05-29 Thread Paulo Soares
Create the new document to a byte array and when it's done read it with PdfReader. Concatenate it like the others. Best Regards, Paulo Soares > -Original Message- > From: v b [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, May 28, 2003 18:56 > To: Matt Benson; [EMAIL PROTECTED] > Subject:

RE: [iText-questions] how to get font, size, coordinates of AcroFields

2003-05-29 Thread Paulo Soares
You must get the data by reading the right keys in that dictionary. The right keys are described in the pdf reference in the chapter interactive features. Best Regards, Paulo Soares > -Original Message- > From: Gary Wu [SMTP:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 1:44 > To: [E

RE: [iText-questions] Problem with directContent

2003-05-29 Thread Paulo Soares
It works correctly in 0.98 just by chance. That's why it now throws an exception when you try to get a direct content with the document closed. Best Regards, Paulo Soares > -Original Message- > From: Marcin Stefaniuk [SMTP:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 7:01 > To: [EMA

RE: [iText-questions] Compile errors on HP-UX

2003-05-29 Thread Paulo Soares
> -Original Message- > From: online user [SMTP:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 8:49 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Compile errors on HP-UX > > Hello, >We are trying to use iText on HP-UX 11 with java version "1.2.2.14" > Classic VM (build

[iText-questions] Compile errors on HP-UX

2003-05-29 Thread online user
Hello,    We are trying to use iText on HP-UX 11 with java version "1.2.2.14"Classic VM (build 1.2.2.14-02/11/20-PA_RISC1.1, native threads, HP), all of the required HP java patches have been installed.   We are using the following command to compile the sample Chap0101.java source file - but unfor

[iText-questions] Problem with directContent

2003-05-29 Thread Marcin Stefaniuk
Hello! Opening document in mu program looks like: document = new Document(PageSize.A4, 25, 25, 15, 15); writer = PdfWriter.getInstance(document, new FileOutputStream(destinationPath + "/" + subReportName)); writer.setEncryption(PdfWriter.STRENGTH40BITS, null, null, PdfWriter.AllowPrinting | PdfWri

[iText-questions] how to get font, size, coordinates of AcroFields

2003-05-29 Thread Gary Wu
Hi, I'm trying to use iText to retrieve information such as font, font size, coordinates of fields in a PDF form. Here's what I did. // _stamper is an instance of PdfStamper. AcroFields formFields = _stamper.getAcroFields(); HashMap fieldHash = formFields.getFields(); jp.ujihara.java.util.Collec

Re: [iText-questions] Using servlet for merging files

2003-05-29 Thread Matt Benson
See Chapter 13 of the tutorial: http://www.lowagie.com/iText/tutorial/ch13.html -Matt --- v b <[EMAIL PROTECTED]> wrote: > I'm able to create pdf in the servlet and show it in > the browser as well as merge multiple pdfs. My > problem is i do not know how to add existing pdf > files to newly cre

Re: [iText-questions] Using servlet for merging files

2003-05-29 Thread v b
I'm able to create pdf in the servlet and show it in the browser as well as merge multiple pdfs. My problem is i do not know how to add existing pdf files to newly created pdf.Matt Benson <[EMAIL PROTECTED]> wrote: And what problem are you experiencing?-Matt--- v b <[EMAIL PROTECTED]>wrote:> Hi All

Re: [iText-questions] Using servlet for merging files

2003-05-29 Thread Matt Benson
And what problem are you experiencing? -Matt --- v b <[EMAIL PROTECTED]> wrote: > Hi All, > I'm trying to do the following: 1. create one page > pdf file with some content 2. import multiple pdf > files 3. concat everything into one document and > show this document in the browser. Note everythin

[iText-questions] Using servlet for merging files

2003-05-29 Thread v b
Hi All, I'm trying to do the following: 1. create one page pdf file with some content 2. import multiple pdf files 3. concat everything into one document and show this document in the browser. Note everything should be done using servlet in the Tomcat environment.   I tried to use some of the provi

[iText-questions] Rotating a rectangle

2003-05-29 Thread Jaladurgam, Ramana
Hello, I am required to rotate a rectangle. But, when I do it I couldn't see the recangle. Here is the way I am rotating: pdfContentByte.concatCTM(1, 1, -1, 1, 200, 200); pdfContentByte.rectangle(200, 200, 100, 100); pdfContentByte.stroke(); My idea is to rotate the rectangle to

RE: [iText-questions] Image scale

2003-05-29 Thread Collard, John
Thanks for both ideas. They *both* worked once I set the PdfPTable property to control the height of the cell. topTable.getDefaultCell().setFixedHeight(150); Best Regards, - John -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 9:3

Re: [iText-questions] Line feed in HeaderFooter

2003-05-29 Thread Mark Hall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 23 May 2003 14:42, [EMAIL PROTECTED] wrote: > I have tried using RtfHeaderFooters as well, and the problem will not go > away. Has anyone else run into this problem, or is it perhaps a bug in the > RTF classes? Has anyone successfully gotte

Re: [iText-questions] RE: Support for reading Encrypted docs...

2003-05-29 Thread Bruno
Quoting Leonard Rosenthol <[EMAIL PROTECTED]>: > I'll look at backporting it into the standard iText distro today - I think he already did the work on iText. Just send him a mail and he'll send you his original code. Bruno --- This SF.net ema

[iText-questions] FYI...what a difference using Graphics 2d over JPEG for chart insertion

2003-05-29 Thread Kenny G. Dubuisson, Jr.
Hello all. I just wanted to post this for anyone browsing the list wanting to insert charts into their PDF's. I'm using JFreeChart and had been inserting charts as a JPEG image into the PDF document. On advice from this list I have changed this to insert the chart as a Graphics2D object. WOW wh

RE: [iText-questions] How Can I Convert xml file with Japanese characters to PDF file?

2003-05-29 Thread Paulo Soares
You have two problems here. In the first place you xml file must be encoded according to the japanese content, be it UTF-8 or SJIS or whatever. Your xml file should start with: or other encoding. You must register a font with: FontFactory.register("c:\\windows\\fonts\\msmincho.ttc"); In your

RE: [iText-questions] Image scale

2003-05-29 Thread Paulo Soares
You may also try PdfPCell(Image, true). Best Regards, Paulo Soares > -Original Message- > From: Bruno Lowagie [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, May 28, 2003 3:11 PM > Cc: [EMAIL PROTECTED] > Subject: Re: [iText-questions] Image scale > > Collard, John wrote: > > >I shoul

[iText-questions] HtmlParser.parse

2003-05-29 Thread Malloy, James
I am doing a very basic html to pdf parser. Primarily it will be creating from html tables. I have a working prototype using JTidy. The only problem I am having is the first cell in any table always takes up 50% of the table width. This is regardless of whether I set the cell widths indivually o

RE: [iText-questions] RE: Support for reading Encrypted docs...

2003-05-29 Thread Paulo Soares
It's OK for me too. We'll support encrypted files, if you have the owner password, in the near future. Best Regards, Paulo Soares > -Original Message- > From: Bruno Lowagie [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, May 28, 2003 3:00 PM > To: [EMAIL PROTECTED] > Subject: Re: [iText

Re: [iText-questions] Image scale

2003-05-29 Thread Bruno Lowagie
Collard, John wrote: I should have described my problem a little better. I have a 2 column table. The image I am trying to render is in the first column. I want it to only take up a small area, but am having problems getting it to a certain height. Why don't you use the method scaleToFit?

Re: [iText-questions] RE: Support for reading Encrypted docs...

2003-05-29 Thread Bruno Lowagie
Paulo Soares wrote: You may but I don't know if it will go into the main distribution. Myself and Bruno had the policy of not accepting encrypted documents to stay out of piracy troubles. On the other hand, $39 will buy you the elcomsoft cracker and there are also other Java libraries that decry

RE: [iText-questions] Image scale

2003-05-29 Thread Collard, John
I should have described my problem a little better. I have a 2 column table. The image I am trying to render is in the first column. I want it to only take up a small area, but am having problems getting it to a certain height. Thanks, > John Collard > Aquila, Inc. > 1815 Capitol Ave. >