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

How to open web browser desire size from adobe DC pdf

Community Beginner ,
Jun 10, 2017 Jun 10, 2017

Hi All,

Please help out me any one .Actually i don't know how to open web browser from pdf button with desire size.

Let me know,how to do that from pdf. any sample code snippet related,that will help for me.

Thank you,

Chiranjeevi

TOPICS
Acrobat SDK and JavaScript
648
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
Community Expert ,
Jun 10, 2017 Jun 10, 2017

Not possible. You can launch a URL but you can't define in what browser it will be opened, or what the window size will be.

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
Community Beginner ,
Jun 10, 2017 Jun 10, 2017

Hi try67,

I have try to google for tjhat, some people says like

  1. var win = window.open('http://www.google.com', 'popup', 'width=640, height=480, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no'); 
  2. win.focus(); 

The above few lines of code is work, but in my case i was tried that also. but it's not working..

Please help me there is any possible way to do..

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
Community Expert ,
Jun 10, 2017 Jun 10, 2017

This code will not work in a PDF file.

On Jun 10, 2017 11:52 AM, "chiranjeevik12490024" <forums_noreply@adobe.com>

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
Community Beginner ,
Jun 10, 2017 Jun 10, 2017

Thank you

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
Community Expert ,
Jun 12, 2017 Jun 12, 2017
LATEST

Well Actually, you ought to be able to use an URL in a PDF link with the "javascript:" prefix.  This will of course cause Acrobat to have a small fit and display lots of security popups.

A much better solution is to pass your desired parameters in a query string to a web app that will in turn display the page correctly.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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