Skip to content

Commit a12fe8f

Browse files
mtlcl410claudeechelon
authored
M4: custom document properties through the engine and the tools (#2076)
* M4: custom document properties through the engine and the tools (#organize.custom-properties) /Info entries beyond the ones the spec names are custom properties: organize lists them (custom_info) and set_info accepts any such name after Acrobat's checks (no standard name, no empty name, no spaces, delimiters, / or #, at most 127 bytes); inspection lists them too (DocInfo::custom); doc_info reports them under custom and doc_set_info sets or clears them. The Custom tab in Document Properties and the XMP mirror stay planned. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz * M4: custom document properties list the same before and after an edit Review follow-up. The open-time reader (render/inspect.rs) now uses the engine's rule (pdfcraft_organize::custom_info, trimmed, empty values dropped): text strings only, NUL/whitespace trimmed, empty values left out, and the 256 cap counting listed entries. Before, it also listed name values (`/Dept /RnD`) and capped before filtering, so the list could change after the first unrelated edit. An automation test opens a file with a name value, blank, NUL-padded, empty and numeric entries and checks doc_info's custom list is the same before and after setting the Title. Drops the ROADMAP.md log line, which conflicted with main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz * M4: custom properties drop NUL/whitespace padding in one pass, before the cap Review follow-up. custom_info now trims NULs and whitespace in any mix (" \0Lab\0 " is "Lab"), leaves out values that are only padding, and does both before taking 256, so blank entries can't crowd real ones out. It is the one rule: the engine uses it as it is, and the open-time reader trims the same way. Tests: 300 blank entries before a real one, and mixed padding, in organize and through doc_info. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>
1 parent ecffce6 commit a12fe8f

9 files changed

Lines changed: 228 additions & 5 deletions

File tree

‎apps/pdfcraft-cli/src/main.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ fn info(args: &[String]) -> Result<(), CliError> {
329329
"bookmarks": info.outline.len(), "annotations": info.annotations.len(), "fields": info.fields.len(),
330330
"links": info.links.len(), "layers": info.layers.len(), "attachments": info.attachments.len(),
331331
"transitions": info.transitions.len(),
332+
"custom_properties": info.custom.len(),
332333
"page_labels": info.pages.iter().take(8).map(|p| p.label.clone()).collect::<Vec<_>>(),
333334
"warnings": info.warnings,
334335
});

‎crates/automation/src/lib.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,6 +2401,9 @@ fn info(d: &Document) -> Value {
24012401
"pdf_version": i.pdf_version,
24022402
"file_size": i.file_size,
24032403
"title": i.title, "author": i.author, "subject": i.subject, "keywords": i.keywords,
2404+
// Custom document properties (Document Properties ▸ Custom): /Info entries beyond the
2405+
// ones the spec names, set and cleared with doc_set_info.
2406+
"custom": i.custom.iter().map(|(name, value)| json!({ "name": name, "value": value })).collect::<Vec<_>>(),
24042407
"creator": i.creator, "producer": i.producer,
24052408
"tagged": i.tagged,
24062409
"has_javascript": i.has_javascript,

‎crates/automation/src/tools.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn tools() -> Vec<ToolDef> {
156156
}),
157157
&["doc"],
158158
)),
159-
t("doc_set_info", "Set document metadata", "Set a document information entry such as Title, Author, Subject or Keywords; an empty value removes it. When the file has XMP metadata, the matching XMP property (dc:title, dc:creator, dc:description, pdf:Keywords, xmp:CreatorTool, pdf:Producer) is changed too, so viewers that read XMP first show the new value. Undoable.")
159+
t("doc_set_info", "Set document metadata", "Set a document information entry such as Title, Author, Subject or Keywords, or a custom property under any other name (no spaces, delimiters, / or #; at most 127 bytes; doc_info lists them under custom); an empty value removes it. When the file has XMP metadata, the matching XMP property (dc:title, dc:creator, dc:description, pdf:Keywords, xmp:CreatorTool, pdf:Producer) is changed too, so viewers that read XMP first show the new value. Undoable.")
160160
.with(schema(json!({ "doc": doc(), "key": { "type": "string" }, "value": { "type": "string" } }), &["doc", "key", "value"])),
161161
t("page_render", "Render a page", "Render one page to a PNG image (default 96 dpi, at most 600).")
162162
.ro()

