XPDF Documentation

Bob Sneidar bobsneidar at iotecdigital.com
Thu Mar 20 18:58:15 EDT 2025


Hi all. 

I am trying to use the XPDF viewer and cannot get a document to render. :ere is my code: 

on mouseUp
   put the windowid of this stack into tWindowID
   answer file "Select a PDF file:"
   put the result into tResult
   if tResult is "Cancel" then \
         exit mouseUp
   
   put it into tFormFile
   XPDFViewer_Open "Form", tWindowID
   put the result into tResult
   put the rect of this card into tRect
   add 200 to item 1 of tRect
   XPDFViewer_Set "Form", "fileName", tFormFile — nothing displays
   put the result into tResult
   XPDFViewer_Set "form", "rect", tRect
   put XPDFViewer_get("Form", "rect") into tViewerRect — not what I set it to!
end mouseUp


Any ideas? There are no examples in the dictionary and no lessons online. 

And just to avoid complications, the PDF Widget will not work because it does not display form data in a filled form, it only displays the graphic layer and the text layer. 

Bob S



More information about the use-livecode mailing list