RE: [iText-questions] HTML to PDF

2004-06-24 Thread taa boo
Hi, Did you try Fckitext version 1.1 on tomcat if it works, then you will see the sample how to use html2pdf java class and how HTML sample code should be 0therwise, you can download html2pdf.exe only with its Sample Package/// English version available at pdfone.net only Korea version at sour

RE: [iText-questions] HTML to PDF

2004-06-24 Thread Luiz Fernando Rodrigues
Hi, I tried your handler but I can't make it works. Actually nor yours nor the itext handler (SAXmyHtmlHandler). I'm trying to use the same code of example 6 in the chapter 7 of the tutorial. All I got was an empty pdf file. Do you know why? I'll copy the code fragment: PdfWriter.getInstance(doc

[iText-questions] RE: iText-questions digest, Vol 1 #2100 - 13 msgs

2004-06-24 Thread Richard Freedman
Try a java.io.ByteArrayOutputStream instead of the FileOutputStream == Rich Freedman Sr. Software Engineer Cross Current Corp. http://www.crosscurrent.com == > -Original Message- > From: "Richard Corfield" <[

RE: [iText-questions] Concatenating an existing PDF with a new document in a servlet.

2004-06-24 Thread Paulo Soares
Document document = new Document(); ByteArrayOutputStream ba = new ByteArrayOutputStream(); PdfWriter.getInstance(document, ba); ... document.close(); PdfReader cover = new PdfReader(ba.toByetArray()); Best Regards, Paulo Soares > -Original Message- > From: Richard Corfield [mailto:[EMAIL

RE: [iText-questions] Concatenating an existing PDF with a new document in a servlet.

2004-06-24 Thread Richard Corfield
Paul Thankyou for your reply. This narrows my problem down to the fact that I'm not sure how to create a new document as a byte array. Previously I have used something like: Document document = new Document() PdfWriter.getInstance(document, new FileOutputStream("3.pdf")); ...which

RE: [iText-questions] Newbie - Page number on the first page

2004-06-24 Thread Paulo Soares
Do it before Document.open().   Best Regards, Paulo Soares From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Enrico BertiSent: Thursday, June 24, 2004 11:08 AMTo: [EMAIL PROTECTED]Subject: [iText-questions] Newbie - Page number on the first page Hi to all,i

RE: [iText-questions] writing pdf to browser from servlet.

2004-06-24 Thread Paulo Soares
It works well with Netscape but IE tends to choke if the content length is not set. Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Knight, Lloyd > Sent: Wednesday, June 23, 2004 3:09 PM > To: '[EMAIL PROTECTED]' > Sub

RE: [iText-questions] Concatenating an existing PDF with a new document in a servlet.

2004-06-24 Thread Paulo Soares
Create your cover page in memory. Now you can concatenate two documents: one created with PdfReader(byte[]) and the other from PdfReader(String). Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Richard Corfield > Sent

RE: [iText-questions] Image.getInstance Documentation

2004-06-24 Thread Paulo Soares
Here's the javadoc: /** Creates an Image with CCITT G3 or G4 compression. It assumes that the data bytes * are already compressed. * * @param width the exact width of the image * @param height the exact height of the image * @param reverseBits reverses the bits in data. * Bit 0 is swapped w

Re: [iText-questions] SAXiTextHandler to print at specified position

2004-06-24 Thread taa boo
Hi, It is inside Html2Pdf sourcecode package regards taboo --- James Hutom <[EMAIL PROTECTED]> wrote: > Hi.. > > I couldn't find link to download > NesOneSAXiTextHandler. > > > Hendrik > > --- taa boo <[EMAIL PROTECTED]> wrote: > > Hi, > > > > we already solved this problem in Html2Pdf modu

[iText-questions] Image.getInstance Documentation

2004-06-24 Thread Youssef Eldakar
Can somebody explain what the `parameters` argument is for in: Image.getInstance(int width, int height, boolean reverse, int ccitt, int parameters, byte[] data) The API documentation says nothing about it. Youssef Eldakar Bibliotheca Alexandrina

Re: [iText-questions] New release itext-paulo-132

2004-06-24 Thread Simon Räss
Paulo Soares wrote: Changes in itext-paulo-132 (2004-06-21) - DefaultFontMapper also maps the postscript font name I tested DefaultFontMapper on Mac OS X and it works just perfect now. Thanks! Simon --- This SF.Net email sponsored by Blac

[iText-questions] Newbie - Page number on the first page

2004-06-24 Thread Enrico Berti
Hi to all, is there a way to display the page number on the first page too ? I created a pdf but the page numbers start from second page (with the correct number). Thanks in advance Enrico "PNT" Berti

Re: [iText-questions] SAXiTextHandler to print at specified position

2004-06-24 Thread James Hutom
Hi.. I couldn't find link to download NesOneSAXiTextHandler. Hendrik --- taa boo <[EMAIL PROTECTED]> wrote: > Hi, > > we already solved this problem in Html2Pdf module at > www.pdfone.net ==> go there and download > NesOneSAXiTextHandler > > cheers > > www.pdfone.net > www.vietclever.com >

[iText-questions] Concatenating an existing PDF with a new document in a servlet.

2004-06-24 Thread Richard Corfield
Hi I am trying to create a cover sheet dynamically to existing PDFs using a servlet. All I want to do is put an extra page at the front of the PDF with some simple text and then stream directly to the browser. I can concatenate existing files and then print then to the browser. And I can create

[iText-questions] writing pdf to browser from servlet.

2004-06-24 Thread Knight, Lloyd
i wrote a quick servlet using the itext api which writes the results of an updated pdf file back to the browser. i used the ServletOutputStream for the second parameter of the PdfStamper constructor method and all works fine. then i found some examples which make use of ByteArrayOutputStream. is