Not able to run simple program of iText library in android
问题 I want to run a simple iText program, here is my code: http://pastebin.com/C6YMkYNk It is working fine with Java but not in Android. I am using iText version 5.1.3. My code doesn't show any errors but also doesn't show a PDF file. Can anyone suggest what I need to do to solve my problem? 回答1: Try this: FileOutputStream fOut = openFileOutput("a.pdf", MODE_WORLD_READABLE); PdfWriter.getInstance(document, fOut); You cant just start writing to the working directory. You have to store it on the