I am looking for a simple, affordable library to read pdf files into FMX applications

Any recommendations, anyone ?

1 Like

Have a look at PDFium for FireMonkey

I haven’t used it… but I think it will meet your requirements as described.

1 Like

Thanks, I had spotted their other products for the different platforms. But not this one. Will give it a go

I’d be interested in hearing Rohit’s opinions on how you go with Winsoft.

I started prototyping with Winsoft’s FMX ones (e.g. camera, barcode) back in the XE4 days. For the PDF report generation I used an eval TMS (?) one which had more documentation and examples, but still buggy and missing features, but did the job well enough for a C++ cross platform POC.

I had a little bit of hassle with FMX and a little bit of hassle with Pdfium and discovered the absence of TOpenDialog on Android.

I have the Windows version running. I will try the Android tomorrow. If successful, I will make the project available on my website.

At the end, the amount of code required to extract text from the pdf is only about 6 lines.

1 Like

Is this just for viewing PDFs, or manipulating them in some way, or anything else?

Just for extracting text. I shall try the Android later today. I have hopes that it will work.

My fallback was going to be to install a webservice on my website and get the app to send the document there for extraction.

Its all working. This time, no hassles with the library, just the ruddy IDE kept crashing every time I tweaked the fmx form. I have made all my test code available Fmx PDF Test .

It contains the full source, a compiled apk and a compiled exe (with the dll). If you want to compile it, you will need to install PDFium, they have a trial version.

Finally, there is no OpenDialog on Android. I have made available four folders that you can select from, to grab the pdf file. If it doesn’t find any files there, it shows you the path, so you can copy a pdf there with a file manager. I use X-plore.