JBIG2 global sharing finished

This commit is contained in:
John Whitington 2023-12-05 12:56:56 +00:00
parent 39f5ec1bf3
commit 4e91e9721a
1 changed files with 3 additions and 1 deletions

View File

@ -1794,7 +1794,8 @@ let set_input_jpeg s = set_input_image (fun () -> Cpdfimage.obj_of_jpeg_data) s
let set_input_jbig2 s = let set_input_jbig2 s =
set_input_image set_input_image
(fun () -> Cpdfimage.obj_of_jbig2_data ?global:!jbig2_global) s (fun () -> Cpdfimage.obj_of_jbig2_data ?global:!jbig2_global) s;
args.remove_duplicate_streams <- true
let embed_font_inner font = let embed_font_inner font =
match font with match font with
@ -3477,6 +3478,7 @@ let go () =
Pdfmerge.merge_pdfs Pdfmerge.merge_pdfs
args.retain_numbering args.remove_duplicate_fonts names pdfs rangenums args.retain_numbering args.remove_duplicate_fonts names pdfs rangenums
in in
if args.remove_duplicate_streams then Pdfmerge.remove_duplicate_fonts outpdf; (* JBIG2 Globals *)
write_pdf false outpdf write_pdf false outpdf
end end
| _ -> | _ ->