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
|
|
|
|
|
|
|
|
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-05-29 17:45:36 +02:00
|
|
|
|
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-06-04 16:29:29 +02:00
|
|
|
|
2024-07-24 16:05:02 +02:00
|
|
|
(** Reapply an edited JSON structure tree to its PDF. *)
|
2024-06-04 16:29:29 +02:00
|
|
|
val replace_struct_tree : Pdf.t -> Cpdfyojson.Safe.t -> unit
|
2024-09-05 17:38:03 +02:00
|
|
|
|
2024-09-30 14:01:31 +02:00
|
|
|
val create_cpdfua1 : string -> Pdfpaper.t -> int -> Pdf.t
|
|
|
|
|
|
|
|
val create_cpdfua2 : string -> Pdfpaper.t -> int -> Pdf.t
|