1. John Strano
  2. PowerBuilder
  3. Friday, 10 February 2023 14:22 PM UTC

Adobe Acrobat Reader (DC)
Version: 22.003.20314.0

PowerBuilder 2022 (1892)

Opening PDFs with a file URL is working just fine.
However, no page parameters for configuring the Acrobat UI seem to be applied.

Anyone had success? Please advise.

Thank you.

wb_123.Navigate( ls_url + "#pagemode=thumbs" )
//( ls_url + "#pagemode=bookmarks" )
//( ls_url + "#navpanes=0&pagemode=none=OpenActions" )

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 10 February 2023 16:47 PM UTC
  2. PowerBuilder
  3. # 1

WebBrowser control uses its own built-in PDF display mechanism is not using Acrobat so Acrobat parameters will do nothing.  If you want to open in Acrobat you need to use the HyperlinkToURL(), which soon we will provide an updated version that is not obsolete.  The issue with this approach though is that you have dependency on every app user to have Acrobat installed and set as the default program to display PDFs.

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 13 February 2023 08:25 AM UTC
  2. PowerBuilder
  3. # 2

Hi John.

The best I was able to do was to open thumbs view on the left with a page view on the other side. I don't know if this could be  a solution to you. Follows a screenshot:

I do have a small application to do test with commands sent to webbrowser. I found those commands in some q&a with some great answers in this forum, and I did tried to create a small application to test settings that can be set. The main idea was to test what settings can work and which combinations, because not all combinations may work as also some settings may fail to work.

Another thing I've learned is that something that works in PB 2022 may not work in previous versions.

I will attach that application with it's source code in case anyone wants to do tests. From what I have seen toolbar, page number and settings to fit page do work. The others don't make any difference.

Andreas.

Attachments (1)
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.