mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 12:32:52 +00:00
pdfcraft-annot reads a page's 3D annotations and the model each shows: the /3DD stream, or the stream a /3DRef names (at most four deep, so a cycle ends), decoded within 256 MB and typed PRC or U3D by /Subtype. pdfcraft-engine exposes both on Document. The automation tool model3d_render picks a page's Nth 3D model, parses PRC with pdfcraft-prc, assembles and frames it with pdfcraft-prc-render from a chosen direction (default an isometric-style view, Z up), and returns the image as a PNG. U3D gives an error until a decoder lands. parity misc.3d-view moves to partial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9
40 lines
1.1 KiB
TOML
40 lines
1.1 KiB
TOML
[package]
|
|
name = "pdfcraft-automation"
|
|
description = "Agent control for PdfCraft: a headless tool set over the engine and an MCP server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
pdfcraft-engine = { workspace = true }
|
|
pdfcraft-cos = { workspace = true }
|
|
pdfcraft-render = { workspace = true }
|
|
pdfcraft-organize = { workspace = true }
|
|
pdfcraft-platform = { workspace = true }
|
|
pdfcraft-prc = { workspace = true }
|
|
pdfcraft-prc-render = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
sha2 = "0.11"
|
|
tempfile = "3.27"
|
|
base64 = { version = "0.23", optional = true }
|
|
|
|
|
|
[features]
|
|
default = ["mcp"]
|
|
# The MCP server module. Opt-in at run time either way; disable to leave it out of the build.
|
|
mcp = ["dep:base64"]
|
|
|
|
[dev-dependencies]
|
|
pdfcraft-fonts = { workspace = true }
|
|
png = "0.18"
|
|
flate2.workspace = true
|
|
pdfcraft-model = { workspace = true }
|
|
pdfcraft-xfa = { workspace = true }
|
|
image = { version = "0.25", default-features = false, features = ["jpeg"] }
|
|
|
|
[target.'cfg(target_os = "macos")'.dev-dependencies]
|
|
rustix = { version = "1", features = ["fs"] }
|