1. Christopher Craft
  2. PowerBuilder
  3. Tuesday, 16 May 2023 23:57 PM UTC

I have a scanning program that will write files to the file system then display them in a WebBroswer control.  Sometimes the scanner will not auto rotate correctly so the image in the PDF file is upside down.  When viewed in the WebBrowser you can rotate the document which is great but I need that rotated document to get saved back to the file system that way.  Is there a way to do this? I am not finding anything so far.

Chris Craft

Christopher Craft Accepted Answer Pending Moderation
  1. Wednesday, 17 May 2023 18:18 PM UTC
  2. PowerBuilder
  3. # 1

Oops - forgot the important stuff...

  • Windows 10.0.19045 (Although I wonder why the version would matter)
  • PB 2022 1900
  • Built-in WebBrowser Control (CEF)

I attached a screen shot. The image is upside down.  I want to be able to rotate it then save it back to the PDF that way.

Chris

Attachments (1)
Comment
  1. Chris Pollach @Appeon
  2. Thursday, 18 May 2023 21:03 PM UTC
Hi Chris;

Neither PB 2022 or PB 2022 R2's Web Browser control have a SaveAs() method (unfortunately).

In FireFox for example when you are viewing a PDF document ... "At the top right of the PDF Viewer interface, there should be a >> symbol (if you hover your mouse over it, the tooltip should say Tools), click on it. In this menu you should see buttons that allow you to rotate the PDF document as required". Once rotated sufficiently, the select the SAVE button.

So you might want to introduce an APP feature where the current upside down PDF is opened in a Web Browser (like FF). Then have it rotated it 180 degrees & then save it back to disk to that your PB App can now process that PDF file instance. Food for thought.

Regards ... Chris (I luv FF).
  1. Helpful
  1. Christopher Craft
  2. Thursday, 18 May 2023 21:23 PM UTC
I hear you but that is not going to work because I have no idea how they rotated the document. It could have scanned in sideways so they only rotated once. If I have no way of getting what the document looks like in the browser control then I am out of luck trying to have them correct it.



I thought the Download option might work but again - it does not download how it looks on the screen so I am out of luck there too.



Is there any chance for Appeon to enhance the Bowser Control to offer a 'Save' option that will write the image as it is displayed back to the file system?

  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 19 May 2023 00:17 AM UTC
Always a chance if you create a Support Ticket as an enhancement request for this feature. ;-)
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 17 May 2023 16:09 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris;

  Can you tell us ...

  • MS-Windows version & build that you are using?
  • PB version & build that you are using?
  • Are you using the built-in web browser control (I assume so)?
  • Can you provide screen captures of what you see
  • Many thanks in advance!

Regards ... Chris

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.