Author Topic: Calling PDF viewer on Palm Pre  (Read 1401 times)

MrTAToad

  • Guest
Calling PDF viewer on Palm Pre
« 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...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10689
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Calling PDF viewer on Palm Pre
« Reply #1 on: 2011-Jul-20 »
use PLATFORMINFO$("DOCUMETNS")

MrTAToad

  • Guest
Re: Calling PDF viewer on Palm Pre
« Reply #2 on: 2011-Jul-20 »
Yes, it looks like the file will have to be copied there...