Apryse
Published March 31, 2025
Updated November 18, 2026
5 min
Extract QR Codes from PDF Files Using Apryse SDK
Apryse

In the Apryse Server SDK, BarcodeModule.ExtractBarcodesAsString reads every QR code inside a PDF and returns its type, location, and value as JSON. In C#, open the file as a PDFDoc, make the call, and keep the QR entries. Picture a payment slip landing in your queue. The reference your app needs sits in a square in the corner, and your code reads it without anyone squinting at the page.
This post covers QR codes already inside PDFs, using the Barcode Extraction Module add-on on Windows or Linux. For codes captured with a phone camera, see Scanbot SDK. We walk through the code, then save each QR code as a PDF. The same call reads Data Matrix, PDF417, Aztec, MaxiCode, linear barcodes, and more, so one pass handles mixed documents.

When Do You Need to Implement QR Code Extraction From PDFs?
Extracting QR codes from PDFs can be useful in many scenarios where the PDF documents containing QR codes need further analysis, such as automating document-heavy workflows and processes, inventory management, quality control, etc. Automating this process not only will save time but also limit manual intervention by streamlining workflows and allowing your users to process data swiftly. For those of you who know Apryse, we're all about helping you build intelligent, user-friendly apps quickly and easily!
Let's Get Coding!
Currently, Apryse barcode extraction operates server-side only. To get started with Server SDK, visit our documentation page including instructions for different platforms and frameworks.
How to Extract a QR Code from a PDF in C#
Let's take a quick look at the code:
And that’s it! A simple and effective way to extract QR codes from PDF files and export to a specified location. With an added line to trigger the action, you now have an automated solution set to grab each QR code and export automatically to allow time for more complex data analysis and processing. To expand this application to be used in any niche within your organization, be sure to utilize our extensive tutorials and robust documentation for additional complex technology and functions.
Try for Yourself
We offer a trial of all our SDKs that gives you access to not only our comprehensive barcode technology, but also all the core features of our SDKs. You can also find showcase demos of Apryse technology in our documentation.
If you have any questions, feel free to contact sales or reach out to us on the Apryse Community.


