You must have iText in the classpath. If you don't know how to do it you should
learn more Java before comming back.
Paulo
> -----Original Message-----
> From: Vineet Gaba [mailto:[email protected]]
> Sent: Monday, March 02, 2009 7:42 AM
> To: [email protected]
> Subject: [iText-questions] problem in launching of iText
>
> Dear Sir,
>
> I am intermediate programmer of JAVA. Please tell me how can
> use iText. i am not understanding how it work in java i have
> a code of pdf writer but how it will run in their following
> errors are coming how can it remove...please reply asap
> because i am working with my project
>
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:2:
> package com.lowagie.text does not exist
> import com.lowagie.text.*;
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:4:
> package com.lowagie.text does not exist
> import com.lowagie.text.Document;
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:5:
> package com.lowagie.text.pdf does not exist
> import com.lowagie.text.pdf.PdfPCell;
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:6:
> package com.lowagie.text.pdf does not exist
> import com.lowagie.text.pdf.PdfPTable;
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:9:
> cannot find symbol
> symbol : class Document
> location: class PDFWriter
> public static Document doc = new Document();
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:10:
> cannot find symbol
> symbol : class PdfWriter
> location: class PDFWriter
> static PdfWriter writer;
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:12:
> cannot find symbol
> symbol : class DocumentException
> location: class PDFWriter
> public static void main(String[] args) throws
> DocumentException, IOException {
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:9:
> cannot find symbol
> symbol : class Document
> location: class PDFWriter
> public static Document doc = new Document();
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:13:
> cannot find symbol
> symbol : variable PdfWriter
> location: class PDFWriter
> writer = PdfWriter.getInstance(doc, new
> FileOutputStream("Y:\\asd.pdf"));
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:15:
> cannot find symbol
> symbol : class PdfPTable
> location: class PDFWriter
> PdfPTable table = new PdfPTable(4);
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:15:
> cannot find symbol
> symbol : class PdfPTable
>
> location: class PDFWriter
> PdfPTable table = new PdfPTable(4);
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:19:
> cannot find symbol
> symbol : class PdfPCell
> location: class PDFWriter
> PdfPCell cell = new PdfPCell();
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:19:
> cannot find symbol
> symbol : class PdfPCell
> location: class PDFWriter
> PdfPCell cell = new PdfPCell();
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:20:
> cannot find symbol
> symbol : class Chunk
> location: class PDFWriter
> cell.addElement(new Chunk("I WANT TO BE RIGHT"));
> ^
> C:\Program Files\Java\jdk1.6.0_07\bin\PDFWriter.java:21:
> cannot find symbol
> symbol : variable PdfPCell
> location: class PDFWriter
> cell.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT);
> //this line wont work
> ^
> 15 errors
>
> Thanks & Regards
> --
> Vineet Kr. Gaba (S/W Engineer)
> [email protected]
>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php