Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Opening a PDF document without launching new acrobat window

New Here ,
Jan 17, 2017 Jan 17, 2017

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!

TOPICS
Acrobat SDK and JavaScript
698
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 18, 2017 Jan 18, 2017

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

...
Translate
Adobe Employee ,
Jan 17, 2017 Jan 17, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 17, 2017 Jan 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 17, 2017 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 18, 2017 Jan 18, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 18, 2017 Jan 18, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines