pdfcraft/crates
cyfung1031 b98505c810
M1: full saves are allocated at their exact size (#523)
`write_full` can't know the output size in advance, so its buffer grows by
doubling and the result kept up to as much again unused: 28 % for a 100 MB
save, 99 % for a 5 MB one. The result is often kept for as long as a document
is open. It becomes the working bytes after edits that need a full rewrite
(repaired files, security changes, redaction) through `write_incremental`, and
it backs Save As ▸ optimized and every new document from Create, Combine,
Extract and Split.

`shrink_to_fit` at the end drops the unused capacity. The bytes are the same.
On macOS the shrink happens in place (2 µs for 100 MB, the buffer doesn't
move), and full-save times are unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 12:18:59 -04:00
..
a11y Add image signatures with placement preview and resize controls (#335) 2026-10-08 16:36:26 -04:00
annot M5.7: keep natural image stamps upright on rotated pages (#473) 2026-10-09 09:21:31 -04:00
automation Fix #299: typed and drawn signatures stay upright on rotated pages (#562) 2026-10-09 11:54:07 -04:00
compare Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
content Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
cos M1: full saves are allocated at their exact size (#523) 2026-10-09 12:18:59 -04:00
create M10.2: Create PDF from multiple files, edited as pages in the Organize grid (#361) 2026-10-08 17:42:13 -04:00
crypt Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
edit Refs #347: encode the full WinAnsi 0x80-0x9F range (Š š Ž ž Œ œ Ÿ ...) (#546) 2026-10-09 10:45:28 -04:00
engine Fix #299: typed and drawn signatures stay upright on rotated pages (#562) 2026-10-09 11:54:07 -04:00
export Fix #526: keep text colour in Word, HTML and RTF export (#547) 2026-10-09 10:49:21 -04:00
filters Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
fonts Refs #347: encode the full WinAnsi 0x80-0x9F range (Š š Ž ž Œ œ Ÿ ...) (#546) 2026-10-09 10:45:28 -04:00
forms Run set-layer-visibility actions from links and push buttons (#292) 2026-10-08 11:27:10 -04:00
geom Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
js XFA: run FormCalc scripts (#301) 2026-10-08 13:06:33 -04:00
measure Measure: add distance, perimeter and area tools (#208) 2026-10-08 00:38:57 -04:00
model Phone photos follow EXIF orientation; image signatures stay upright on rotated pages (#434) (#485) 2026-10-09 09:14:55 -04:00
ocr Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
optimize M11: Optimize PDF and Reduce File Size run in the background with a progress bar (#370) 2026-10-08 18:46:34 -04:00
organize M5.7: keep natural image stamps upright on rotated pages (#473) 2026-10-09 09:21:31 -04:00
platform Platform: one save-staging helper for automation and the desktop app (#356) 2026-10-08 17:07:00 -04:00
preflight Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
print Security: print jobs, new digital IDs and the --control file no longer write through planted links (#338) 2026-10-08 16:04:48 -04:00
redact Fix #525 (item 4): phone pattern redacts international numbers whole (#543) 2026-10-09 10:43:11 -04:00
render Never crash: JBIG2 symbol dictionaries can't loop without end (#408) 2026-10-09 09:22:21 -04:00
sign sign: read the .p12 files Windows writes (BER, not DER) (#453) 2026-10-09 09:15:32 -04:00
ui-egui Fix #299: typed and drawn signatures stay upright on rotated pages (#562) 2026-10-09 11:54:07 -04:00
xfa XFA: run FormCalc scripts (#301) 2026-10-08 13:06:33 -04:00
xfdf FDF: replies and review status keep their parent comment (fixes #333) (#388) 2026-10-08 21:03:30 -04:00