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


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


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