Skip to main content
Participant
October 14, 2016
Question

Text Render Mode 3 inside pdeForm

  • October 14, 2016
  • 5 replies
  • 720 views

Hello,

I' have a problem to set Render mode 3 to Text inside a pdeForm.

Here is my code:

PDETextGetTextState ((PDEText)pdeElement, kPDETextRun, m_run, &textStateTmp, sizeof(textState));

textStateTmp.renderMode = kPDETextInvisible;

PDETextRunSetTextState ((PDEText)pdeElement, m_run, &textStateTmp, sizeof(textState));

         

PDPageReleasePDEContent (pdPage, gExtensionID);

PDPageSetPDEContent(pdPage, gExtensionID);

PDPageNotifyContentsDidChange (pdPage);

PDEFormSetContent( (PDEForm)m_formElement, m_pageContent );

It usually works fine,

but It doesn't work with a TextElement inside a PDEForm element: text remains visible
The pdeForm is itself inside two Containers

The structure of my PDF  is:

Container

   Container

      pdeForm

Any suggestion?

Thanks

This topic has been closed for replies.

5 replies

lrosenth
Adobe Employee
Adobe Employee
October 14, 2016

Offhand, I can’t think of any reason that wouldn’t work. This is with Acrobat or PDFL? Which version?

vin22Author
Participant
October 14, 2016

With Acrobat XI, SDK 9

To 'PDEFormSetContent()' I'm passing the pdeForm element, and as second argument the content from PDE element:

m_pageContent = PDEFormGetContent ((PDEForm)m_formElement);

PDEFormSetContent( (PDEForm)m_formElement, m_pageContent ); 

Maybe should I use a different pdeContent? Or should I set also the pdeContainer content of "parent" container?

lrosenth
Adobe Employee
Adobe Employee
October 14, 2016

I see the problem…

You set the PAGE content BEFORE you sent the form one – but remember that the form LIVES IN the Page.

Change the order of setting and it will work.