‎crates/automation/tests/automation.rs‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,74 @@ fn saving_a_repaired_file_puts_the_repair_on_disk() {
238238
assert_eq!(info["pages"].as_array().unwrap().len(), 2);
239239
}
240240

241+
/// Custom document properties through the tools: set and cleared with doc_set_info under any
242+
/// name the spec does not use, listed by doc_info apart from the standard entries, bad names
243+
/// refused without a change.
244+
#[test]
245+
fn custom_document_properties_are_set_listed_and_cleared_through_the_tools() {
246+
let dir = workdir("custom-info");
247+
std::fs::write(dir.join("a.pdf"), fixture(1)).unwrap();
248+
let mut a = auto(&dir);
249+
let doc = ok(&mut a, "doc_open", json!({ "path": "a.pdf" }))["doc"].as_u64().unwrap();
250+
ok(&mut a, "doc_set_info", json!({ "doc": doc, "key": "Title", "value": "Report" }));
251+
ok(&mut a, "doc_set_info", json!({ "doc": doc, "key": "Project", "value": "Apollo" }));
252+
ok(&mut a, "doc_set_info", json!({ "doc": doc, "key": "Revision", "value": "7" }));
253+
let info = ok(&mut a, "doc_info", json!({ "doc": doc }));
254+
assert_eq!(info["title"], "Report");
255+
let mut custom: Vec<(String, String)> =
256+
info["custom"].as_array().unwrap().iter().map(|c| (c["name"].as_str().unwrap().into(), c["value"].as_str().unwrap().into())).collect();
257+
custom.sort();
258+
assert_eq!(custom, [("Project".to_string(), "Apollo".to_string()), ("Revision".to_string(), "7".to_string())], "{}", info["custom"]);
259+
assert!(a.call("doc_set_info", &json!({ "doc": doc, "key": "Bad Name", "value": "x" })).is_err(), "a name with a space is refused");
260+
assert!(a.call("doc_set_info", &json!({ "doc": doc, "key": "", "value": "x" })).is_err());
261+
ok(&mut a, "doc_set_info", json!({ "doc": doc, "key": "Project", "value": "" }));
262+
let info = ok(&mut a, "doc_info", json!({ "doc": doc }));
263+
assert_eq!(info["custom"].as_array().unwrap().len(), 1, "{}", info["custom"]);
264+
assert_eq!(info["custom"][0]["name"], "Revision");
265+
ok(&mut a, "doc_save", json!({ "doc": doc, "path": "out/custom.pdf" }));
266+
let mut b = auto(&dir);
267+
let re = ok(&mut b, "doc_open", json!({ "path": "out/custom.pdf" }))["doc"].as_u64().unwrap();
268+
let info = ok(&mut b, "doc_info", json!({ "doc": re }));
269+
assert_eq!(info["custom"][0]["value"], "7", "{}", info["custom"]);
270+
}
271+
272+
/// The custom list `doc_info` shows when a file opens is the one it shows after an unrelated
273+
/// edit: a name value, a blank or NUL-padded string and a number are judged the same way by the
274+
/// open-time reader and by the engine's refresh.
275+
#[test]
276+
fn custom_document_properties_do_not_change_after_an_unrelated_edit() {
277+
let dir = workdir("custom-info-stable");
278+
let objs = [
279+
"<< /Type /Catalog /Pages 2 0 R >>",
280+
"<< /Type /Pages /Kids [3 0 R] /Count 1 >>",
281+
"<< /Type /Page /Parent 2 0 R /MediaBox [0 0 200 200] >>",
282+
"<< /Producer (Test) /Project (Apollo) /Dept /RnD /Blank ( ) /Padded (Lab\\000\\000) /Revision 7 /Empty () /Mixed ( \\000Lab\\000 ) /Pad ( \\000 ) >>",
283+
];
284+
let mut pdf = b"%PDF-1.7\n".to_vec();
285+
let mut offsets = Vec::new();
286+
for (i, o) in objs.iter().enumerate() {
287+
offsets.push(pdf.len());
288+
pdf.extend_from_slice(format!("{} 0 obj\n{o}\nendobj\n", i + 1).as_bytes());
289+
}
290+
let xref = pdf.len();
291+
pdf.extend_from_slice(format!("xref\n0 {}\n0000000000 65535 f \n", objs.len() + 1).as_bytes());
292+
for o in offsets {
293+
pdf.extend_from_slice(format!("{o:010} 00000 n \n").as_bytes());
294+
}
295+
pdf.extend_from_slice(format!("trailer\n<< /Size {} /Root 1 0 R /Info 4 0 R >>\nstartxref\n{xref}\n%%EOF\n", objs.len() + 1).as_bytes());
296+
std::fs::write(dir.join("custom.pdf"), pdf).unwrap();
297+
let mut a = auto(&dir);
298+
let doc = ok(&mut a, "doc_open", json!({ "path": "custom.pdf" }))["doc"].as_u64().unwrap();
299+
let opened = ok(&mut a, "doc_info", json!({ "doc": doc }))["custom"].clone();
300+
let names: Vec<&str> = opened.as_array().unwrap().iter().map(|c| c["name"].as_str().unwrap()).collect();
301+
assert_eq!(names, ["Project", "Padded", "Mixed"], "{opened}");
302+
assert_eq!(opened[1]["value"], "Lab", "{opened}");
303+
assert_eq!(opened[2]["value"], "Lab", "{opened}");
304+
ok(&mut a, "doc_set_info", json!({ "doc": doc, "key": "Title", "value": "Report" }));
305+
let edited = ok(&mut a, "doc_info", json!({ "doc": doc }))["custom"].clone();
306+
assert_eq!(edited, opened);
307+
}
308+
241309
#[test]
242310
fn autotag_preview_proposes_text_without_changing_the_pdf() {
243311
let dir = workdir("autotag-preview");

‎crates/engine/src/lib.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,11 @@ impl Document {
831831
self.editor.as_ref().and_then(|e| pdfcraft_organize::info(&e.cos, key))
832832
}
833833

834+
/// The custom document properties as they are now (name, text), Document Properties ▸ Custom.
835+
pub fn custom_info(&self) -> Vec<(String, String)> {
836+
self.editor.as_ref().map(|e| pdfcraft_organize::custom_info(&e.cos)).unwrap_or_default()
837+
}
838+
834839
/// The name shown on the tab and window: the document title when the document asks for it
835840
/// (Initial View ▸ Show: Document Title) and has a real one, else the file name.
836841
pub fn display_name(&self) -> String {
@@ -3902,6 +3907,7 @@ impl Session {
39023907
doc.info.keywords = info("Keywords");
39033908
doc.info.creator = info("Creator");
39043909
doc.info.producer = info("Producer");
3910+
doc.info.custom = pdfcraft_organize::custom_info(&editor.cos);
39053911
doc.info.file_size = bytes.len();
39063912
if !doc.signatures.is_empty() {
39073913
let signatures = signatures_of(&editor.cos, &bytes, &doc.trust, &doc.sig_cache);

‎crates/organize/src/lib.rs‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,54 @@ pub fn insert_blank_page(doc: &mut Document, at: usize, width: f64, height: f64)
556556
/// Document information keys editable in Document Properties ▸ Description.
557557
pub const INFO_KEYS: [&str; 4] = ["Title", "Author", "Subject", "Keywords"];
558558

559+
/// The document-information entries the spec names (ISO 32000-2 table 349). Any other key in
560+
/// `/Info` is a custom property (Document Properties ▸ Custom).
561+
pub const STANDARD_INFO_KEYS: [&str; 9] = ["Title", "Author", "Subject", "Keywords", "Creator", "Producer", "CreationDate", "ModDate", "Trapped"];
562+
563+
/// Longest custom property name accepted, in bytes: the name length every reader is asked to
564+
/// accept (§7.3.5, Annex C).
565+
pub const MAX_CUSTOM_KEY_LEN: usize = 127;
566+
567+
/// The custom document properties: every `/Info` entry whose key the spec does not name and whose
568+
/// value is text, in the dictionary's order, as (name, text), the text without NUL or whitespace
569+
/// padding and entries that are only padding left out. At most 256 are listed.
570+
pub fn custom_info(doc: &Document) -> Vec<(String, String)> {
571+
let Some(info) = doc.trailer().get(b"Info").map(|o| doc.resolve(o)) else { return Vec::new() };
572+
let Some(d) = info.as_dict() else { return Vec::new() };
573+
d.iter()
574+
.filter(|(k, _)| !STANDARD_INFO_KEYS.iter().any(|s| s.as_bytes() == k.as_slice()))
575+
.filter_map(|(k, v)| {
576+
// Padding (\0s and whitespace, in any mix) is not part of the value, and a value that
577+
// is only padding is no property. Filtered before the cap, so blank entries can't
578+
// crowd real ones out.
579+
let text = doc.resolve(v).as_string()?.to_text();
580+
let text = text.trim_matches(|c: char| c == '\0' || c.is_whitespace());
581+
(!text.is_empty()).then(|| (String::from_utf8_lossy(k).into_owned(), text.to_owned()))
582+
})
583+
.take(256)
584+
.collect()
585+
}
586+
587+
/// Whether `name` may be a custom property's key: not one the spec names (those are the
588+
/// Description fields), not empty, at most [`MAX_CUSTOM_KEY_LEN`] bytes, and without the
589+
/// characters a name cannot carry unescaped (whitespace, the delimiters `()<>[]{}/%` and `#`),
590+
/// so every reader shows the same name. Acrobat refuses the standard and empty names too.
591+
pub fn check_custom_key(name: &str) -> Result<(), OrganizeError> {
592+
if name.is_empty() {
593+
return Err(OrganizeError::Invalid("a custom property needs a name".into()));
594+
}
595+
if STANDARD_INFO_KEYS.contains(&name) {
596+
return Err(OrganizeError::Invalid(format!("{name} is a standard document property, not a custom one")));
597+
}
598+
if name.len() > MAX_CUSTOM_KEY_LEN {
599+
return Err(OrganizeError::Invalid(format!("a custom property name is at most {MAX_CUSTOM_KEY_LEN} bytes")));
600+
}
601+
if let Some(c) = name.chars().find(|c| c.is_whitespace() || c.is_control() || "()<>[]{}/%#".contains(*c)) {
602+
return Err(OrganizeError::Invalid(format!("a custom property name can't contain {c:?}")));
603+
}
604+
Ok(())
605+
}
606+
559607
/// Read a document-information entry as text.
560608
pub fn info(doc: &Document, key: &str) -> Option<String> {
561609
let info = doc.trailer().get(b"Info").map(|o| doc.resolve(o))?;
@@ -568,6 +616,9 @@ pub fn info(doc: &Document, key: &str) -> Option<String> {
568616
/// in the XMP packet, and viewers that read XMP first show its value: the packet's property is
569617
/// changed (or removed) to match (see `xmp`).
570618
pub fn set_info(doc: &mut Document, key: &str, value: &str) -> Result<(), OrganizeError> {
619+
if !STANDARD_INFO_KEYS.contains(&key) {
620+
check_custom_key(key)?;
621+
}
571622
let value = value.trim();
572623
let entry = (!value.is_empty()).then(|| Object::String(PdfString::text(value)));
573624
set_info_entry(doc, key.as_bytes(), entry)?;

‎crates/organize/src/tests.rs‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,59 @@ fn page_transitions_are_set_removed_and_checked() {
336336
assert_eq!(page_dict(&doc, 2).get(b"Dur").and_then(Object::as_f64), Some(5.0));
337337
}
338338

339+
/// Custom document properties (Document Properties ▸ Custom): any `/Info` key the spec does not
340+
/// name, set and cleared like the standard ones, listed apart from them, and with the names
341+
/// Acrobat refuses refused here too.
342+
#[test]
343+
fn custom_document_properties_are_listed_set_removed_and_their_names_checked() {
344+
let mut doc = open(fixture());
345+
assert!(custom_info(&doc).is_empty());
346+
set_info(&mut doc, "Title", "Report").unwrap();
347+
set_info(&mut doc, "Project", "Apollo").unwrap();
348+
set_info(&mut doc, "Revision", "7").unwrap();
349+
let mut listed = custom_info(&doc);
350+
listed.sort();
351+
assert_eq!(listed, [("Project".to_string(), "Apollo".to_string()), ("Revision".to_string(), "7".to_string())], "standard keys are not custom");
352+
assert_eq!(info(&doc, "Project").as_deref(), Some("Apollo"));
353+
set_info(&mut doc, "Project", "").unwrap();
354+
let doc = save_and_reopen(&doc);
355+
assert_eq!(custom_info(&doc), [("Revision".to_string(), "7".to_string())], "cleared, and the rest survives a save");
356+
assert_eq!(info(&doc, "Title").as_deref(), Some("Report"));
357+
358+
for bad in ["", "Title", "ModDate", "Bad Name", "a/b", "tab\tbed", "hash#tag", "(x)"] {
359+
assert!(check_custom_key(bad).is_err(), "{bad:?} must be refused");
360+
}
361+
let long = "x".repeat(MAX_CUSTOM_KEY_LEN + 1);
362+
assert!(check_custom_key(&long).is_err());
363+
for good in ["Project", "Révision", "部門", "key-2.0", &"y".repeat(MAX_CUSTOM_KEY_LEN)] {
364+
assert!(check_custom_key(good).is_ok(), "{good:?} is a usable name");
365+
}
366+
let mut doc = open(fixture());
367+
assert!(set_info(&mut doc, "Bad Name", "x").is_err(), "set_info checks custom names");
368+
assert!(custom_info(&doc).is_empty());
369+
}
370+
371+
/// Padding is not part of a custom value, in any mix of NULs and whitespace, a value that is only
372+
/// padding is not listed, and such entries don't count towards the 256 listed: a real property
373+
/// after 300 blank ones is still there.
374+
#[test]
375+
fn custom_document_properties_drop_padding_before_the_cap() {
376+
let mut doc = open(fixture());
377+
set_info(&mut doc, "Title", "Report").unwrap();
378+
let Some(Object::Ref(info_ref)) = doc.trailer().get(b"Info").cloned() else { panic!("an /Info reference") };
379+
let text = |s: &str| Object::String(pdfcraft_cos::PdfString { bytes: s.as_bytes().to_vec(), hex: false });
380+
doc.update_dict(info_ref, |d| {
381+
d.set(b"Mixed".to_vec(), text(" \0Lab\0 "));
382+
d.set(b"Pad".to_vec(), text(" \0 \0"));
383+
for i in 0..300 {
384+
d.set(format!("Blank{i}").into_bytes(), text(" "));
385+
}
386+
d.set(b"Keep".to_vec(), text("yes"));
387+
})
388+
.unwrap();
389+
assert_eq!(custom_info(&doc), [("Mixed".to_string(), "Lab".to_string()), ("Keep".to_string(), "yes".to_string())]);
390+
}
391+
339392
/// A one-page document whose catalog has `xmp` as its (Flate-compressed) XMP packet, and the
340393
/// same title and author in `/Info`, as LibreOffice writes them.
341394
fn doc_with_xmp(xmp: &[u8]) -> Document {

‎crates/render/src/inspect.rs‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ pub struct DocInfo {
5656
pub keywords: Option<String>,
5757
pub creator: Option<String>,
5858
pub producer: Option<String>,
59+
/// Custom document properties: `/Info` entries with a key the spec does not name and a text
60+
/// value, as (name, text), in the dictionary's order (at most 256).
61+
pub custom: Vec<(String, String)>,
5962
pub pdf_version: String,
6063
pub file_size: usize,
6164
pub encrypted: bool,
@@ -616,6 +619,23 @@ impl<'a> Inspector<'a> {
616619
info.keywords = self.text(d, b"Keywords");
617620
info.creator = self.text(d, b"Creator");
618621
info.producer = self.text(d, b"Producer");
622+
const STANDARD: [&[u8]; 9] =
623+
[b"Title", b"Author", b"Subject", b"Keywords", b"Creator", b"Producer", b"CreationDate", b"ModDate", b"Trapped"];
624+
// The same rule as the engine's list after an edit (`pdfcraft_organize::custom_info`,
625+
// trimmed and without empty values): text strings only, so a name value is not a
626+
// custom property, and the cap counts listed entries.
627+
info.custom = d
628+
.iter()
629+
.filter(|(k, _)| !STANDARD.contains(&k.as_slice()))
630+
.filter_map(|(k, v)| match self.resolve(v) {
631+
Object::String(bytes, _) => {
632+
let v = text_string(bytes).trim_matches(|c: char| c == '\0' || c.is_whitespace()).to_string();
633+
(!v.is_empty()).then(|| (String::from_utf8_lossy(k).into_owned(), v))
634+
}
635+
_ => None,
636+
})
637+
.take(256)
638+
.collect();
619639
}
620640
let Ok(catalog) = self.doc.catalog() else { return };
621641
info.tagged = catalog
@@ -2302,6 +2322,27 @@ trailer << /Root 1 0 R >>
23022322
);
23032323
}
23042324

2325+
const CUSTOM_INFO: &[u8] = b"%PDF-1.7
2326+
1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj
2327+
2 0 obj << /Type /Pages /Kids [3 0 R] /Count 1 /MediaBox [0 0 200 200] >> endobj
2328+
3 0 obj << /Type /Page /Parent 2 0 R >> endobj
2329+
4 0 obj << /Title (Report) /Producer (Test) /Project (Apollo) /Revision 7 /Dept (R&D) /Trapped /False /Note <FEFF90E8> >> endobj
2330+
trailer << /Root 1 0 R /Info 4 0 R >>
2331+
%%EOF";
2332+
2333+
#[test]
2334+
fn custom_document_properties_are_listed_apart_from_the_standard_ones() {
2335+
let info = inspect(Arc::new(CUSTOM_INFO.to_vec()), None).expect("opens");
2336+
assert_eq!((info.title.as_deref(), info.producer.as_deref()), (Some("Report"), Some("Test")));
2337+
let mut custom = info.custom.clone();
2338+
custom.sort();
2339+
// Revision is a number, not text, so it is not listed; Trapped is a standard entry.
2340+
assert_eq!(
2341+
custom,
2342+
[("Dept".to_string(), "R&D".to_string()), ("Note".to_string(), "部".to_string()), ("Project".to_string(), "Apollo".to_string())]
2343+
);
2344+
}
2345+
23052346
#[test]
23062347
fn radio_button_layer_groups_are_read() {
23072348
let info = inspect(Arc::new(LAYERS.to_vec()), None).expect("opens");

‎parity/acrobat-features.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3481,11 +3481,11 @@ title = "Custom document properties"
34813481
area = "D"
34823482
tier = "P2"
34833483
milestone = "M4"
3484-
status = "planned"
3484+
status = "partial"
34853485
commands = []
3486-
tools = []
3487-
evidence = []
3488-
notes = ""
3486+
tools = ["doc_info", "doc_set_info"]
3487+
evidence = ["crates/organize/src/tests.rs::custom_document_properties_are_listed_set_removed_and_their_names_checked", "crates/render/src/inspect.rs::custom_document_properties_are_listed_apart_from_the_standard_ones", "crates/automation/tests/automation.rs::custom_document_properties_are_set_listed_and_cleared_through_the_tools"]
3488+
notes = "Through the tools: doc_set_info sets or clears an /Info entry under any name the spec does not use (names checked as Acrobat does: no standard name, no empty name, no spaces or delimiters, at most 127 bytes), and doc_info lists them under custom, apart from the standard entries. Not yet: the Custom tab in Document Properties, and mirroring them into XMP (pdfx:) as Acrobat does"
34893489

34903490
[[feature]]
34913491
id = "organize.xmp-editor"

0 commit comments

Comments
 (0)