Files

2.0 KiB

name, description
name description
pdf Export documents to PDF and visually verify the final page layout. Use when delivering an exported PDF or checking an existing PDF against formatting requirements or a supplied reference.

PDF export and visual review

Establish the expected layout

  • Identify the requested page size, orientation, typography, margins, alignment, and pagination where specified. If a template or previous document is the reference, open its relevant pages visually and compare the corresponding elements in the export. Follow the current request where it differs from the reference.

Export and inspect

  1. When an editable source is part of the deliverable, save it in the requested format, reopen it to confirm it loads correctly, and export the PDF directly from that version using the authoring application's PDF exporter. Use the supplied PDF directly for a review-only request.
  2. Render every page of the actual PDF to a fresh temporary directory. With Poppler, run pdftoppm -png -r 150 "$INPUT_PDF" "$OUTPUT_PREFIX". Use an equivalent renderer or a PDF viewer that exposes the page images to the model when Poppler is unavailable.
  3. Open every rendered page with an image-viewing tool that shows the image to the model. Inspect the pages at a readable scale and zoom or re-render details as needed. Use page counts and extracted text only as supplementary checks.
  4. Compare the result with the requested formatting and reference. Check typography, margins, alignment, spacing, headers, footers, and page numbers where applicable. Look for clipped or overlapping content, substituted fonts or missing glyphs, broken tables or lists, isolated headings or lines, and unintended blank pages.
  5. Fix layout defects in the editable source when available, re-export, and render and inspect all pages of the new PDF. Before handing it off as verified, confirm that the inspected file is the final deliverable and that it matches the source and the requested layout. If rendering or image inspection is blocked, state what you could verify and what remains unchecked.