Skip to content

Issues rendering annotations from pdf to image #293

Closed Answered by mara004
geirthanas asked this question in Q&A
Discussion options

You must be logged in to vote

On the support model example: Make sure to call .init_forms() on the parent pdf before the page is instantiated.

On the raw API example, you'd need to call FPDF_FFLDraw(...), which takes an FPDF_FORMHANDLE and the render args.
Setting up the form requires several other APIs, which is somewhat complicated.
The support model should be more straightforward for your use case.

I agree the Readme's raw API rendering example is incomplete when it comes to forms.
The support model's implementation is more exhaustive:

init_forms()

formtype = self.get_formtype()
if formtype == pdfium_c.FORMTYPE_NONE or self.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mara004
Comment options

@geirthanas
Comment options

Answer selected by mara004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants