title: How to add PDFBox to an Android project or suggest alternative
body: <p>I'm attempting to open an existing pdf file and then add another page to the pdf document from within an Android application. On the added page, I need to add some text and an image.</p>
  
  <p>I am wanting to give PDFBox a try. Other solutions such as iTextPDF aren't suitable for our company because of the licencing terms/price.</p>
  
  <p>I have a library project with the main code base, and also full and lite projects that reference the library project.</p>
  
  <p>I have downloaded the jar from <a href="http://pdfbox.apache.org/download.html">http://pdfbox.apache.org/download.html</a> and copied it into the library projects lib folder and added the pdfbox-app-1.6.0.jar file to the java build path libraries.</p>
  
  <p>I am able to import the librarys successfully eg <code>import org.apache.pdfbox.pdmodel.PDDocument;</code> and compile all the projects. However when I run the application it crashes on <code>PDDocument document = new PDDocument();</code> with the following error.</p>
  
  <blockquote>
    <p>E/AndroidRuntime(24451): java.lang.NoClassDefFoundError:
    org.apache.pdfbox.pdmodel.PDDocument</p>
  </blockquote>
  
  <p>I read somewhere that version 1.5 of PDFBox onwards didn't work with Android so I tried downloading the pdfbox-app-1.4.0.jar file but got the same issue. I also added the library to the build path in my full and lite projects but I got the same error or eclipse kept crashing with an out of memory error.</p>
  
  <p>Can anyone tell me what I am doing wrong? Have I downloaded the wrong file? Have I imported it correctly? </p>
  
  <p>Thanks,</p>