How to create the new annotation and save it in existing PDF document?
510 views
Skip to first unread message
Parthipan R
unread,
Apr 23, 2018, 6:29:09 AM4/23/18
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
Hi All,
I am trying to include the new annotation (any type) to existing PDF document using below method but I could not create it. After creating the annotation I need to save the annotation into loaded PDF document. Can you please provide syntax for saving new annotation into existing PDF document.
FPDFPage_CreateAnnot
Regards,
Parthipan
Lei Zhang
unread,
Apr 23, 2018, 10:51:00 AM4/23/18
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 Parthipan R, pdfium
Please see FPDFAnnotEmbeddertest.AddAndSaveUnderlineAnnotation for an
example of creating an annotation and saving it.
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
Thanks Lei.
Now I can include the new annotations into the Loaded PDF document. But the included annotations are not rendered if I Load and render the same document using RenderBitmap API. Can you please let me know whether I missed any thinks here?
Dan Sinclair
unread,
Apr 25, 2018, 10:24:51 AM4/25/18
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 Parthipan R, pdfium
Are you providing the FPDF_ANNOT render flag when you call the Render methods? Without the flag the annotations won't be drawn.