Page 1 of 1

XPDFViewer not visible on Win 10

Posted: Sun May 13, 2018 3:51 pm
by djkesler
Is there something I haven't gotten about XPDFViewer on Win 10?
This code works great on Mac, however the viewer never becomes visible on Win.

on mouseup
put basepath&"/entryforminstructions.pdf" into fn1
XPDFViewer_Open "instructions", the windowID of this stack
XPDFViewer_Set "instructions", "rect", (10, 64, 789, 542)
XPDFViewer_Set "instructions","fileName",fn1
XPDFViewer_Set "instructions","visiblity",true
XPDFViewer_Set "instructions","hscrollbar",false
XPDFViewer_Set "instructions","vscrollbar",true
XPDFViewer_Zoom "instructions","width"
XPDFViewer_GoToPage "instructions", "first"
show grp "Instructions"
end mouseup

This is the first time I have used the XPDFViewer.

Thanks for any help.

David K.

Re: XPDFViewer not visible on Win 10

Posted: Fri Jul 13, 2018 5:03 pm
by djkesler
The problem is with the code.

in the XPDFViewer_Set you have used "visibility" rather than "visible" as the property name.

I have no idea why it works in Mac. Maybe "visible" is "true" is the default in Mac.