Skip to content

Conversation

@vonzshik
Copy link

Not exactly sure why it was done like this in the first place (my guess is it was assumed that FPDF_RenderPageBitmap and FPDF_FFLDraw render the exact same annotations), but according to documentation FPDF_RenderPageBitmap renders everything except widgets and popups, while FPDF_FFLDraw only renders widgets and popups. Which is why we have to pass RenderingFlags.Annotations flag to the both of them.

@bradleypeet
Copy link

As for "why"... there was a behavior change made in the native PDFium lib some time ago to correct the confusing behavior of those render/draw functions. This happened after the original PDFiumSharp project was authored by @ArgusMagnus.

Details here: https://codereview.chromium.org/2323203002

@Zubastic Zubastic merged commit 77ed07e into Zubastic:master Jan 10, 2024
@vonzshik vonzshik deleted the show-all-annotations-fix branch January 10, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants