答案 0 :(得分:1)
行。我想出了如何检索这些参数。这是相关的代码片段(.NET版本):
let getCM (rd:PdfReader) (i:int) =
let d = rd.GetPageN(i)
let c = d.GetDirectObject(PdfName.CONTENTS)
if c.IsArray() then
let ca = c :?> PdfArray
let b = PdfReader.GetStreamBytes(ca.GetDirectObject(0) :?> PRStream)
Encoding.UTF8.GetString(b) |> printfn "%s"
else ()
// Do something else