cpdf-source/cpdffont.mli

33 lines
946 B
OCaml
Raw Permalink Normal View History

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
2022-01-13 17:35:03 +01:00
(** {2 Miscellany.} *)
(** 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 *)
2021-10-18 17:22:38 +02:00
val missing_fonts : Pdf.t -> int list -> unit
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