Further annotation matterhorns
This commit is contained in:
parent
3b761a97e7
commit
fb526d256c
24
cpdfua.ml
24
cpdfua.ml
|
@ -660,10 +660,30 @@ let matterhorn_28_009 _ _ pdf =
|
||||||
merror ()
|
merror ()
|
||||||
|
|
||||||
(* A widget annotation is not nested within a <Form> tag. *)
|
(* A widget annotation is not nested within a <Form> tag. *)
|
||||||
let matterhorn_28_010 _ _ pdf = todo ()
|
let matterhorn_28_010 _ _ pdf =
|
||||||
|
Pdf.objiter
|
||||||
|
(fun _ o ->
|
||||||
|
match Pdf.lookup_direct pdf "/Subtype" o with
|
||||||
|
| Some (Pdf.Name "/Widget") ->
|
||||||
|
begin match Pdf.lookup_chain pdf o ["/StructParent"; "/S"] with
|
||||||
|
| Some (Pdf.Name "/Form") -> ()
|
||||||
|
| _ -> merror ()
|
||||||
|
end
|
||||||
|
| _ -> ())
|
||||||
|
pdf
|
||||||
|
|
||||||
(* A link annotation is not nested within a <Link> tag. *)
|
(* A link annotation is not nested within a <Link> tag. *)
|
||||||
let matterhorn_28_011 _ _ pdf = todo ()
|
let matterhorn_28_011 _ _ pdf =
|
||||||
|
Pdf.objiter
|
||||||
|
(fun _ o ->
|
||||||
|
match Pdf.lookup_direct pdf "/Subtype" o with
|
||||||
|
| Some (Pdf.Name "/Link") ->
|
||||||
|
begin match Pdf.lookup_chain pdf o ["/StructParent"; "/S"] with
|
||||||
|
| Some (Pdf.Name "/Link") -> ()
|
||||||
|
| _ -> merror ()
|
||||||
|
end
|
||||||
|
| _ -> ())
|
||||||
|
pdf
|
||||||
|
|
||||||
(* A link annotation does not include an alternate description in its Contents
|
(* A link annotation does not include an alternate description in its Contents
|
||||||
entry. *)
|
entry. *)
|
||||||
|
|
Loading…
Reference in New Issue