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