Forum > General

Reading pdf into a TMemo

<< < (2/2)

Zvoni:

--- Quote from: paweld on August 17, 2022, 10:44:16 am ---You can also use the PDFium: https://forum.lazarus.freepascal.org/index.php/topic,58056.msg432524.html#msg432524

--- End quote ---
The Demo-Project for pdfium actually READS a PDF into a Memo.....
I tested it with one of my own PDF's

paweld:
I modified the project so that it does not show the pdf, but downloads the contents of the selected page to TMemo.You must download the library from here:https://github.com/pvginkel/PdfiumViewer/tree/releases/2.12.0.0/Libraries/Pdfium

Zvoni:

--- Quote from: Zvoni on August 17, 2022, 12:29:35 pm ---
--- Quote from: paweld on August 17, 2022, 10:44:16 am ---You can also use the PDFium: https://forum.lazarus.freepascal.org/index.php/topic,58056.msg432524.html#msg432524

--- End quote ---
The Demo-Project for pdfium actually READS a PDF into a Memo.....
I tested it with one of my own PDF's

--- End quote ---

I forgot: This obviously only works with "converted to PDF"-Documents.
A PDF from a Scanner on the other hand.....

paweld:
in the case of a pdf from a scanner, then each page has an embedded image, so you need to use OCR

Nicole:
Thank you so much for the informative answers.  :-*
Ant my special thank to WP, which project just loaded my pdf-link into my TMemo.

Whoever has the luck to find the link to this thread in the future, hint: pls be patient, the process of downloading takes its time.

Navigation

[0] Message Index

[*] Previous page

Go to full version