Author Topic: WebView  (Read 280 times)

Offline hvb356

  • Member
  • *
  • Posts: 55
    • View Profile
WebView
« on: 2019 February 13 10:35:01 »
Hi,

WebView works nice with HTML content. When I try to load a pdf, nothing happens. No view, no error.
Is there a trick to convince this control to act like a browser?

Thank you

Hartmut
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6720
    • View Profile
    • http://pixinsight.com/
Re: WebView
« Reply #1 on: 2019 February 15 11:53:27 »
Hi Hartmut,

The WebView component of PixInsight is an excellent HTML5 renderer, as you have seen, but it is currently far from being a reasonably complete web browser. For example, the integrated browser in Process Explorer cannot download files or perform user authentication operations, or open multiple documents, which limits its usability as an actual browser considerably. It cannot represent or open PDF documents either.

WebView can render HTML5 multimedia objects (such as YouTube videos, for example) without problems, and can handle HTML5/JavaScript interactive content remarkably well, as the SubframeSelector tool demonstrates. But I still have to invest a lot of time and work to make it a real browser. This is in the to-do list, and you can expect more functionality added to WebView in successive versions of PixInsight.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline hvb356

  • Member
  • *
  • Posts: 55
    • View Profile
Re: WebView
« Reply #2 on: 2019 February 15 21:52:41 »
Hi Juan,

I understand.
For my latest script I looked for a workaround. I convert my pdf into a collection of jpeg images, put them into a file and display each with a Frame control. Works excellent.

Thank you

Hartmut
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition