New Forum | Previous | Next | (P-PDF) Developers
Topic: Guidance using DirectOS in Director CD to open PDFs
Conf: (P-PDF) Developers, Msg: 120058
Date: 10/12/2004 04:24 AM
I found have a lot of information on using the Buddy API to open PDFs. I have inherited an application that uses Direct OS xtra and other xtras to open pdf files using Adobe Acrobat (the pdf is opened in a new window - for section 508 compliance purposes) and open active URLs (also in a new window - 508 compliance purposes).
I have received the “final copy files” (executable and supporting files -the dxr, dir, xtras, and media files) created by the previous developer and files that are called "working files" (these contain the dir files, media files, swfs, and xtras)
I have a strong suspicion that the "working files" are incomplete and some the required xtras are not listed. Since the dxr file is designed to protect the code, I am not able to determine which xtras or APIs the previous developer actually used.
From my ongoing research, it seems that the Direct OS xtra was used to open the PDF. The executable (dxr version) application generates a list of pdfs that ARE accessible and DO open by clicking the link and section 508 accessible by using voiceSpeak.
However when I use the “final copy files” to re-create the executable, the links for pdfs and the URLs DO NOT open. Including all the xtras before publishing the movie is the only change I made to the “final copy files” for the executable.
Below is the sample of code that is called to open the pdfs:
(typed the code to be formatted correctly, but this forum flushes all lines to the left - sorry about the formatting)
on openPDF myPDF
docPath = the moviepath & "pdfs\foldername\" & myPDF
if accessible then
pdfPath = dosFindApp("pdf")
if pdfpath = "" then
voiceSpeak("Adobe Acrobat could not be found. Please visit the Adobe website at www.adobe.com and download the Adobe Acrobat Reader to access this file.")
open docPath with pdfPath
Any suggestions are greatly appreciated!!! - Trying to resolve
this issue by 10/13/2004 - to open the PDFs and URLs from the re-created executable.
Thanks In Advanced!!!