You can also use PDFium - example attached. Download libraries from: https://github.com/pvginkel/PdfiumViewer/tree/releases/2.12.0.0/Libraries/Pdfium
Read this post (https://forum.lazarus.freepascal.org/index.php/topic,61206.0.html) and see if it can help you.
Thank you for responding. I took a look but I don't think that's what I need. I wanted to be able to put text into an existing pdf. I had also tried "pdfvectorialreader" but I can't even compile it.