Print labels at actual size
Check label page dimensions and use a calibration square to confirm physical print scale before a run.
Check that the PDF page measures the same as the label stock, then select that stock in the printer driver and set the viewer to Actual Size or 100%. Print the calibration copy first and measure both sides of its square with a ruler before using the same settings on the production labels. In the supplied PDFs the MediaBox measures 100 × 150 mm in both copies, while the square measures 50 mm in the original and 47.5 mm in the deliberately reduced copy, so the independent square measurement is what catches the scale error.
What to look for
Use this procedure when a label design opens at the expected aspect ratio but the printed marks fall short of the die cut, shift onto the next label or sit too close to an edge. A page preview can show a perfectly centered design while a print dialog applies automatic fitting. In that case the artwork still looks proportional and the error is easiest to spot by measuring a known distance between lines.
This walkthrough assumes one portrait label per PDF page and matching stock at the printer. A sheet with several labels needs a template that describes the whole sheet, including gutters and the starting position. With a roll printer, check how the driver names the selected stock and where it expects the top edge. If the only visible defect is an offset, check scale and offsets independently. A correctly sized square with the wrong position calls for an alignment check.

Why it happens
Before you begin
Download the calibration pair under Downloads. The source, label-100x150-calibration.pdf, has one page with a 100 × 150 mm MediaBox, a 50 mm outlined square, and a visible direction marker. Its square is drawn as vector geometry. The comparison file, label-simulated-95-percent.pdf, has the same page box and a deliberately reduced square. The reduced PDF simulates what a scale setting can do to the artwork. No paper entered a printer during this test.
Have the package or driver description for the intended stock and a ruler with millimeter markings when you run a print check. Use a spare label or a test sheet that matches the intended job. Choose a measurement edge before you print, such as the outside edge of each opposite line. The sample reports the geometry of the line path. A thick or fuzzy printed stroke makes a physical reading less precise, so use the same convention across test prints.
Check that the file you are examining is the final export from the design, especially if the file has appeared in a browser, a messaging app and a download folder. Give the calibration copy a recognizable name and keep the clean label in a separate file. A label with measurement marks is a setup aid. Keeping it separate also protects the copy you intend to pass to a client or load into a printer queue.
Steps
Read the PDF page box.
Open the document properties or inspect the page geometry with a PDF library. In PyMuPDF, open the file and read
document[0].mediabox.widthanddocument[0].mediabox.height. For the supplied source those values are approximately 283.465 and 425.197 points. Multiply each by25.4 / 72to express it in millimeters. Use the internal values for conversion and round only for display. The results should match the intended portrait stock. If width and height are reversed, establish whether the file has a saved rotation or was exported landscape before choosing a print orientation. Record the actual box dimensions, filename and orientation together.- If the page dimensions are unexpected, correct the source document and export a fresh label.
- Changing the display zoom will only change how much screen space the file uses.
- If the document carries a CropBox, compare it with the MediaBox and preview the actual printable content.
- A cropped viewport can hide the marks you expected to measure even when the physical page box has the right size.
Confirm a known distance inside the page.
Locate the outlined square and check its width and height. The test script reads the drawing rectangle via
page.get_drawings()and measures the geometry before rendering. In the source the measured sides are approximately 141.732 points, which converts to 50 mm. In the reduced comparison they convert to 47.5 mm even though the page box passes the first check. For a custom label, add a known-size square to a disposable calibration copy using the same export settings as the clean file. A pair of clearly defined endpoints can also work if you have limited empty area, but a square allows you to check each axis with the same artifact.- Put the mark where the printer can reproduce it.
- If a return address or barcode already occupies the center of the design, use a duplicate page and move or hide the production artwork in that calibration copy.
- Keep the same page size and export options.
- Select a line color that is easy to see on the chosen stock.
- The point is to have a simple object you can validate both in the PDF and on the finished sheet.
Set media, orientation and scale together.
In the print dialog choose the intended printer and select the stock that matches the file. Use the preview to check the top edge against the feed direction. Choose Actual Size or set the scale to 100%. Turn off options that automatically fit or shrink pages for this job. Look for a matching setting in the printer’s own panel, since the viewer and driver may show separate options. Check which settings remain selected after switching printer or media. The final preview should show all the marks you need, in the same relationship to the page edges as in the PDF.
- Treat a clipping warning as information about the printable area.
- Some combinations can clip art at the edge while keeping the intended scale.
- If the stock has room, move the artwork inward in the source design and export again.
- When edge art is required, confirm the intended printer and media can handle it.
- A fit option may avoid clipping but can also change every measurement on the label, including the marks used for calibration.
Run a single physical calibration copy.
Print the source sample on matching stock. Lay the sheet flat and measure across both axes of the square, using the same edge convention on the left and right and then on the top and bottom. Record the two readings and whether any lines clipped. Compare against 50 mm. A square close to 47.5 mm along both axes would resemble the reduced file. That observation points you back to the artwork geometry, viewer scale and driver options. If the horizontal and vertical changes differ, review media configuration and the printer’s own calibration before approving a batch.
- Mark which edge entered the printer first and where the square landed relative to the label.
- If you measure the correct dimensions and the mark is shifted, compare leading and side margins with the preview.
- Use a consistent physical reference, such as the actual die-cut edge.
- Recheck with a fresh test if you change the feed, offsets or stock.
Send the clean copy with the proven settings.
Keep a note of the driver, stock, orientation and scaling selected for your satisfactory test. Open the clean export and check its page size once more. Check the first production label before releasing a larger job. When sending the file to another person, include the physical stock dimensions and the scaling instruction in the handoff, and provide a clean calibration copy if their printer setup differs. A calibration on one queue only supports that specific setup. A new queue, roll or viewer is a reason to check again.
Check your result
For the digital check, compare the MediaBox and the square geometry from both saved files. The page boxes match. The square has different measurements in the two files, which is the visual consequence you can confirm in the rendered calibration comparison. The PDF size calculation uses points and yields the intended stock dimensions. The square check adds a separate piece of evidence that a general Read Properties step cannot supply.
For a physical acceptance check, keep the test label with your two readings, stock and driver settings. Check all relevant positions, including marks near the feed edge. If a barcode is part of your production design, verify its placement and use the recipient’s acceptance process for scanning. The square sample has no shipping barcode to validate.
| MediaBox in mm | Square in mm | |
|---|---|---|
| label-100x150-calibration.pdf | 100 × 150 | 50 × 50 |
| label-simulated-95-percent.pdf | 100 × 150 | 47.5 × 47.5 |
Common mistakes
Reading a zoom percentage as the output scale. Screen zoom only helps you inspect the drawing. Check the separate print scaling option after choosing the printer.
Selecting a familiar stock preset with the wrong size. Compare both dimensions on the stock package to the PDF properties. A roughly similar preview can still lead to scaling or clipping.
Measuring between different sides of the printed stroke. Use an equivalent edge on both ends and record which edges you chose. Check each axis on the same label.
Changing size to fix a shift. First measure both sides of the square. If the square is the correct size and the margin is wrong, adjust placement and keep the existing scale.
Limitations
The lab verified the PDF geometry and rendered the comparison from the sample files. A physical ruler check on the intended printer and stock is still to be done. Feed behavior, edge coverage, label adhesion and barcode scanning require separate checks on the actual print.
Test record
Tested on 2026-11-23 with PyMuPDF 2.1 under Python 3.14.4. The source and reduced comparison share the 100 × 150 mm MediaBox. The square measures 50 × 50 mm in the source and 47.5 × 47.5 mm in the reduced comparison. Measurements are digital.
The measurement record lists the local outputs and their SHA-256 digests.
Tested in
Questions
Why can the PDF report the right size while the square is too small?
The page box describes the sheet dimensions. The geometry of the artwork inside it can be changed independently, as the two downloadable files show.
Can I print the sample on ordinary paper first?
A test on ordinary paper can expose a scale setting if the media configuration reproduces the same size. Recheck on the intended stock before approving a run, because feed and driver options may change.
Which setting should I check after changing the printer?
Recheck stock, orientation and scaling in the actual print job. A different queue can load its own defaults even when the PDF viewer is unchanged.
What if the width is correct but the square lands too close to an edge?
Check the selected media and orientation, then measure the margin against the intended cut or feed edge. Investigate alignment while keeping the measured scale.