pdf-zine

pdf-zine is a skill for Claude Code from eins78/agent-skills. It costs 110 tokens per session (1,070 once invoked), scanned A, original, MIT.

A tool for rearranging PDF pages into a fold-and-print booklet, often called a zine. It places pages on A4 sheets so double-sided pages can be folded into an A5 booklet.

In plain words
What is it for?
Use it to create booklet PDFs from source PDFs, control cover-page order, and pass options to the booklet-imposition tool.
Why use it?
Ordinary PDF page order is not ready for booklet printing, so manual rearrangement is easy to get wrong. This provides a repeatable command-line conversion.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Part of the eins78-skills plugin — 15 skills shipped together

Good fit Use it to create booklet PDFs from source PDFs, control cover-page order, and pass options to the booklet-imposition tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eins78/agent-skills/pdf-zine
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eins78/agent-skills --skill pdf-zine
Clone the repo
git clone --depth 1 https://github.com/eins78/agent-skills

Made for: Claude Code.

Or install eins78-skills, the plugin that ships this one along with the rest of its 15 skills.

Its marketplace also offers this one on its own, as the plugin pdf-zine/plugin install pdf-zine after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf-zine

README.md
[![agentmods](https://agentmods.dev/badge/skills/eins78/agent-skills/pdf-zine/github.svg)](https://agentmods.dev/skills/eins78/agent-skills/pdf-zine)
Your own site
<a href="https://agentmods.dev/skills/eins78/agent-skills/pdf-zine"><img src="https://agentmods.dev/badge/skills/eins78/agent-skills/pdf-zine/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf-zine

Your own site · 80×15
<a href="https://agentmods.dev/skills/eins78/agent-skills/pdf-zine"><img src="https://agentmods.dev/badge/skills/eins78/agent-skills/pdf-zine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.01070
Opus 5 $0.00055 $0.00535
Sonnet 5 $0.00022 $0.00214
Haiku 4.5 $0.00011 $0.00107

Measured 12d ago against content hash 62e878cef4fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

pdf-zine scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://github.com/eins78/pdf2zine/raw/refs/heads/main/pdf2zine > ~/bin/pdf2zine
skills/pdf-zine/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pdf-zine

Turn a PDF into a fold-and-print booklet ("zine"): A4 sheets, double-sided (short-edge flip), fold in half for an A5 booklet. Wraps the pdf2zine CLI, which itself wraps bookletimposer and qpdf in Docker so there's nothing to compile. Prefer this over hand-rolled Ghostscript or pdfjam imposition scripts — one command does it.

Prerequisites

  • Docker running (e.g. Docker Desktop)

  • The pdf2zine script on $PATH:

    curl -fsSL https://github.com/eins78/pdf2zine/raw/refs/heads/main/pdf2zine > ~/bin/pdf2zine
    chmod +x ~/bin/pdf2zine
    

No Docker? See ${CLAUDE_SKILL_DIR}/references/bookletimposer-native.md for a native bookletimposer install.

Quick Reference

Flag Purpose
(none) Move page 1 to the end (cover-flip), force A4 output
--keep-cover Skip the cover-flip — impose pages in original order
--keep-format Let bookletimposer pick output size (skip the forced A4)
-- Pass remaining args through to bookletimposer

Input: one PDF. Output: <input>_booklet.pdf next to the input.

Common Recipes

Default booklet (cover-flip, force A4)

pdf2zine doc.pdf
# → doc_booklet.pdf

Use this when the InDesign export put the cover's back on page 1 (common pattern). The script moves page 1 to the end, then 2-up imposes onto A4.

Cover already in the right place

pdf2zine --keep-cover doc.pdf

Use when page 1 is the front cover and should stay first.

Don't force A4 (e.g. A4 input → A3 output)

pdf2zine --keep-format doc.pdf

bookletimposer will pick a paper size that fits 2-up without scaling.

Pass-through to bookletimposer

pdf2zine doc.pdf -- --output custom.pdf
pdf2zine -- -h                              # show bookletimposer help

How it works

  1. qpdf --pages doc.pdf 2-z,1 -- moved.pdf moves page 1 to the end (skipped with --keep-cover).
  2. bookletimposer --no-gui --booklet [--format=A4] moved.pdf out.pdf does the 2-up imposition.
  3. Output is written next to the input as <name>_booklet.pdf.

Read the full file on GitHub · 101 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 101 lines · 110 tokens per session scan A 62e878cef4fd

Subscribe to this mod's changes

pdf-zine is a skill published in the GitHub repository eins78/agent-skills (2 stars, last pushed yesterday), licensed MIT. It adds 110 tokens to every session and 1,070 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

add-pdf-report

Internal implementation skill invoked by /add-native for app-generated PDF report workflows using expo-print and, when present, expo-sharing.

microsoft/power-platform-skills · 30 tokens

add-pdf-viewer

Internal implementation skill invoked by /add-native for native PDF control workflows. Handles HTTPS and file URI PDF viewing with @microsoft/power-apps-native-pdf-viewer 0.2.9+.

microsoft/power-platform-skills · 47 tokens

compile-latex

Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides", "rebuild the PDF", "run latex", "render the tex", or asks why a .tex file isn't producing a PDF. Operates on Slides/.tex.

pedrohcgs/claude-code-my-workflow · 73 tokens

epd-parser

Extract GWP, life-cycle stages, certifications, and impact metrics from an EPD PDF. Use when given a declaration to parse; not to find or compare EPDs.

AlpacaLabsLLC/skills-for-architects · 40 tokens

product-spec-pdf-parser

Extract structured FF&E specs from PDF price books, fact sheets, or spec sheets into a schedule. Use for product PDFs; not web URLs or EPDs.

AlpacaLabsLLC/skills-for-architects · 39 tokens

pdf-processing

Inspect, extract, OCR, create, merge, split, reorder, rotate, annotate, fill, redact, compress, secure, and verify PDF documents while preserving source files and visual fidelity. Use when working with one or more .pdf files; converting documents to or from PDF; extracting text, tables, images, metadata, forms, or…

seb1n/awesome-ai-agent-skills · 105 tokens