Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Display pages in tow-up view

Avatar

Level 1

Hi experts!

I have created an XDP project in Designer 9.0.

Is there some way to specify that PDF-files, generated from this XDP, are have two-up view ?

See on screenshot.Adobe.png I need to have that view by default.

1 Accepted Solution

Avatar

Correct answer by
Level 10

I tried

in the docReady:Event and this seems to work in the Browser.

View solution in original post

5 Replies

Avatar

Level 10

Hi,

Try this in the docReady event of the root node:

app.execMenuItem("TwoPages");

See here: http://assure.ly/umTdwf for more examples.

Niall

Avatar

Level 1

Thanks, but my problem didn't solve completely.

Whan I open this PDF in Adobe Acrobat Reader everything works fine - it displays two pages view.

But when I open the same file from Internet Explorer in Adobe Acrobat ActiveX control, it doesn't work, perhaps because in this case menu bar is not visible.

May be there is a way to show menu, exec app.execMenuItem("TwoPages") and then hide menu from javascript?

Avatar

Level 10

Hi,

I suspect that this may not work either. Both this and hte above method are using the Acrobat scripting environment and I am not sure if all methods are available in a browser.

var oDoc = event.target;

oDoc.layout = "TwoColumnLeft";

Hope that helps,

Niall

Avatar

Correct answer by
Level 10

I tried

in the docReady:Event and this seems to work in the Browser.

Avatar

Level 1

Thanks radzmar! Now it works right.