0

can we create and write on pdf files in android.
I have tried itext library of java but it gives class not found exception please help.
Update

Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream(FILE)); document.open(); addMetaData(document); addTitlePage(document); addContent(document); document.close(); 
4
  • 2
    What have you tried? Commented Jul 16, 2012 at 9:56
  • It sets warnings to my importing packages. Commented Jul 16, 2012 at 10:03
  • are you sure you have set build path to the libraries you use? Commented Jul 16, 2012 at 10:04
  • yes i have added library into my build path. Commented Jul 16, 2012 at 10:07

1 Answer 1

1

As the library, I mentioned earlier is deprecated. Below is one of the active one.

https://mupdf.com/

Sign up to request clarification or add additional context in comments.

4 Comments

Can you explain why this Android-specific Pdf library didn't work?
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
Yeah The links are not apt way of answering. But the question itself is vague. We need details for answering. Normally this (Class not found ) errors come because of library linking/ build path etc.
@BilltheLizard I'd also add that comments like "I have tried all from Google search" really don't help in diagnosing the problem - has the OP even tried it? if so, we can probably help with the problems (if we know what they are) but without knowing what's been tried, it's a VERY broad question to answer - especially since everything in Google has apparently been tried

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.