Op 9/12/2011 15:38, khushwant dhayal schreef: > Hi, > > I want to generate a pdf from android application using iText. Is it > possible?
Yes: http://www.youtube.com/watch?v=wwmRiUaEfQc http://www.youtube.com/watch?v=PNLh4HqYtXY > if yes than could you please provide me any tutorial. No need for a tutorial. Creating an app for Android is easy as sliced bread, provided you are familiar with Android development. > Currently i am using iText 5.1.3 but i am getting following errors in > my application - > > Could not find class 'com.itextpdf.text.pdf.PdfPrinterGraphics2D' Er... do you have any experience programming for Android? Are you aware of the fact that Google has a whitelist of classes that are allowed? If not, do your homework, and you'll discover that many classes related to java.awt (including all Graphics2D) are forbidden on Android. So you can't just use the complete iText on Android. We usually use a trimmed down version where we remove all forbidden classes from packages such as java.awt.*, java.nio.* > Could not find class 'org.bouncycastle.cms.CMSEnvelopedData' Er... when you see org.bouncycastle, what makes you think this is an iText problem? 1. you forgot to include the BouncyCastle jars in your app. 2. we usually remove all references to BouncyCastle for one of the following reasons: a. because we want a light-weight version of iText in applications that don't require encryption, or b. because BouncyCastle doesn't work that well on Android, in which case we replace it with SpongyCastle. I hope you understand that you have some serious learning to do with respect to Android development. Once you master Android development, you should have no problems with iText ;-) ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php