如何使用带有 pdfium 的 acrobat reader 在 pdf 页面上获得评论。 从 FPDFPage_GetAnnot 方法获得 2 个注释,如 HIGHLIGHT、POPUP 但无法弄清楚评论文本。
[
{
"rect": {
"left": 69.9908,
"top": 810.952,
"right": 139.376,
"bottom": 795.96
},
"sub_type": "HIGHLIGHT",
"objects": [
{
"type": "FORM",
"rect": {
"left": 0.4410019,
"top": 14.550964,
"right": 68.9445,
"bottom": 0.44110107
},
"stroke_color": {
"r": 0,
"g": 0,
"b": 0,
"a": 29
},
"fill_color": {
"r": 0,
"g": 0,
"b": 0,
"a": 29
},
"stroke_width": 1,
}
]
},
{
"rect": {
"left": 532.14795,
"top": 810.47205,
"right": 716.73004,
"bottom": 690.03503
},
"sub_type": "POPUP",
"color": {
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"has_attachment_points": false,
"flags": "NONE",
}
]
尝试使用 pdfium 库中的多个函数。