u dont seem to have iText in your classpath.
Nothing personal but, isnt this a sufficient hint to tell any "basic" java
programmer.. what the problem is?
"package com.lowagie.text does not exist"
where does "intermediate" start?
On Mon, Mar 2, 2009 at 3:16 PM, vineet gaba <[email protected]> wrote:
> 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
> [email protected]
> +91-9873049457
>
> ------------------------------
> Add more friends to your messenger and enjoy! Invite them
> now.<http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/>
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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