module Cpdfua:sig..end
PDF/UA
type subformat =
| |
PDFUA1 |
| |
PDFUA2 |
val subformat_of_string : string -> subformatParse PDF/UA-1 and PDF/UA-2 to the subformat type.
val test_matterhorn_print : Pdf.t -> string -> unitPrint matterhorn test results ("" = all tests)
val test_matterhorn_json : Pdf.t -> string -> Cpdfyojson.Safe.tReturn JSON results of a matterhorn test ("" = all tests
val mark : Pdf.t -> unitMark PDF as PDF/UA-1 compliant.
val mark2 : int -> Pdf.t -> unitMark PDF as PDF/UA-2 compliant.
val remove_mark : Pdf.t -> unitRemove any PDF/UA-* marker
val print_struct_tree : Pdf.t -> unitPrint the structure tree to standard output, graphically.
val extract_struct_tree : Pdf.t -> Cpdfyojson.Safe.tExtract structure tree to JSON
val replace_struct_tree : Pdf.t -> Cpdfyojson.Safe.t -> unitReapply an edited JSON structure tree to its PDF.
val create_pdfua1 : string -> Pdfpaper.t -> int -> Pdf.tMake a blank PDF/UA-1 PDF given a title, paper size, and number of pages.
val create_pdfua2 : string -> Pdfpaper.t -> int -> Pdf.tMake a blank PDF/UA-2 PDF given a title, paper size, and number of pages.