pdfcraft/crates
Dimitar 315a0cc458
Issue #432: global Units preference (mm, cm, in, pt), defaulting to the system region (#463)
* Issue #432: global Units preference (mm, cm, in, pt), defaulting to the system region

Preferences ▸ Documents and view ▸ Units sets the unit for page sizes
(Document Properties, Print), Header & Footer margins, the start of Set
Page Boxes and the Measure tool on pages without a viewport scale. On
first start it follows the system region: AppleMeasurementUnits on macOS,
Region ▸ Measurement system (iMeasure) on Windows, then LC_ALL /
LC_MEASUREMENT / LANG; inches for US, LR and MM, millimetres elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Issue #432: macOS falls back to AppleLocale when the measurement system was never set

AppleMeasurementUnits only exists in the global domain once someone changed
Measurement system in System Settings, and apps started from the Finder get no
LANG, so a German Mac with untouched settings landed on inches. The region of
AppleLocale (always present) decides next; AppleMeasurementUnits still wins.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01REz7wTfQgnopyvN9eQJJVu

* Issue #432: Units labels in the Arabic and Italian catalogs new on main

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01REz7wTfQgnopyvN9eQJJVu

* Issue #432: the Print dialog's PDF page size follows the Units preference

Main's new "PDF page: {w} × {h} in" label was always in inches. It now uses
the preferred unit like the sheet size next to it; each catalog keeps its
wording with the size in place of the inch values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Tristan von Kries <tristan@MacBook-Pro-von-Tristan.local>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-11 15:33:54 -04:00
..
a11y M9: stream structure-tree checks without a total-element cutoff (#926) 2026-10-11 12:31:35 -04:00
annot Comments: line breaks saved as CR show in comment text (#1113) 2026-10-11 14:46:05 -04:00
audit Add faux-redaction audit (paint-order and colour-aware, fail-closed) (#110) 2026-10-11 14:32:33 -04:00
automation feat: Scale down large signature images instead of rejecting (#1075) (#1124) 2026-10-11 15:10:03 -04:00
compare Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
content Fix #155: edit text across content stream pieces (#628) 2026-10-09 17:57:02 -04:00
cos Issue #995: unlock a restricted document with its permissions password (#1127) 2026-10-11 15:18:01 -04:00
create Security: fix 10 verified audit findings in redaction, signature validation, and untrusted-input handling (#1099) 2026-10-11 15:09:39 -04:00
crypt Issue #995: unlock a restricted document with its permissions password (#1127) 2026-10-11 15:18:01 -04:00
edit Add faux-redaction audit (paint-order and colour-aware, fail-closed) (#110) 2026-10-11 14:32:33 -04:00
engine Issue #432: global Units preference (mm, cm, in, pt), defaulting to the system region (#463) 2026-10-11 15:33:54 -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 Typed signatures draw Cyrillic and Greek letters (#846) (#963) 2026-10-11 13:20:11 -04:00
forms Forms: keep tiles and render unbaked field values during page re-render (#636) 2026-10-11 15:15:48 -04:00
geom M10: Enhance camera image finds the document's edges; rotate, crop or organize after Enhance page (part 3 of #1008) (#1027) 2026-10-11 12:31:23 -04:00
js M12: XFA script time limits start when the engine is ready (#1081) 2026-10-11 11:58:28 -04:00
measure Issue #432: global Units preference (mm, cm, in, pt), defaulting to the system region (#463) 2026-10-11 15:33:54 -04:00
model M2: pages with /UserUnit are shown at their size in points, as in Acrobat (#722) 2026-10-10 06:19:31 -04:00
ocr OCR: a scanned euro sign reads as €, not E (#796) 2026-10-10 15:08:04 -04:00
optimize M11: strip redundant ASCII stream wrappers during optimization (#989) 2026-10-11 13:21:20 -04:00
organize M10: stream Create Multiple sources without a fixed file-count cutoff (#978) 2026-10-11 13:20:58 -04:00
platform fix(theme): complete Linux System appearance tracking (#1017) 2026-10-11 15:23:49 -04:00
preflight PDF/A: no sRGB output intent for CMYK documents, and pdfa_verify checks the intent's colour space (#667) (#732) 2026-10-10 06:22:47 -04:00
print Print: architectural paper presets and PDF scale controls (#599 follow-up) (#1123) 2026-10-11 14:49:32 -04:00
redact Security: fix 10 verified audit findings in redaction, signature validation, and untrusted-input handling (#1099) 2026-10-11 15:09:39 -04:00
render Comments: line breaks saved as CR show in comment text (#1113) 2026-10-11 14:46:05 -04:00
sign Security: fix 10 verified audit findings in redaction, signature validation, and untrusted-input handling (#1099) 2026-10-11 15:09:39 -04:00
ui-egui Issue #432: global Units preference (mm, cm, in, pt), defaulting to the system region (#463) 2026-10-11 15:33:54 -04:00
xfa Security: fix 10 verified audit findings in redaction, signature validation, and untrusted-input handling (#1099) 2026-10-11 15:09:39 -04:00
xfdf Security: fix 10 verified audit findings in redaction, signature validation, and untrusted-input handling (#1099) 2026-10-11 15:09:39 -04:00