GLBasic forum

Codesnippets => Code Snippets => Topic started by: MrTAToad on 2011-Jul-20

Title: Calling PDF viewer on Palm Pre
Post by: MrTAToad on 2011-Jul-20
The following only works on the Palm Pre, which calls the default PDF viewer :

Code: (glbasic) [Select]
FUNCTION openPDF%:
?IFDEF WEBOS
INLINE
PDL_ServiceCall("palm://com.palm.applicationManager/open", "{\"target\":\"file:///media/cryptofs/apps/usr/palm/applications/com.unmap.glbrefguide/Media/GLBasic Programmers Reference Guide.pdf\"}");
ENDINLINE
?ENDIF
ENDFUNCTION

Apparently, as I've been informed by HP today, this doesn't work on the Tablet :

Quote
he PDF is not compatible with the PDF Viewer on the TouchPad. When I launch the application it sublaunches the PDF Viewer and I receive the following error: “Quickoffice has encountered and error with this file.”

It seems most likely some of the pathing has changed...
Title: Re: Calling PDF viewer on Palm Pre
Post by: Kitty Hello on 2011-Jul-20
use PLATFORMINFO$("DOCUMETNS")
Title: Re: Calling PDF viewer on Palm Pre
Post by: MrTAToad on 2011-Jul-20
Yes, it looks like the file will have to be copied there...