1. jean-louis cantin
  2. PowerBuilder
  3. Monday, 21 February 2022 09:33 AM UTC

Hello,
Is it possible to open a PDF document in full screen mode in a powerbuilder version 2019 R3 build 2703 window?
Thank you for your help

jean-louis cantin Accepted Answer Pending Moderation
  1. Monday, 21 February 2022 13:04 PM UTC
  2. PowerBuilder
  3. # 1

It works fine,
here is the code I used:
ole_pdf.object.src = "C:\TEMP\PDF\GDP386503G01.pdf"
ole_pdf.object.setPageMode ("none")
ole_pdf.object.setShowToolbar (False)
ole_pdf.object.setShowScrollbars (True)
ole_pdf.object.setView ("Fit")

However, there are still some unwanted areas on the screen (circled in yellow). I've searched the following document but haven't found anything that would help me: https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_iacguide.pdf
Do you have an idea?

Thanks again for your help

 

Attachments (1)
Comment
  1. Miguel Leeuwe
  2. Wednesday, 23 February 2022 09:47 AM UTC
See if the F11 key does anything. If so, try using SendKey()

  1. Helpful
  1. jean-louis cantin
  2. Wednesday, 23 February 2022 09:51 AM UTC
Hi, The F11 key does nothing, but thanks for the advice
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 23 February 2022 11:32 AM UTC
Sorry to hear that, it was worth a try as most applications now show full screen when using that key.

Anyway, your 'title' is more like a space to show the error / warning about the signature. What happens if you view a pdf without that warning appearing?

regards.
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Monday, 21 February 2022 11:38 AM UTC
  2. PowerBuilder
  3. # 2

You could try to hide the toolbar after loading the document:

ole_acrobat.object.src = is_filename
ole_acrobat.object.setShowToolbar (False)
ole_acrobat.object.setShowScrollbars (True)
ole_acrobat.object.setView ("FitH")

 

Comment
There are no comments made yet.
jean-louis cantin Accepted Answer Pending Moderation
  1. Monday, 21 February 2022 11:00 AM UTC
  2. PowerBuilder
  3. # 3

Thank you for your answer.
In fact I am using an Adobe Acrobat DC browser Control / Implementation olecustomcontrol. The attached file shows the obtained display. I would like to get the display in full screen mode (CtrlL) automatically.
Is this possible?
Another question: How did you implement Acrobat Reader ActiveX?

 

Jean-Louis

Attachments (1)
Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Monday, 21 February 2022 10:17 AM UTC
  2. PowerBuilder
  3. # 4

Hi,

I use Acrobat Reader ActiveX control in a PB window to show PDF documents.

Maybe you can also open PDFs in the new WebBrowser control.

HTH,

René

 

Comment
  1. jean-louis cantin
  2. Wednesday, 23 February 2022 08:51 AM UTC
Hi,

I will look into your proposal to insert the PDF in a webbrowser



Jean-Louis
  1. Helpful 1
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.