Skip to main content
Inspiring
February 21, 2022
Question

In Adobe acrobat, How to set the New Window in Open in dropdown using win32/vc++

  • February 21, 2022
  • 2 replies
  • 2653 views

Hi Team,

How to set the New window setting in Open in Dropdown in Adobe acrobat.

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
February 23, 2022

[Question moved to the Acrobat SDK forum]

Inspiring
February 24, 2022

Hi, I'm using this way to set the property new window? please help. If wrong please correct it.

PDDoc myPDDoc = AVDocGetPDDoc(avDoc);
AVPageView myPageView = AVDocGetPageView(AVDocFromPDDoc(myPDDoc));
PDViewDestination pdvDes = AVPageViewToViewDest(myPageView,ASAtomFromString("XYZ"),myPDDoc);
Create a PDAction objectPDAction myAction = PDActionNewFromDest(myPDDoc, pdvDes, myPDDoc);

 

CosDoc cosDoc = PDDocGetCosDoc(myPDDoc);
CosObj cosDisctAction = PDActionGetCosObj(myAction);
CosDictPut(cosDisctAction, ASAtomFromString("New window"), CosNewBoolean(cosDoc, FALSE,TRUE));
//Attach an action to the bookmark
PDBookmarkSetAction(aBookmark, myAction);

Legend
February 24, 2022

It seems you are guessing. There would almost never be a space in an atom string. There's no need to guess. As I said, this is in the PDF Reference. Here is Adobe's PDF 1.7 reference https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdf_reference_archive/pdf_reference_1-7.pdf See page 655.

But you have another problem too. This option is only on a Remote Go-To action. You are not creating a Remote Go-to action. Your example is trying to set this on a link to page in the same document, but it's only available on links to another document (since only then is there the possibility of having two different documents, one in a new window). Also note that this is largely ignored by PDF viewers (though not by Acrobat Reader).

Bernd Alheit
Community Expert
Community Expert
February 21, 2022

What dropdown does you mean?

Inspiring
February 21, 2022

 

How to setup setting new window in this option.

Bernd Alheit
Community Expert
Community Expert
February 21, 2022

Is this a link in a PDF document?