Is there a (somewhat high level) C ++ library for creating pdf documents running on iOS and Android?

I need a C ++ library that runs on Android and iOS, which can be used to create PDF documents.

So far I have found libHaru :

libHaru is a free, cross-platform, open source library for creating PDF files.

The library seems beautiful, and I already found a working example on how to use it with iOS.

But I would like the library to be smaller than the "low level" because in libHaru you need to manually create new pages, line breaks, etc. So the question is, can anyone advise me on any C ++ library that can run on Android and iOS and a little higher level.

As a bonus: It would be great if this library were free (as in the case of freedom), or at least free to use.

Edit: I tried Qt and it is rather clumsy for use at an early stage of development (regarding iOS and Android development). I would appreciate a stable library with good documentation.

+4
source share
1 answer

You can use Qt for this. The class you were looking for is QPdfWriter The best part is that when you draw this, you can replace QPdfWriter with various types of QPaintDevices , such as QWidget or QImage and so on. This is a very general and high level, but Qt is also quite large.

+4
source

Source: https://habr.com/ru/post/1484627/


All Articles