Add print-to-PDF example to Chrome policies doc - #505
Conversation
Documents PrintingEnabled and PrintPdfAsImageDefault as the policies needed for reliable print-to-PDF via CDP/Playwright.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Recommends the extraction-friendly default and documents the tradeoff against image-based (true) output.
There was a problem hiding this comment.
Stale comment
Risk assessment: Very Low
Verdict: Risk unchanged. Previous approval stands.
Re-evaluated after the follow-up commit (
9ad54fe), which updates the same docs-only change:PrintPdfAsImageDefaultin the example is nowfalse, and the prose describes the vector vs. raster tradeoff.This PR still modifies a single Mintlify page (
browsers/chrome-policies.mdx, +37 / −0). It adds a Print to PDF subsection under existing common-use-case examples, with Python and TypeScriptbrowsers.create()snippets forPrintingEnabledandPrintPdfAsImageDefault.
- Codepaths / blast radius: Docs content only. No application code, APIs, CI, config, or infrastructure.
- Complexity: Small, localized addition that matches the surrounding example pattern.
- Operational / security impact: None. Examples document existing Chrome policy keys; they do not change runtime behavior.
- CODEOWNERS: No
CODEOWNERSfile in this repo, so code-owner review is not required.Risk has not increased since the prior Very Low assessment. No production logic change.
Sent by Cursor Automation: Assign PR reviewers
There was a problem hiding this comment.
Risk assessment: Very Low
Verdict: Risk unchanged. Previous approval stands.
Re-evaluated after the latest synchronize (5922bf3), which merges main into this branch. The merge only brings already-merged docs from #504 onto the branch; it does not add unique changes to this PR.
The three-dot diff is still a single Mintlify page (browsers/chrome-policies.mdx, +37 / −0). It adds a Print to PDF subsection under existing common-use-case examples, with Python and TypeScript browsers.create() snippets for PrintingEnabled and PrintPdfAsImageDefault.
- Codepaths / blast radius: Docs content only. No application code, APIs, CI, config, or infrastructure.
- Complexity: Small, localized addition that matches the surrounding example pattern.
- Operational / security impact: None. Examples document existing Chrome policy keys; they do not change runtime behavior.
- CODEOWNERS: No
CODEOWNERSfile in this repo, so code-owner review is not required.
Risk has not increased since the prior Very Low assessment. No production logic change. Not re-approving because an approval is already in place.
Sent by Cursor Automation: Assign PR reviewers


Summary
browsers/chrome-policies.mdx, showingPrintingEnabled+PrintPdfAsImageDefault.Verification
Live-tested against a real Kernel browser session:
chrome_policy: {"PrintingEnabled": true, "PrintPdfAsImageDefault": true}.chrome://policy(source: Platform, scope: Machine, level: Mandatory, no errors).page.pdf()againsthttps://example.comand confirmed a valid PDF was produced (%PDF-1.4header, 14,838 bytes).Test plan
Note
Low Risk
Documentation-only change with no runtime or API impact.
Overview
Adds a Print to PDF subsection under Common use cases in
browsers/chrome-policies.mdx.It documents that
PrintingEnabledmust remain enabled for CDPPage.printToPDFand Playwrightpage.pdf(), and explainsPrintPdfAsImageDefault(falsefor selectable text vstruefor rasterized pages). Includes matching Python and TypeScriptchrome_policyexamples.Reviewed by Cursor Bugbot for commit 5922bf3. Bugbot is set up for automated code reviews on this repo. Configure here.