B4A Class PDFDocument API 19+

From API level 19 (KitKat) Android introduced an android.graphics.pdf package that allows sending an image of views to a PDF file.

This is a wrapper for that library written using JavaObject.

The demo app follows (loosely) the documentation example. The project contains the 4 classes, you can compile it to a library if you wish.

Depends On: Reflection JavaObject
 

Attachments

  • PDFDocument.zip
    10.2 KB · Views: 541
Last edited:

LucaMs

Expert
Licensed User
Thanks (AGAIN) Steve!!!

I don't have kitkat, but I appreciate your work.

Why did you write: "Allows sending the content of views"?
 

stevel05

Expert
Licensed User
I changed it to images, as it uses a canvas object and doesn't send text.
 
Top