PDF Dynamic QR Placement batch places QR codes on every page of a PDF. Drop a PDF onto the upload card, enter a URL pattern with {page} or {n} placeholders, pick a placement (any corner, edge mid-point or center), set size, margin, colors and an optional label, then press Place QR Codes. The tool generates a unique QR code for every page from your pattern, draws it as a real vector rectangle on the page (not an image), and outputs a new PDF that scans cleanly with any smartphone. Everything runs in your browser with pdf.js and pdf-lib — no uploads, no account.
What does the PDF Dynamic QR Placement tool do?
The tool batch places QR codes on every page of a PDF. Each QR code can encode a unique URL built from a pattern — for example https://example.com/doc/{page} produces a different QR per page. It also lets you pick the position (any of nine anchors), size in points, margin from the edge, colors, optional label text and quiet zone. The output is a new PDF with a real QR code drawn on each page as a vector graphic — not a blurry embedded image.
People search for "add QR to PDF" or "batch QR generator PDF" when they need a self-verifying document (each page scanning to a unique verification URL), when a printed brochure should link to the exact page online, when a worksheet should scan to its own answer key, or when each certificate in a batch needs its own unique QR. This tool answers all of those, entirely in the browser.
Under the hood, the tool uses pdf.js to read the PDF, a pure-JavaScript QR encoder to generate codes, and pdf-lib to draw the QR as vector rectangles — all client-side.
Important: the tool produces a new file. The original PDF on your disk is never modified. QR codes are drawn as vector content on top of the existing page — the page content, size and orientation are preserved.
How do I add dynamic QR codes to a PDF?
- Add your PDFDrag a PDF onto the upload card, browse your device, or import from Google Drive or Dropbox. The tool reads the document in your browser with pdf.js — nothing is uploaded.
- Define the URL patternEnter a base URL with placeholders like {page} or {n}. Example: https://example.com/doc/{page} creates a unique QR code for every page. Add a prefix pattern to number them sequentially across the document.
- Choose placement and stylePick a corner (top-left, top-right, bottom-left, bottom-right, center), size in points, margin from the edge, and colors. A live preview shows the QR on page 1 exactly as it will be placed.
- Generate and downloadPress Place QR Codes. The tool renders a QR code for every page from your pattern, places it at the chosen position on each page, and outputs a new PDF you can print or share.
What can the tool do?
| Feature | What it does | Default |
|---|---|---|
| URL pattern | Base URL with {page} and {n} placeholders. | https://example.com/doc/{page} |
| 9 placement anchors | Corners, edge mid-points and center. | Center |
| Size | 20–300 pt per side. | 60 pt |
| Margin | 0–100 pt from page edge. | 20 pt |
| Colors | Custom foreground and background. | Black on white |
| Label | Small text under the QR with {page} placeholder. | On |
| Border | Thin rectangle around the QR. | On |
| Quiet zone | Background pad for reliable scanning. | On |
| Live preview | Page 1 renders with the QR as placed. | Always on |
How do URL patterns work?
The pattern is a plain string with two placeholders that the tool replaces before encoding each QR:
{page}— the 1-based page number of the current page.{n}— a sequential index (usually the same as{page}).
Examples:
https://example.com/doc/{page}→ page 1 becomeshttps://example.com/doc/1, page 2 becomeshttps://example.com/doc/2, and so on.https://example.com/qr/{n}→ a simpler variant, useful when you want a short ID per page.https://example.com/verify?doc=123&page={page}→ query-string form, works with any pattern.tel:+1234567890→ not a pattern (no placeholder), so every page gets the same QR. The tool still places it on every page.
Where can I place the QR code?
The tool supports nine placement anchors — the classic three-by-three grid:
- Top-left, top-center, top-right: header placement, ideal for cover pages and headers.
- Mid-left, center, mid-right: the center anchor places the QR in the middle of the page — useful for verification stamps and for worksheets.
- Bottom-left, bottom-center, bottom-right: footer placement, ideal for footers on every page and for documents where the QR must not overlap content.
Every anchor respects the margin you set, so the QR never touches the page edge. The default size (60 pt) and margin (20 pt) work well for A4 and Letter — increase the size for small pages or for distance scanning.
When do you need QR codes on a PDF?
Certificates
Each certificate scans to a unique verification URL on the issuer's site.
Brochures
Each page scans to its own landing page — track what readers engage with.
Contracts
Every page links to its own audit trail or signature record.
Worksheets
Page-specific QRs point to answer keys, worked solutions or videos.
Tickets
Each ticket QR encodes a unique validation URL.
Inspections
Each inspection sheet scans to its checklist page online.
Does the tool upload my PDF to a server?
No. The document is read, annotated and rebuilt entirely in your browser with pdf.js, a pure-JavaScript QR encoder, and pdf-lib. Nothing is uploaded, and nothing is stored after you close the tab. That makes it safe for contracts, certificates, medical records and any confidential document.
- Local read. Every page is read in memory in your browser tab.
- Local encode. Every QR code is encoded in JavaScript in your browser — the URLs never leave your device.
- Local draw. pdf-lib draws the QR rectangles into the new PDF and hands it back as a download.
- No account needed. You can annotate PDFs without logging in. Read our privacy policy for details about the site.
Tips for scannable, clean QR codes
- Keep the size at 40 pt or larger. Below 40 pt a QR is hard to scan on a phone at typical reading distance.
- Use dark foreground, light background. Black on white is the most reliable combination. Colored QRs work if the foreground has enough contrast.
- Leave the quiet zone on. A white border around the QR is required by the QR spec — scanners use it to locate the code.
- Match the size to the scan distance. For a code that will be scanned from 30 cm, 40 pt is enough. For a code that will be scanned from 1 m (posters, signage), use 100 pt or more.
- Test scan one page first. Before printing the whole document, print page 1 and scan the QR with a phone.
- Keep the original PDF. The tool creates a new file — retain the source in case you want to regenerate with a different pattern or position.
Common problems and quick fixes
| Problem | Likely cause | Fix |
|---|---|---|
| QR won't scan | Too small, or the quiet zone is off. | Increase size to 60+ pt and turn the quiet zone on. |
| QR overlaps content | Wrong placement or margin too small. | Use a corner placement with margin ≥ 20 pt. |
| Pattern did not replace | Typo in the placeholder. | Use exactly {page} or {n} — no spaces. |
| Same URL on every page | The pattern has no placeholder. | Add {page} or {n} to the pattern. |
| Password-protected PDF | Encrypted PDF cannot be opened. | Remove the password with an unlocker first. |
| Colored QR won't scan | Too little contrast. | Use black on white, or a very dark foreground on a very light background. |
Related tools
Frequently asked questions
What does the PDF Dynamic QR Placement tool do?
Is the tool free?
Does it upload my PDF to a server?
What URL patterns are supported?
Are the QR codes scannable?
What is the difference between the placement options?
Can I add a small label next to the QR?
Does it change the page content or size?
Can the QR codes encode non-URL data?
How many pages can I annotate?
Does the output PDF work in all readers?
Does it work on mobile?
Ready to add QR codes to your PDF?
Batch place unique QR codes on every page — free, private, no signup.
Place QR codes now