Copy link to clipboard
Copied
For my small plugin I'm using next function of DigSig API
DigSigAPCreateLayeredStreamEx
to create custom appearence. Using DigSigAPCreateLayeredStreamEx I'm filling few layers - one is n1 which I'm using for custom background (stamp) and other - n2 which I'm using for custom text.
I've found such function of AcroForms
AFPDFormFromPage
which helps me to use another PDF as a source for custom stamp as it returns XObject (CosObj) and then such result can be placed (almost) directly to n1 layer for DigSigAPCreateLayeredStreamEx function.
All is fine and good until things came to work in Acrobat Reader. From FormsHFT.h of Acrobat SDK it can be seen that AFPDFormFromPage is not available in Reader.
/* The following APIs are NOT availabe in Reader configuration */
#if !READER_PLUGIN
.....
#define AFPDFormFromPage (*((AFPDFormFromPage_SELPROTO)(gAcroFormHFT[AFPDFormFromPage_SEL])))
Is there any alternatives for AFPDFormFromPage to use in Acrobat Reader mode? May be throgh combination of other APIs from AcroForms and FormsHFT.h?
Have something to add?