I need to be able to read QR codes from PDF files. I am using thoughtworks.QRCode, which accepts an image and returns the data held in the QR code. I have that part working.
However, I need to be able to accept a multipage PDF file and send each page as an image to the QR reader. I then need to save each page of the original PDF as single page PDF’s named after the data contained in the QR codes.
What library would you recommend I use for this project? Many that I have seen create permanent images, but I just want temporary ones. Is there something that would easily allow me to do this? Is there perhaps another QR reader that can read pdfs?
Thanks for any advice you might be able to lend!
I used itextsharp and libtiff.NET to extract tiff images from PDF files into memory. Bottom line is itextsharp will give you access to the images, but if they are encoded, you need to do the encoding yourself or use another library, which is where libtiff.NET came in.
The following code was modified based on an answer to a question I asked: PDF Add Text and Flatten