mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-29 04:28:20 -06:00
uses_device_colour found content streams by their dictionaries and split their bytes on whitespace. It skipped form XObjects with /Type /XObject and tiling patterns, missed `cs`/`CS` with a device space, inline images and operators before a delimiter, and took a `k` in a string, a comment, inline image data, a font program or an ICC profile for DeviceCMYK. A CMYK logo in a form therefore got an sRGB output intent and passed pdfa_verify. Content streams are now found by role (page /Contents, Type 3 glyphs, forms, appearance streams, tiling patterns) and read with pdfcraft_content::parse. Reading stops once all three device spaces are seen.
17 lines
431 B
TOML
17 lines
431 B
TOML
[package]
|
|
name = "pdfcraft-preflight"
|
|
description = "Standards: verify PDF/A (ISO 19005) conformance and convert documents to PDF/A-2b or 3b"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
pdfcraft-content = { workspace = true }
|
|
pdfcraft-cos = { workspace = true }
|
|
pdfcraft-model = { workspace = true }
|