[EMAIL PROTECTED] wrote:


Hello, I have a problem using class PDFString

PdfString is a class intended for internal use (inside iText) only.
I don't see any reason why you should need it.
I think you mistake PdfString, the low level PDF object,
with Chunk, the high level iText object.

My source code is:

 PdfString pdfString2 = new PdfString("Test");

the line above is NOT DONE!!!
Use Paragraph p = new Paragraph("Test");

 Document document = new Document(PageSize.A4, 80, 50, 30, 65);

the next line is completely wrong!!!

pdfString2.toPdf(PdfWriter.getInstance(document, new FileOutputStream("test.pdf")), new FileOutputStream("test.pdf"));

And it works, but I can not open the file generated

It DOESN'T WORK!!!

How do I have to use the method "toPdf" to generate a PDF file from a string

toPdf is for internal use only!!!

Thank you very much. I realy appreciate your help

It is quite obvious you have downloaded or received the iText.jar
without any documentation. You should have read the tutorial first:
http://itextdocs.lowagie.com/tutorial/
br,
Bruno


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to