PDF in HTMLRenderer

General APL language issues

PDF in HTMLRenderer

Postby paulmansour on Sat May 08, 2021 4:30 pm

Should I be able to display a PDF file in HTMLRenderer?

It seems other wrappers like CEFSharp allow this.
paulmansour
 
Posts: 375
Joined: Fri Oct 03, 2008 4:14 pm

Re: PDF in HTMLRenderer

Postby Veli-Matti on Sat May 08, 2021 6:10 pm

Hi, the following code works nicely in 17.1
      'fm' ⎕WC 'Form' ('Coord' 'pixel')('Size' 650 500)
'fm.hr' ⎕WC 'HTMLRenderer'('Posn' 0 0)('Size' 650 500)('AsChild' 1)
fm.hr.URL←'D:\Dyalog180\help\HTMLRenderer User Guide.pdf' ⍝ NB: the path may differ in your installation


but, as you found out, NOT in 18.0 (all I get is a black window)?

-Veli-Matti
Veli-Matti
 
Posts: 75
Joined: Sat Nov 28, 2009 3:12 pm

Re: PDF in HTMLRenderer

Postby paulmansour on Sat May 08, 2021 7:25 pm

Thanks Veli-Matti. I had not bothered to check v17. So I guess the good news is that its a bug that should be (easily) fixed.
paulmansour
 
Posts: 375
Joined: Fri Oct 03, 2008 4:14 pm

Re: PDF in HTMLRenderer

Postby Vince|Dyalog on Mon May 10, 2021 10:03 am

Hi Paul and Veli-Matti,

Thanks for reporting this and finding that it works in 17.1 but not 18.0.

John has logged this as 19072 and will investigate.

Regards,

Vince
Vince|Dyalog
 
Posts: 355
Joined: Wed Oct 01, 2008 9:39 am

Re: PDF in HTMLRenderer

Postby JohnD|Dyalog on Mon May 10, 2021 12:10 pm

Ah, I'll have a look. IIRC we changed the CEF version we use. There may be a difference there. I'll see what we can do.


Best Regards
John Daintree.
User avatar
JohnD|Dyalog
 
Posts: 68
Joined: Wed Oct 01, 2008 9:35 am


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest