Docs: PDF/A files at PDF 1.4 write long pages in points

A PDF/A file at PDF 1.4 has no UserUnit, so a page longer than 14,400 pt is written in points with or without longPagesInPoints. The param text, docs/mcp.md and the exporter comment now say that only PDF/A files at PDF 1.5 and later keep the UserUnit.
This commit is contained in:
dotCooCoo
2026-11-11 14:47:18 -08:00
parent dc98b59444
commit 7bd559cb1d
3 changed files with 9 additions and 6 deletions
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -199,8 +199,9 @@ fn writes_user_units(set: &PdfSettings) -> bool {
}
/// `long_pages_in_points` is on in a file without a standard. PDF/X files write long pages in
/// points anyway, and PDF/A files keep the `UserUnit`, which keeps their page boundaries within
/// 14,400 units (ISO 19005-2, 6.1.13).
/// points anyway, and PDF/A files from PDF 1.5 on keep the `UserUnit`, which keeps their page
/// boundaries within 14,400 units (ISO 19005-2, 6.1.13). A PDF/A file at PDF 1.4 has no
/// `UserUnit` and writes long pages in points either way.
fn long_pages_in_points(set: &PdfSettings) -> bool {
set.long_pages_in_points && set.standard == Standard::None
}
+4 -2
View File
@@ -878,8 +878,10 @@ keeps PDF 1.5's encryption (128-bit RC4). PDF/X files and PDF 1.3 and 1.4 files
that keep to the limit cut it to 200 in. `longPagesInPoints: true` (off by default; "Write pages longer than 200 in at
full size in points" in the Save PDF dialog's General section) writes such a page in points at every PDF version, without
a `UserUnit`, and a PDF 1.5 file stays PDF 1.5; the warning then says the page is written in points. The option applies
only to files without a standard: PDF/X files write such a page in points anyway, and PDF/A files keep the `UserUnit`,
which keeps their page boundaries within PDF/A-2's limit of 14,400 units (ISO 19005-2, 6.1.13). The dialog disables the
only to files without a standard: PDF/X files write such a page in points anyway, and PDF/A files at PDF 1.5 and later keep
the `UserUnit`, which keeps their page boundaries within PDF/A-2's limit of 14,400 units (ISO 19005-2, 6.1.13). A PDF/A
file at PDF 1.4 writes such a page in points, as other PDF 1.4 files do, so its page boundaries are longer than that
limit. The dialog disables the
checkbox when a standard is chosen. In PDF 1.3 and 1.4 files, PDF/X-1a and PDF/X-3 among them, a real number can
be at most 32,767, and whole numbers are written as integers: a page longer than 32,767 pt whose sides aren't whole
numbers of points fails the export with an error naming the page before the thumbnails are drawn and the transparency is