This commit is contained in:
John Whitington 2022-09-28 12:33:20 +01:00
parent 126530a2de
commit cd4c16e6fb
1 changed files with 11 additions and 8 deletions

View File

@ -3746,14 +3746,17 @@ let go () =
| (InFile inname, _, _, _, _, _)::_ -> inname | (InFile inname, _, _, _, _, _)::_ -> inname
| _ -> "" | _ -> ""
in in
write_pdf false let fontname =
(Cpdfaddtext.addtexts match embedinfo with Some (_, _, fontname, _) -> fontname | None -> args.fontname
?embedinfo args.linewidth args.outline args.fast args.fontname in
font args.bates args.batespad args.color args.position write_pdf false
args.linespacing args.fontsize args.underneath text range (Cpdfaddtext.addtexts
args.relative_to_cropbox args.opacity ?embedinfo args.linewidth args.outline args.fast fontname
args.justification args.midline args.topline filename font args.bates args.batespad args.color args.position
args.extract_text_font_size args.coord ~raw:(args.encoding = Raw) pdf) args.linespacing args.fontsize args.underneath text range
args.relative_to_cropbox args.opacity
args.justification args.midline args.topline filename
args.extract_text_font_size args.coord ~raw:(args.encoding = Raw) pdf)
| Some RemoveText -> | Some RemoveText ->
let pdf = get_single_pdf args.op false in let pdf = get_single_pdf args.op false in
let range = parse_pagespec_allow_empty pdf (get_pagespec ()) in let range = parse_pagespec_allow_empty pdf (get_pagespec ()) in