Render pdf page(s) without annotations

45 views
Skip to first unread message

Madushan Amarasinghe

unread,
Jun 18, 2021, 4:05:57 AM6/18/21
to pdfium
Hi,

I'm using FPDF_RenderPageBitmap method to render pages into a UWP application. I want to render the page bitmap without the annotations. Is it possible?

Any help is much appreciated.

Olivia Yingst

unread,
Jun 18, 2021, 12:54:20 PM6/18/21
to Madushan Amarasinghe, pdfium
You can change the `flags` parameter for FPDF_RenderPageBitmap() to avoid rendering annotations.
Just make sure `flags` & FPDF_ANNOT is false, then it should work.

--
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/a425d2bf-5e3f-4e95-8876-de27a890aed2n%40googlegroups.com.


--

Olivia(Hui) Yingst | Software Engineer | huiy...@google.com | 213-399-8487

Madushan Amarasinghe

unread,
Jun 21, 2021, 4:06:01 AM6/21/21
to pdfium
Thank you Olivia. I was able to get the application render without annotations.
Reply all
Reply to author
Forward
0 new messages