![]() ![]() It will generate PDF and give you a PDF file in callback (if success). In onCreate of you activity, you have to call createPDF(String fileName, PDFUtilListener listener).This is a handler method to get callback when user taps on Next.This add a watermark image to each page.This will be footer for PDF and will be added to each page.This will return a PDFBody which consist of list of views which can be broken between pages.This will be header for PDF and will be added to each page.There are 3 abstract methods you have to override.Do not set use setContentView(int resourceId) inside your created activity. Create a Empty Activity without any layout and extend it with PDFCreatorActivity.PDF creater uses views which can be rendered, So we need to exted an activity in order to create activity.First thing first, Look at PdfCreatorExampleActivity of app. ![]() If next view exceeds current page, that view will be added to new page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |