cpdf-source/cpdfua.mli

39 lines
1.2 KiB
OCaml
Raw Normal View History

2024-05-28 17:59:41 +02:00
(** PDF/UA *)
2024-07-24 16:05:02 +02:00
2024-09-14 15:40:53 +02:00
type subformat =
| PDFUA1
| PDFUA2
2024-10-23 16:26:14 +02:00
(** Parse PDF/UA-1 and PDF/UA-2 to the subformat type. *)
2024-09-14 15:40:53 +02:00
val subformat_of_string : string -> subformat
2024-07-24 16:05:02 +02:00
(** Print matterhorn test results ("" = all tests) *)
2024-06-24 17:33:43 +02:00
val test_matterhorn_print : Pdf.t -> string -> unit
2024-07-24 16:05:02 +02:00
(** Return JSON results of a matterhorn test ("" = all tests *)
2024-06-24 17:33:43 +02:00
val test_matterhorn_json : Pdf.t -> string -> Cpdfyojson.Safe.t
2024-05-30 18:49:23 +02:00
2024-07-24 16:05:02 +02:00
(** Mark PDF as PDF/UA-1 compliant. *)
2024-05-30 18:49:23 +02:00
val mark : Pdf.t -> unit
2024-06-03 16:49:52 +02:00
2024-07-24 16:05:02 +02:00
(** Mark PDF as PDF/UA-2 compliant. *)
2024-06-26 16:34:45 +02:00
val mark2 : int -> Pdf.t -> unit
2024-07-24 16:05:02 +02:00
(** Remove any PDF/UA-* marker *)
2024-06-18 16:28:19 +02:00
val remove_mark : Pdf.t -> unit
2024-07-24 16:05:02 +02:00
(** Print the structure tree to standard output, graphically. *)
2024-06-27 15:21:47 +02:00
val print_struct_tree : Pdf.t -> unit
2024-07-24 16:05:02 +02:00
(** Extract structure tree to JSON *)
2024-06-03 16:49:52 +02:00
val extract_struct_tree : Pdf.t -> Cpdfyojson.Safe.t
2024-07-24 16:05:02 +02:00
(** Reapply an edited JSON structure tree to its PDF. *)
val replace_struct_tree : Pdf.t -> Cpdfyojson.Safe.t -> unit
2024-09-05 17:38:03 +02:00
2024-10-23 16:26:14 +02:00
(* Make a blank PDF/UA-1 PDF given a title, paper size, and number of pages. *)
2024-09-30 16:13:56 +02:00
val create_pdfua1 : string -> Pdfpaper.t -> int -> Pdf.t
2024-09-30 14:01:31 +02:00
2024-10-23 16:26:14 +02:00
(* Make a blank PDF/UA-2 PDF given a title, paper size, and number of pages. *)
2024-09-30 16:13:56 +02:00
val create_pdfua2 : string -> Pdfpaper.t -> int -> Pdf.t