Free Skill
Print-to-PDF fidelity auditor
Compare a printable web page with its PDF and report page-specific omissions, clipping, blank pages and link failures.
Opens the Promptery Mac app and adds this Skill to your library. Needs Promptery Premium.
- Runs when you say
- “audit my print PDF”
- “compare page with PDF”
- “check web page export”
- Version
- 1Updated 16 November 2026
- What's new
- First release.
- Updates
- When a newer version comes out, Promptery shows it beside yours and you pick which to keep.
- Topics
- quality-assurance
- web-publishing
No Promptery yet?
It's a Mac app that keeps your prompts, contexts and Skills in one place, ready for any AI model. Premium is Was $49, now $29, paid once, and is the plan that imports Skills.
Print-to-PDF fidelity auditor
Use for a page the user owns or is authorized to test. Deliver an evidence-backed PDF audit, not a claim that a successful export is faithful. The source page and supplied PDF are read-only; a generated comparison PDF and all screenshots go in a temporary working directory. Never upload a private page or PDF to a third-party service.
Inputs and stop conditions
Ask for the source URL or local HTML file, the finished PDF or explicit permission to generate a temporary comparison PDF, the intended paper size and orientation, and what content should be printable. Ask for a known capture state when the page is personalized or dynamic (selected tab, expanded sections, viewport, date, language). A browser that can render the page and a PDF reader/rasterizer are required. If one is unavailable, say which checks cannot run rather than substituting an HTML-only review. Do not request credentials, bypass access controls, or crawl unrelated URLs. For a login-gated page, require an already authorized session and avoid storing its cookies in the report. For a remote page, do not execute downloads or follow links outside the agreed scope.
Capture a comparable source
- Record source URL/path, final URL after navigation, retrieval time, browser version, viewport, requested paper settings, and whether the PDF was supplied or generated. Use a fresh temporary directory outside the source project. On local HTML, use an isolated local server or an authorized
file:URL. If the page fails to load or a key asset fails, record the failure and stop the comparison; an error page is not the source. - Reach the specified state, wait for fonts, images and the relevant content to settle, and record the exact main-content headings, a few distinctive text anchors near the beginning/middle/end, and intended outbound links. Exclude navigation, ads, cookie banners and elements hidden by intentional print CSS; document the exclusion. Save a screen screenshot and a print-media screenshot at the same viewport when possible. The print screenshot shows CSS effects, not pagination.
- If the user supplied a PDF, keep it unchanged and record its file hash. If generation was authorized, use Chromium Playwright
page.pdf({path, format, landscape, printBackground, preferCSSPageSize})with recorded options after reaching the capture state.page.pdf()uses print CSS by default. Do not replace a supplied PDF with a newly generated one and call it the original export; optionally create a second PDF for diagnosis, labeled separately. If no compatible Chromium browser is available, mark generation blocked and inspect only a supplied PDF.
Compare content and geometry
- Open the PDF and record page count, dimensions, encryption, text-layer presence, and extraction errors. Render every page to an image at a legible scale (e.g. 150 dpi), not only the first page. Extract per-page text and word rectangles. A page with no extracted words but visible image content is image-only, not automatically blank: use OCR if available, mark its confidence, and verify against the rendered image. A page with neither extractable content nor visible meaningful content is a blank-page candidate; distinguish intentional separators.
- Compare the source anchors with PDF text in reading order. Normalize whitespace and common line-wrap differences, but do not treat reordered or missing sections as matches. Locate each missing anchor in the print DOM first: intentionally hidden print-only material is an expectation question; present in print DOM but absent in PDF is a likely export defect. For visible text near a page edge, inspect word rectangles and rendered pixels: text at an edge is a clipping candidate until the image confirms it is cut. Check clipped tables/images, tiny fonts, overlapping sections, unexpected page breaks and cut-off final content visually on every page. Report PDF page numbers starting at 1 and quote short anchors for reproduction. Do not claim pixel-perfect equivalence across browsers or fonts.
- Compare intended source links with PDF link annotations. For each meaningful link, record whether its label appears, whether the PDF has a clickable annotation, and the annotation destination. A visible label without an annotation is not proof of a broken URL; classify it as a missing clickable link only if clickability was expected. For a sampled external URL, an HTTP error is evidence only if reachable without authentication and the user authorized a network check. Never submit forms or follow potentially destructive links.
- Reproduce a suspected failure with the same input state and settings once when safe. If comparing a supplied PDF, do not overwrite it; determine whether the defect is in that artifact, reproduced by a local export, or cannot be reproduced. Keep observation, expected behavior (user requirement or source-page evidence), and hypothesis separate.
Practical tool path
- Chromium Playwright can capture the settled page and print PDF; check response status,
document.fonts.ready, relevant images'completestate and the user-specified content selector. Capture the print screenshot afterpage.emulateMedia({media: 'print'}). A print screenshot is only a CSS diagnostic; PDF pages are the pagination evidence. Keep the paper options explicit in the report. - PyMuPDF (
fitz) supportspage.get_text('words')for positioned words,page.get_pixmap(matrix=fitz.Matrix(2,2))for page images, andpage.get_links()for annotations. A PDF library's extracted text can miss glyphs or reading order; inspect the raster before calling anything absent or clipped. If the PDF is encrypted and no authorized password is available, stop PDF inspection and report blocked. - If tools cannot inspect every page, say exactly which pages and checks were completed. Never report an uninspected page as passing.
Deliverable and acceptance checks
Report: Setup (source, PDF identity/hash, capture state, time, browser, paper and print options); coverage (page count and which pages were rendered/inspected); findings (severity, page, expected with evidence, observed with text/rectangle/image or link annotation, reproduction status, likely investigation target); intent questions (print-hidden content or links with unknown expectations); limits (dynamic state, OCR, access, font variance); and recheck (the smallest action to verify each fix). Attach or reference page images and local artifact paths only when safe to share. Severity: blocker for lost essential content, major for substantial clipping/unreadable material, minor for cosmetic defects; do not elevate an unverified candidate to a confirmed failure.
A clean result means all PDF pages were rendered and reviewed, sampled anchor text was present, intended links were checked, and no observed defects were found. It does not certify accessibility, archival PDF/A, legal completeness, or perfect page equivalence.
Primary tool references: Playwright page.pdf() and page.emulateMedia() documentation; PyMuPDF Page.get_text, Page.get_pixmap, and Page.get_links documentation.