Fix -no-auto-artifact behaviour

This commit is contained in:
John Whitington 2024-09-17 14:03:34 +01:00
parent 935d43d5eb
commit ee917c8c7d
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
open Pdfutil
open Cpdferror
let do_add_artifacts = ref false
let do_add_artifacts = ref true
let do_auto_tag = ref true
@ -648,7 +648,7 @@ let write_structure_tree pdf st =
let draw ~struct_tree ~fast ~underneath ~filename ~bates ~batespad range pdf drawops =
(*Printf.printf "%s\n" (string_of_drawops drawops);*)
do_add_artifacts := struct_tree;
if not struct_tree then clear do_add_artifacts;
resstack := [empty_res ()];
Hashtbl.clear !fontpacks;
(res ()).time <- Cpdfstrftime.current_time ();