100 Commits
Author SHA1 Message Date
Dylan M. Taylor 88f5a00e38 test(images): fit 1-component progressive JPEG test under 512 MiB decoder budget (#2998)
* test(images): fit 1-component progressive JPEG test under 512 MiB decoder budget

* test(render): update reduced JPEG peak estimate to 16 B/px for craft_jpeg
2026-11-18 23:20:04 -05:00
Dylan M. Taylor a8f6be842e cutover: use craft_jpeg::decode_reduced (#2991) 2026-11-18 19:08:41 -05:00
Dylan M. Taylor a73e3def53 Merge pull request #2550 from pepen11/up/psd-resolution
Place: a Photoshop file comes in at its own resolution
2026-11-18 18:02:40 -05:00
Dylan M. Taylor 12fe81ca01 images: cut over EPS bounding_box and is_eps to craft-ps (#2972) 2026-11-18 16:30:59 -05:00
Dylan M. Taylor 77de9c4f5f Place: reconcile PSD resolution with shared parser
Preserve Josef Mlčůch’s PSD placement work and tests while adapting resource lookup to the current shared zero-copy HeadView and ResolutionInfo. Keep current main decoding and sanity limits.
2026-11-18 15:27:36 -05:00
Dylan M. Taylor 424b54dc0b docs: prefer shared Craft libraries for reusable features 2026-11-16 06:28:38 -05:00
Dylan M. Taylor 11ad84fd69 Merge pull request #2857 from storytold/fix/epub-layer-guide-default
fix(ci): initialize guide lock in EPUB layer fixture
2026-11-15 19:40:07 -05:00
Dylan M. Taylor 0d742e07d6 test(epub): initialize guide lock in hidden layer fixture 2026-11-15 19:09:44 -05:00
Dylan M. Taylor 278aba4a14 Merge pull request #1482 from Hamza0101/test/cli-argument-surface
cli: pin the argument surface, and fix the argument bugs pinning it found (photocraft#7071)
2026-11-15 18:49:03 -05:00
Dylan M. Taylor b949f0fd2b Merge pull request #1502 from midasdf/jp/kinsoku-push-pull
Compose: apply 禁則 push-in/push-out priorities (JIS X 4051)
2026-11-15 18:47:30 -05:00
Dylan M. Taylor 4828d96ba2 Merge pull request #1516 from moppeeer/layer-lock-guides
Layer Options: Lock Guides, as InDesign's (and IDML's LockGuides)
2026-11-15 18:22:18 -05:00
Dylan M. Taylor 497b541b11 Merge pull request #2840 from storytold/extract/shared-base64-encode
Reuse shared Base64 encoding for HTML and serialization
2026-11-15 15:20:45 -05:00
Dylan M. Taylor 3ddc3053cf Reuse shared Base64 encoding for HTML and serialization 2026-11-15 10:30:55 -05:00
Dylan M. Taylor d5f82c2143 links: allow only web and mail URLs (#2809)
Hyperlinks and buttons accepted any scheme and passed it to the PDF exporter, so an imported file could emit file:, javascript: or UNC links that a recipient's viewer may follow. Add a shared http/https/mailto check at both command entry points and use the same check at export.
2026-11-14 17:31:42 -05:00
Dylan M. Taylor abac0a9bce MCP: cap one request line at 4 MiB (#2803)
* MCP: cap one request line at 4 MiB

The stdio server read newline-delimited requests with read_until into a
growing Vec, so a client that never sends a newline could grow it without
bound. One line now stops at 4 MiB, answers with an invalid-request error and
drops the rest of the line, then keeps serving the next request.

* mcp: only discard the remainder of a line that was actually cut

* mcp: serialize the too-long reply as JSON bytes

* mcp: format the too-long-line reply

* mcp: cover the line-cap discard and EOF paths
2026-11-14 15:42:07 -05:00
Dylan M. Taylor f5087eae96 PDF: allow only web and mail link schemes (#2804)
* PDF: allow only web and mail link schemes

Hyperlink and button URLs were written into PDF link annotations whatever
their scheme, so a document could carry javascript:, data:, file: or a custom
scheme into a reader. Only http, https, mailto and ftp targets are written
now; other strings are left out of the PDF.

* pdf: move the link-scheme test below the items it tests
2026-11-14 15:21:20 -05:00
Dylan M. Taylor 2ca0af77e3 Merge pull request #2793 from storytold/codex/sonar-pinned-fonts
ci: provision pinned fonts for Sonar coverage
2026-11-14 09:18:55 -05:00
Dylan M. Taylor a3b06557a7 ci: provision pinned fonts for coverage tests 2026-11-14 14:03:05 +00:00
Dylan M. Taylor 7107a64d6c Merge pull request #2766 from storytold/codex/designcraft-craftlibs-clean
Cut over document formats and codecs to craft-libs (#778)
2026-11-13 22:36:04 -05:00
Dylan M. Taylor 614feb8607 Merge remote-tracking branch 'origin/main' into codex/designcraft-craftlibs-clean 2026-11-14 03:36:00 +00:00
Dylan M. Taylor 382fc27a5b fix(idml,images,pptx,textimport): update adapters and tests for craft-libs cutover 2026-11-14 03:35:09 +00:00
Dylan M. Taylor 32274e843a Merge codex/designcraft-craft-libs into origin/main: cut over document formats and codecs to craft-libs 2026-11-14 02:13:28 +00:00
Dylan M. Taylor 77991abe6f fix(file): preserve legacy JSON on INDD paths 2026-11-14 00:40:59 +00:00
Dylan M. Taylor b681b10733 Pin DesignCraft shared codecs to merged fixes 2026-11-13 23:53:29 +00:00
Dylan M. Taylor fe9498cd5f Merge branch 'codex/designcraft-craft-libs' of https://github.com/storytold/designcraft into codex/designcraft-craft-libs
# Conflicts:
#	Cargo.lock
2026-11-13 21:10:04 +00:00
Dylan M. Taylor 1284edfa3b Pin shared CSV codec to merge commit 2026-11-13 21:08:18 +00:00
Dylan M. Taylor 59db0b67a7 Use shared IDML transparency writer 2026-11-13 09:43:29 -05:00
Dylan M. Taylor b409bccb0f Use shared IDML effect setting writers 2026-11-13 09:40:28 -05:00
Dylan M. Taylor 703ffed779 Use shared IDML text path writer 2026-11-13 09:37:36 -05:00
Dylan M. Taylor dab41a4f60 Use shared IDML hyperlink destination writer 2026-11-13 09:35:55 -05:00
Dylan M. Taylor 4fbe39af99 Use shared IDML index parser 2026-11-13 09:33:26 -05:00
Dylan M. Taylor 6cea56ce01 Remove app-local IDML topic ID helper 2026-11-13 09:30:20 -05:00
Dylan M. Taylor 6bc26299fa Use shared IDML anchored setting writer 2026-11-13 09:30:04 -05:00
Dylan M. Taylor 1cb0c04143 Use shared IDML index writer 2026-11-13 09:27:22 -05:00
Dylan M. Taylor a9c4253e57 Use shared IDML page reference writer 2026-11-13 09:23:32 -05:00
Dylan M. Taylor c74cf007d0 Use shared cell and table style decorations 2026-11-13 09:13:02 -05:00
Dylan M. Taylor 61f6a83de5 Use shared IDML object style values 2026-11-13 09:10:17 -05:00
Dylan M. Taylor 90f6ddba6e Use shared IDML graphic MIME fallback 2026-11-13 09:07:49 -05:00
Dylan M. Taylor c94a29204d Use shared IDML graphic MIME fallback 2026-11-13 09:07:12 -05:00
Dylan M. Taylor 6a980c01c2 Pin IDML API after shared main rebase 2026-11-13 09:06:02 -05:00
Dylan M. Taylor 41bbd27a40 Use shared placed graphic metadata 2026-11-13 09:04:34 -05:00
Dylan M. Taylor 611fe571da Use shared IDML anchored object values 2026-11-13 09:00:48 -05:00
Dylan M. Taylor 7f2ac33275 Use shared IDML frame fitting values 2026-11-13 08:58:46 -05:00
Dylan M. Taylor a92db95301 Delegate IDML object style merging to craft-idml 2026-11-13 08:56:24 -05:00
Dylan M. Taylor 75eeeca16f Use shared IDML table style values 2026-11-13 08:50:49 -05:00
Dylan M. Taylor 862c052c2f Use shared IDML cell style values 2026-11-13 08:49:14 -05:00
Dylan M. Taylor 9ea7beb6f3 Format IDML cross-reference mapper 2026-11-13 08:47:15 -05:00
Dylan M. Taylor ed0543639a Write IDML cross-reference format through craft-idml 2026-11-13 08:47:03 -05:00
Dylan M. Taylor b782bdde6d Read IDML conditions and lists from shared models 2026-11-13 08:44:55 -05:00
Dylan M. Taylor b45c58f2e3 Use shared IDML cross-reference and EPUB models 2026-11-13 08:43:04 -05:00
Dylan M. Taylor 5b524b5554 Read IDML text variables through shared model 2026-11-13 08:39:54 -05:00
Dylan M. Taylor eeb085fb63 Read IDML table of contents styles through shared model 2026-11-13 08:37:27 -05:00
Dylan M. Taylor d939af608a Use shared writer for IDML footnote preferences 2026-11-13 08:35:11 -05:00
Dylan M. Taylor 54a4b1ceec Read footnote preferences through shared IDML model 2026-11-13 08:32:57 -05:00
Dylan M. Taylor c0867e86dd Use shared preference and range accessors 2026-11-13 08:31:08 -05:00
Dylan M. Taylor 14c0ebd166 Use typed IDML range style accessor 2026-11-13 08:30:00 -05:00
Dylan M. Taylor c47dff9b62 Use shared IDML model for preference output 2026-11-13 08:27:49 -05:00
Dylan M. Taylor 5d1b5ccb17 Read document preferences through shared IDML model 2026-11-13 08:24:20 -05:00
Dylan M. Taylor b373afcf7c chore: repin native format to merged shared codec 2026-11-13 13:22:48 +00:00
Dylan M. Taylor fd1d1992f7 Use shared writer for CJK paragraph properties 2026-11-13 08:22:10 -05:00
Dylan M. Taylor 33f37b3e8f chore: repin native format to merged shared codec 2026-11-13 13:20:17 +00:00
Dylan M. Taylor 9d218d235c Use shared IDML writers for paragraph list and span settings 2026-11-13 08:20:00 -05:00
Dylan M. Taylor 1942a99634 Read custom kenten values through shared IDML model 2026-11-13 08:16:49 -05:00
Dylan M. Taylor b820166872 Read paragraph list and span settings through shared model 2026-11-13 08:15:00 -05:00
Dylan M. Taylor 1a7a6e3e4b Read CJK paragraph settings through shared IDML model 2026-11-13 08:12:23 -05:00
Dylan M. Taylor 2a0551b73a Read paragraph box values through shared IDML model 2026-11-13 08:10:32 -05:00
Dylan M. Taylor b46323ffda Read special character properties through shared IDML model 2026-11-13 08:05:07 -05:00
Dylan M. Taylor c91887f49e Read Ruby properties through shared IDML model 2026-11-13 08:02:41 -05:00
Dylan M. Taylor e9fe18a0f6 Read paragraph alignment and flow through shared model 2026-11-13 07:59:52 -05:00
Dylan M. Taylor 22de685d98 Read character appearance through shared IDML model 2026-11-13 07:57:17 -05:00
Dylan M. Taylor 36db87ba20 Read character typography through shared IDML model 2026-11-13 07:55:42 -05:00
Dylan M. Taylor fc66be4021 Write paragraph flow through shared IDML model 2026-11-13 07:54:00 -05:00
Dylan M. Taylor 9bd0c4f0e0 Write paragraph alignment through shared IDML model 2026-11-13 07:51:20 -05:00
Dylan M. Taylor d91fa12aa7 Write paragraph box formatting through shared IDML model 2026-11-13 07:49:05 -05:00
Dylan M. Taylor f4551ac6f3 Write paragraph list settings through shared IDML model 2026-11-13 07:45:19 -05:00
Dylan M. Taylor fe5c1cd186 Write tab stop lists through shared IDML model 2026-11-13 07:42:07 -05:00
Dylan M. Taylor 5ff39f408f Write nested style lists through shared IDML model 2026-11-13 07:40:50 -05:00
Dylan M. Taylor d98d58eec8 Write text wrap preferences through shared IDML model 2026-11-13 07:39:00 -05:00
Dylan M. Taylor cb4295cd5a Write text frame preferences through shared IDML model 2026-11-13 07:37:24 -05:00
Dylan M. Taylor 3d8ddc5978 Use shared codec for placed graphic options 2026-11-13 07:32:50 -05:00
Dylan M. Taylor e61f7baf54 Read IDML clipping paths through shared model 2026-11-13 07:26:47 -05:00
Dylan M. Taylor 6474733d7c Map paragraph list values from craft-idml 2026-11-13 07:22:14 -05:00
Dylan M. Taylor 3dc8c11162 Read nested IDML styles through shared model 2026-11-13 07:19:59 -05:00
Dylan M. Taylor a928e8805c Read OpenType attributes through shared IDML model 2026-11-13 07:18:28 -05:00
Dylan M. Taylor 36520cce34 Map shared IDML CJK character values 2026-11-13 07:16:31 -05:00
Dylan M. Taylor e9c55ca75e Use shared IDML ACE codes in text import 2026-11-13 07:14:07 -05:00
Dylan M. Taylor 192d892318 Parse mojikumi rows with shared IDML model 2026-11-13 07:12:50 -05:00
Dylan M. Taylor fdbc815f3b Read IDML tab stops through shared model 2026-11-13 07:11:19 -05:00
Dylan M. Taylor d6f0ec054b Use shared codec for EPUB style tags 2026-11-13 07:09:57 -05:00
Dylan M. Taylor 320ac38ff2 Delegate IDML style name codec to craft-idml 2026-11-13 07:08:05 -05:00
Dylan M. Taylor 511187946b Use shared writer for IDML style groups 2026-11-13 07:07:00 -05:00
Dylan M. Taylor 75d1b844f3 Read table cells through shared IDML model 2026-11-13 07:02:41 -05:00
Dylan M. Taylor aad973279a Use shared IDML text frame preferences model 2026-11-13 07:00:32 -05:00
Dylan M. Taylor 4c5d990a07 Use shared IDML fill values for import 2026-11-13 06:56:46 -05:00
Dylan M. Taylor 69ebd3e7a1 Use shared IDML stroke values for import 2026-11-13 06:54:43 -05:00
Dylan M. Taylor b8f5fcc2e2 Use shared IDML transparency settings model 2026-11-13 06:51:28 -05:00
Dylan M. Taylor ee2d488089 Delegate IDML XMP packet writing to craft-idml 2026-11-13 06:47:42 -05:00
Dylan M. Taylor adfb529508 Delegate IDML designmap root grammar to craft-idml 2026-11-13 06:46:12 -05:00
Dylan M. Taylor 3b81561a73 Delegate Fonts.xml writing to craft-idml 2026-11-13 06:43:31 -05:00
Dylan M. Taylor acf2538612 Delegate Graphic.xml writing to craft-idml 2026-11-13 06:40:28 -05:00