PdfDocument support API (API 19) version from API 14

0

I need to implement a way to generate a PDF and send an email as a confirmation of an order. I noticed that the PdfDocument was added in API 19 already creating a PDF from a Canvas object.

I would like to know if anyone knows of a support API that works similarly and can be used for previous versions of android (my minSdk = 14).

I have seen other libraries that work on PDF generation but in different ways (not being created from Canvas objects).

These other third-party libraries also have the problem of being paid.

    
asked by anonymous 30.01.2014 / 12:00

1 answer

2

This is the first time I've heard of a library that generates PDF from the canvas of a View. I do not believe there are alternatives to this library. With any luck, the Android development team will add this feature in an upcoming release of the compatibility library.

Anyway, there's this here library for creating PDF files. The only problems are that

  • It does not generate the PDF from the canvas as you want,
  • the application license is not free and
  • The library's developer company is known for swapping the contents of its licenses, leaving developers in the loop.
  • There is a tutorial on how to use it on the Vogella site.

    There is also this library here that I have never used and I really do not know how to talk about it. Apparently it does not have full support for android, but you can take a look if you want. Except that license is not free either. You can see a HelloWorld example from the library here >

        
    30.01.2014 / 15:45