/bidi2pdf:diagnose-pdffrom bidi2pdf
Diagnoses why a bidi2pdf-generated PDF is blank, unstyled, cut off, or misformatted. Provides a cost-ordered checklist using bidi2pdf diagnose.
Ships in bidi2pdf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Start with what Chrome reports, not with the page's code. Each check below names what to look at and the usual cause.
Does not: fix the page's design or CSS for you - it finds why the PDF differs from what was expected, then the fix belongs in the page or the render call.
error.code, error.hint and exit code;
never make the PDF or screenshot another way (Chrome's own print-to-PDF, another PDF engine).render-pdf skill's
preflight); run nothing that changes the system without the user's yes.--json result instead of inspecting the PDF with other
tools.bidi2pdf diagnose --url https://example.com/report --json --screenshot seen.png --pdf try.pdf
Use the same --remote-browser-url, cookies, headers and waits as the real render: a diagnosis of a
different request explains nothing. Read the JSON in this order.
network_failures - every stylesheet, font, image or script the browser could not load.
The most common cause of a blank or unstyled PDF: the address works from your machine but not
from the browser's. A browser in a container resolves names in its own network; localhost
there is the container itself. Use an address the browser can reach (for a Rails app, the asset
host the browser sees - bidi2pdf-rails' asset-host setting), then diagnose again.console - a script error can stop the page before it renders its content.page.url / navigation.final_url - a redirect to a login page answers 200 and prints
perfectly; the right cookies or headers are missing. (A 4xx/5xx answer fails the render with
NAVIGATION_NOT_FOUND or NAVIGATION_FAILED instead.)fonts.status - loading or entries in fonts.failed: the PDF falls back to another font
or shows boxes. Add a wait (--wait-network-idle), or fix the font URL (see 1).print_media - the page's @media print rules and @page rules. A print stylesheet that
hides content, fixed_or_sticky_elements repeated on every page, or a @page size that fights
--page-width. To print what the screen shows instead: --media screen.paged_js - detected: true but ready: false: Paged.js had not finished. Render with
--wait-window-loaded and let the page set window.loaded = true when Paged.js is done; without
that flag the wait runs into --default-timeout.--wait-network-idle, or a recipe with wait_for
(selector: of the last thing that appears).LANG/LANGUAGE on the browser's container (e.g. de_DE.UTF-8).hyphens: auto does nothing, or breaks anywhere): the browser needs Chrome's
hyphenation dictionaries installed for the page's lang. bidi2pdf's chromedriver image ships
them; a self-built image may not. The page needs a correct lang attribute.render ... --log-network-traffic --log-level debug logs every request with its timing.
--network-log-format pdf writes that log as its own PDF next to the output. Use it only when the
JSON above did not explain the problem; it is long.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dieter-medium/bidi2pdf --plugin bidi2pdf6 skills in this plugin
/page-screenshotsThis skill should be used when pages of a web site or app need screenshots for a design, UX or accessibility review - at phone and desktop width, in light and dark mode - or when one screenshot shows what Chrome rendered for a PDF. Uses bidi2pdf's browser (local or a shared chromedriver), not Playwright or Puppeteer./pdf-recipeThis skill should be used when a PDF needs more than one render call - waiting for an element, clicking something open, running a script, switching to screen view or a viewport first - or when a PDF must be checked (page count, text in it, no failed requests). Writes and validates a bidi2pdf recipe YAML without a browser, then runs it./pdf-specsOther plugins' skills for the same job