• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Any alternatives for using AFPDFormFromPage in Acrobat Reader?

New Here ,
Jun 14, 2022 Jun 14, 2022

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?

TOPICS
Acrobat SDK and JavaScript , Windows

Views

131

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation