Plumbing for add_toplevel_document

This commit is contained in:
John Whitington 2024-10-22 14:24:13 +01:00
parent d5b529026d
commit 58f665b0dc
3 changed files with 3 additions and 2 deletions

View File

@ -3655,7 +3655,8 @@ let go () =
in
let outpdf =
Pdfmerge.merge_pdfs
args.retain_numbering args.remove_duplicate_fonts ~process_struct_trees:args.process_struct_trees names pdfs rangenums
args.retain_numbering args.remove_duplicate_fonts ~process_struct_trees:args.process_struct_trees
~add_toplevel_document:(args.subformat = Some Cpdfua.PDFUA2) names pdfs rangenums
in
if args.remove_duplicate_streams then Pdfmerge.remove_duplicate_fonts outpdf; (* JBIG2 Globals *)
write_pdf false outpdf

Binary file not shown.

View File

@ -5218,7 +5218,7 @@ A PDF may contain, in addition to its graphical content, a tree of information c
When drawing, Cpdf can add such structure information. Partly this can happen automatically, partly it is for the user to add the tags.
NB: These facilities are presently limited to drawing new PDFs. To draw on an existing PDF draw a new one, and then stamp it on top and the structure information will be merged.
NB: These facilities are presently limited to drawing new PDFs.
To enable the generation of structure information, we add \texttt{-draw-struct-tree} to our command: