Draw QR-Code to PDF with LayoutResult

Hello,

I am creating an PDF using the LayoutResult to have a flow layout, where I can add content after content to the page.

Now I need to add a QR-Code to the page. But the PdfQRBarcode is not a PdfLayoutElement, so this is not working with my creation process.

Is there a way to wrap the QR-Code inside of an 
PdfLayoutElement?

Or is there any other workaround for this?


Regr 


2 Replies

KS Karmegam Seerangan Syncfusion Team May 20, 2025 11:04 AM UTC

Hi Alexander,


We currently do not support retrieving the PdfLayoutResult while drawing the QR barcode in the PDF document. We are analyzing the requested behavior on our end and will share further details by May 22, 2025.


Regards,

Karmegam





AM Arumugam Muppidathi Syncfusion Team May 22, 2025 09:12 AM UTC

Hi Alexander,


Thank you for your patience. While retrieving the PdfLayoutResult is currently not supported when drawing the barcode, you can obtain the barcode height using the Size property of the PdfQRBarcode class. We have attached a workaround sample for your reference.

 

Sample: QRCode_LayoutResult

 

Please try the sample and let us know if you need any further assistance. We're happy to help.


Regards,
Arumugam M


Loader.
Up arrow icon