mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-31 21:56:50 -06:00
A PDF/X-4 export (PDF 1.6) of a page with a placed PDF 1.7 (VectorCraft's
default, and most tools') failed at the very end with
designcraft-cli: PDF writer error: Pdf(PdfDocument(PdfDocumentRepr { .. }), VersionMismatch(Pdf17), None)
krilla refuses to embed a PDF newer than the file it writes. PDF 1.7 changed
nothing in how a page draws, so a 1.7 file now goes in as 1.6 (its header
relabelled, as qpdf --force-version=1.6 does) with a warning. A PDF 2.0
file, or one whose catalog declares 1.7, fails the export with a message
naming it. hayro-syntax moves from dev-dependencies to dependencies (krilla
already builds it) because the check names its PdfVersion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
963 B
TOML
30 lines
963 B
TOML
[package]
|
|
name = "designcraft-pdf"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "DesignCraft PDF export (krilla): real text with embedded font subsets, CMYK/spot colour, bleed and printer's marks"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
designcraft-geom = { workspace = true }
|
|
designcraft-color = { workspace = true }
|
|
designcraft-doc = { workspace = true }
|
|
designcraft-fonts = { workspace = true }
|
|
designcraft-compose = { workspace = true }
|
|
krilla = { workspace = true }
|
|
krilla-svg = { workspace = true }
|
|
designcraft-images = { workspace = true }
|
|
image = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
# The placed-PDF version check names hayro's PdfVersion (krilla::pdf::Pdf::version returns it).
|
|
hayro-syntax = "0.7.2"
|
|
|
|
[dev-dependencies]
|
|
hayro-interpret = { version = "0.7.0", default-features = false, features = ["embed-fonts"] }
|
|
hayro-cmap = "0.1"
|
|
kurbo = { workspace = true }
|