2022-01-13 17:35:03 +01:00
|
|
|
(** Fonts *)
|
|
|
|
|
|
|
|
(** {2 Listing fonts} *)
|
|
|
|
|
|
|
|
(** Print font list to stdout *)
|
2023-10-31 17:23:20 +01:00
|
|
|
val print_fonts : ?json:bool -> Pdf.t -> int list -> unit
|
2022-01-13 17:35:03 +01:00
|
|
|
|
|
|
|
(** Return font list. Page number, name, subtype, basefont, encoding. *)
|
|
|
|
val list_fonts : Pdf.t -> int list -> (int * string * string * string * string) list
|
|
|
|
|
2024-02-07 21:41:53 +01:00
|
|
|
(** Return font list in JSON format *)
|
|
|
|
val json_fonts : Pdf.t -> int list -> Cpdfyojson.Safe.t
|
|
|
|
|
2024-07-19 19:30:57 +02:00
|
|
|
(** {2 Miscellany} *)
|
2022-01-13 17:35:03 +01:00
|
|
|
|
|
|
|
(** Embed missing fonts *)
|
2021-10-18 17:12:10 +02:00
|
|
|
val embed_missing_fonts : string -> bool -> string -> string -> unit
|
2021-10-18 17:22:38 +02:00
|
|
|
|
2022-01-13 17:35:03 +01:00
|
|
|
(** Copy a font *)
|
2021-10-18 17:22:38 +02:00
|
|
|
val copy_font : Pdf.t -> string -> int -> int list -> Pdf.t -> Pdf.t
|
|
|
|
|
2022-01-13 17:35:03 +01:00
|
|
|
(** Report missing fonts *)
|
2024-07-02 19:12:18 +02:00
|
|
|
val missing_fonts : ?l:(int * string * string * string * string) list ref -> Pdf.t -> int list -> unit
|
2024-06-08 14:41:18 +02:00
|
|
|
|
2024-07-19 19:30:57 +02:00
|
|
|
(** Return missing fonts *)
|
2024-07-02 19:12:18 +02:00
|
|
|
val missing_fonts_return : Pdf.t -> int list -> (int * string * string * string * string) list
|
2021-11-12 23:09:49 +01:00
|
|
|
|
2022-01-13 17:35:03 +01:00
|
|
|
(** Print a font table to Standard Output. *)
|
2021-11-12 23:09:49 +01:00
|
|
|
val print_font_table : Pdf.t -> string -> int -> unit
|
|
|
|
|
2022-01-13 17:35:03 +01:00
|
|
|
(** Extract a font file to disk. *)
|
2023-11-02 19:49:15 +01:00
|
|
|
val extract_fontfile : int -> string -> string -> Pdf.t -> unit
|
2021-11-12 23:09:49 +01:00
|
|
|
|
2022-01-13 17:35:03 +01:00
|
|
|
(** Remove fonts from a document. *)
|
2021-11-12 23:09:49 +01:00
|
|
|
val remove_fonts : Pdf.t -> Pdf.t
|