Re-2: PDF within a stack?

runrev260805 at m-r-d.de runrev260805 at m-r-d.de
Fri Feb 1 08:12:06 EST 2008


Sarah,
Scott,

thanks for the help. I really did not know, that i could store binary data in custom properties. 

And thanks for the sample code.

Regards,

Matthias Rebbe


-------- Original Message --------
Subject: Re: PDF within a stack? (01-Feb-2008 6:44)
From:    Scott Rossi <scott at tactilemedia.com>
To:      runrev260805 at m-r-d.de

> Recently, runrev260805 at m-r-d.de wrote:
> 
> > is it possible to include a PDF within a stackfile on cd under windows?
> 
> If you want to embed the PDF data in a stack you could store the PDF as
> binary in a custom property.  Something like:
> 
>  set the uPDFdata of this stack to url ("binfile:" & pathToOrigPDF)
> 
> 
> > I want the user to enter a password, if the password is correct the pdf 
> > file
> > should either be saved to harddisk or openend. Is this possible?
> 
> Once the user is granted access, you write out the PDF data to the drive.
> To get the PDF to display within Rev, you will need to use the revBrowser
> external (it is also possible to use a player object to display a PDF, but
> this method is not without its difficulties).  If the PDF doesn't need to
> display within your stack, you could simply launch it once it has been
> copied to the drive.
> 
> If you want to minimize easy access to the PDF itself, you might be able to
> write the file to Rev's temp directory (untested).
> 
>  put the tempName into pdfPath
>  set itemdel to "/"
>  put "private.pdf" into last item of pdfPath
>  put the uPDFdata of this stack into url ("binfile:" & pdfPath)
> 
> HTH.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> 
> To: use-revolution at lists.runrev.com





More information about the use-livecode mailing list