Skip to main content
Known Participant
January 17, 2017
Answered

Opening a PDF document without launching new acrobat window

  • January 17, 2017
  • 1 reply
  • 786 views

Hello,

I have written a plugin to open a PDF document in Acrobat.

However, It opens every new document in new acrobat window.

I want to open a PDF document without opening a new acrobat window.

It should replace the old document with new.

How can I achieve this?

I can't see any solution in the plugin documentation.

Thank you in advance!

This topic has been closed for replies.
Correct answer Test Screen Name

Hello,

I don't want any tabs.

Let's say I opened a PDF document "XYZ.pdf" in Acrobat using the plugin.

Then , again, I opened a new document "ABC.pdf" in acrobat then It should not open new window.

It should remove the previous document from Acrobat and replace it with new document in acrobat.

There should not be two tabs for these two documents.

Thanks


I believe it has already been stated that you cannot open a different document in the same Window, replacing the old. Let's assume this is right. Since cross document links do this maybe you could fake this somehow it not sure how, and likely there would be a user prompt. Another approach is to note all the window properties (size, position, zoom, layout etc.), close the window, and open anew one with the same properties. Be sure to test in both tabbed and non-tabbed systems, likely to need different code.

1 reply

lrosenth
Adobe Employee
Adobe Employee
January 17, 2017

You can’t switch PDFs in a window/tab – you can only open new ones and close old ones.

Known Participant
January 17, 2017

Hello,

I don't want to switch between windows.

Here is the scenario I implemented:

I created a my custom menu item "OpenDocument" to open a PDF document using plugin SDK.

Now If I execute this menu item using IAC method MenuItemExecute two times for two different documents then It opens each document in new acrobat window.

I don't want this behavior. Each document should open in single acrobat window.

How can I achieve this?

Thanks

lrosenth
Adobe Employee
Adobe Employee
January 17, 2017

You mean you want two tabs in a single window? That will happen automatically assuming

(a) You have a recent build of Acrobat DC

(b) The user hasn’t turned off the Tabs setting.