From digital-printing
Rescale a PDF's page size — e.g. US Letter to A4, A4 to Letter, A5 to A4, or any custom dimensions. Use when the user wants to convert a PDF between paper sizes for digital printing. Triggers on phrases like "resize this PDF to A4", "convert to letter size", "change page size".
npx claudepluginhub danielrosehill/claude-code-plugins --plugin digital-printingThis skill uses the workspace's default tool permissions.
Rescale every page of a PDF to a different paper size while preserving content proportionally.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Share bugs, ideas, or general feedback.
Rescale every page of a PDF to a different paper size while preserving content proportionally.
A4, Letter, A5, Legal, A3, or custom WIDTHxHEIGHT in mm or pt.<input>-<size>.pdf next to the input.scale (default, fit content to new size, preserves aspect ratio) or pad (keep original content size, add margins to reach new size).Prefer ghostscript (gs) — it's pre-installed on most Linux systems and handles content scaling robustly. Fall back to pdfjam (from texlive-extra-utils) for simpler page-size remapping.
gs -o output.pdf \
-sDEVICE=pdfwrite \
-dPDFFitPage \
-dFIXEDMEDIA \
-dDEVICEWIDTHPOINTS=595 \
-dDEVICEHEIGHTPOINTS=842 \
input.pdf
Adjust DEVICEWIDTHPOINTS / DEVICEHEIGHTPOINTS for the target size.
pdfjam --paper a4paper --outfile output.pdf input.pdf
gs is installed (command -v gs). If not, install via sudo apt install ghostscript.pdfinfo output.pdf | grep "Page size" to confirm the new dimensions.Write the resized PDF and report the path. Do not delete the original.