You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Hello Pdfium devs,
Looks like currently it is not possible to find the text object which contains a symbol using the public API. If text overlaps, it means that is not trivial to create a tree above it if we need some acess to mcid.
is it ok if I expose
FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFText_GetTextObject(FPDF_TEXTPAGE text_page, int index) {
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Currently the only way to get a text pageobject is through FPDFPage_GetObject() or FPDFPageObj_NewTextObj(), right?
Dmitry Panteleev
unread,
May 7, 2024, 7:46:55 PMMay 7
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Yes, looks like the only one which returns an object (without modifying things) is FPDFPage_GetObject. But there are plenty of accessors which call textpage->GetCharInfo(index) to get text style or bounding box, so I don't see any harm in exposing the corresponding text object directly in API.
Lei Zhang
unread,
May 8, 2024, 7:08:06 PMMay 8
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dmitry Panteleev, pdfium
I think this API should be ok. In some ways, it is similar to
FPDFAnnot_GetObject().
With this API, PDFium can remove FPDFText_GetTextRenderMode(), and the
embedder can call FPDFText_GetTextObject() followed by
FPDFTextObj_GetTextRenderMode() instead.