Can't find objects using public API.

130 views
Skip to first unread message

Jens Thomsen

unread,
Nov 16, 2021, 4:34:02 AM11/16/21
to pdfium
Hi 
I am unable to find the objects in the pdf. I get 1 FPDF_PAGEOBJECT, which is a FPDF_PAGEOBJ_PATH object. This contains a filled path, but it should contain lines instead and probably a clip path.
I have attached the pdf. 

Kind regards 
Jens 
MissingObjects.pdf

Lei Zhang

unread,
Nov 18, 2021, 1:57:18 PM11/18/21
to Jens Thomsen, pdfium
Have you tried iterating through the FPDF_PAGEOBJ_PATH object to see
what it contains? FPDFPath_CountSegments(), FPDFPath_GetPathSegment(),
and friends are the relevant APIs there.
> --
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/a94579de-9646-4be7-9ece-b78e913d5022n%40googlegroups.com.

Jens Thomsen

unread,
Dec 2, 2021, 6:14:34 AM12/2/21
to pdfium
Yes. I get 1 object from FPDFPage_CountObjects, which is a FPDF_PAGEOBJ_PATH. This has fillmode FPDF_FILLMODE_ALTERNATE and has 26 segments, which are a starting point and then the rest are FPDF_SEGMENT_LINETO. This gives me a filled path.

Jens Thomsen

unread,
Jan 13, 2022, 4:08:24 AM1/13/22
to pdfium
Hi
I'm still not able to find the correct vectorized data. Can you reproduce it using the public API? 

On Thursday, November 18, 2021 at 7:57:18 PM UTC+1 Lei Zhang wrote:
Reply all
Reply to author
Forward
0 new messages