Export print profile
export_print_profileProduce a press-safe PDF by exporting with PDF 1.4 and outlined text. Use for professional printing where vector integrity and font embedding are required.
Instructions
Export a print-oriented PDF (vector, page area) of the whole document.
When to use: producing a press-safe PDF. For web assets use export_web_profile; for a plain
(non-print) PDF/PNG/SVG use export_document.
Key params: applies real print-specific Inkscape settings (PDF version pinned to 1.4 + text
outlined to paths) so output is press-safe and ALWAYS differs from a plain PDF export — even for
text-free docs, since the plain export defaults to PDF 1.5 while this pins 1.4 (header
%PDF-1.4, a deterministic byte difference). out_dir writes into a
caller-chosen dir — a relative out_dir anchors to the workspace ROOT and is sandbox-checked
(out-of-workspace rejected "path rejected: outside workspace"); name_prefix tags the file.
Return shape: ProfileExportResult — profile, the auditable applied_settings, and
one PDF in artifacts with a workspace_relative_path plus content-truth is_vector /
fonts_outlined (true vector when both hold).
Example: export_print_profile(doc_id, out_dir="dist/print")
Risk class: low (export to a sandbox-checked dir; no original overwrite).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| out_dir | No | ||
| name_prefix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| profile | Yes | ||
| artifacts | Yes | ||
| applied_settings | Yes |