Copy link to clipboard
Copied
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!
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 diff
...Copy link to clipboard
Copied
You can’t switch PDFs in a window/tab – you can only open new ones and close old ones.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now