Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

OG-Tyavyar-Jnr's avatar

How can I add QRcode to existing pdf file

I want to generate QRcode with user id from db and display it on existing pdf file using laravel?

0 likes
5 replies
vincent15000's avatar

QR codes are only images. To add a QR code to a PDF file is the same as adding an image to a PDF file.

Some APIs like PSPDFKIT offers the possibility to use an API to add an image to a PDF file.

https://pspdfkit.com/guides/web/editor/add-image/#:~:text=You%20can%20add%20images%20to%20your%20document%20using%20the%20Image%20Annotation%20API.&text=const%20imageAttachmentId%20%3D%20await%20instance.,%2C%20description%2C%20and%20bounding%20box.

Please or to participate in this conversation.