Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Jul 15, 2021 1:14 pm

Hello

We have a PDF-File with a QR-Code and we try to extract the images from the file.
The method ExtractImages does not find the QR-Code image on the page.

Thanks
Eduard

[email protected]
 
Posts: 8
Joined: Thu Dec 17, 2015 2:15 pm

Fri Jul 16, 2021 7:51 am

Hello,

Thanks for your inquiry.
I tested your PDF file and noticed that the QR-Code image can't be extracted. After investigation, I found that the QR code in the file is composed of paths rather than a real picture, so it can't be extracted with ExtractImages method. This behavior is related to your PDF file itself, if your goal is to extract picture and scan the QR code data, you could refer to this tutorial (Convert PDF Page to Image) to save the whole page to image, then scan barcode from the saved image.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF

cron