how to extract QR code from pdf file in C# and save as image
how to extract QR code from pdf file in C# and save as image ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Leon DPosted Nov 21, 2023, 8:23 AM
You can convert the pdf pages that contain QR codes to images:
https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-PDF-Page-to-Image-with-C-code.html
Marvin ReidPosted Nov 20, 2023, 8:05 PM
A solution to this would be to leverage that you have access to the BarcodeData Bounds after barcode recognition is done. This will allow you to know where the barcodes are on the page. You can then supply the bounds into the CropCommand which would allow you to extract just the QR code. Here is some sample code which demonstrates this:
https://www.leadtools.com/help/sdk/tutorials/dotnet-console-detect-and-extract-barcodes.html
https://www.leadtools.com/help/sdk/dh/l/imageprocessing-cropcommand-ctor(leadrect).html
Rohan AhmedPosted Apr 2, 2015, 12:10 PM
http://www.codeproject.com/Articles/278301/How-to-Read-Barcodes-from-Images-using-LEADTOOLS
dheeraj ghadePosted Mar 16, 2015, 8:15 AM
I would suggest that, try to convert whole or particular page of PDF file in image. Refer below link for reference
https://code.google.com/p/lib-pdf/