PDF import?

stephen barncard stephenREVOLUTION2 at barncard.com
Fri May 7 12:40:45 EDT 2010


Hi Peter,

Not really. We are probably doing the things that "other" apps do - we just
don't see it. Similarly, we can't do things like play audio from a variable
- not sure why but it may be that there always has to be some kind of file
to be a buffer for the audio to stream properly without glitches.

You should check out , if you haven't already,   the tempName



it's a prefab unique name provided for this purpose. It's an address that is
deep within libraries and will be automatically purged at some point in the
future.

You can use temporary files to store intermediate data, downloaded URLs, and
other material that is more conveniently placed in a file but does not need
to be saved permanently.
*
**Using the **tempName** function does not create the file, only gets a
suggested file name. Use the open file command to create the file.*
*
**The file name returned by the **tempName** function is one that doesn't
exist, so you can use it safely. If you need to create another file, use
the **tempName** function again to obtain a new file name.*
*
*The location of the temporary files depends on the operating system. Each
operating system provides its own location for temporary files.


On 7 May 2010 08:49, Peter Brigham MD <pmbrig at gmail.com> wrote:

> What I want to do is to import a PDF image into a stack as a customprop. I
> anticipate using this for sensitive documents that will need to be contained
> within a password-protected stack, and I don't want the files themselves
> left on the user's disk drive. It looks as if I'll have to store the PDF
> binary file as a customprop then delete the file, and then when the user
> wants to access the stored file spit the PDF out to disk on demand for
> viewing and printing using Preview, then delete the file from disk when
> done. Is there any other way? Can I print an image from a player control? Or
> even better, is there a Rev external that will convert PDF files to an
> importable image?
>
>
> -- Peter
>
> Peter M. Brigham
> pmbrig at gmail.com
> http://home.comcast.net/~pmbrig
>
>
> On May 7, 2010, at 10:09 AM, Richard Gaskin wrote:
>
>  Peter Brigham MD wrote:
>>
>>  I suspect this has been asked and answered before, but is there any
>>> way to import a PDF file as an image in rev? The import paint command
>>> doesn't list this as an allowable file type. Please excuse my age-
>>> related dementia, I seem to recall someone having some way of doing
>>> this, a library maybe. Or perhaps I'm moving towards the drooling
>>> stage faster than I thought....
>>>
>>
>> It's not age, just experience.   :)
>>
>> You're absolutely right, there is one way to display PDFs in Rev and it's
>> very limited: on OS X only you can display PDFs inside of a player control.
>>  This does not work on Windows or Linux, and as you can imagine has a
>> limited UI (you can't select text, for example, and the page is rendered
>> scaled within the player without scrollbars of its own, so you'll need to
>> put it in a group of you bother with it at all).
>>
>> --
>> Richard Gaskin
>> Fourth World
>> Rev training and consulting: http://www.fourthworld.com
>> Webzine for Rev developers: http://www.revjournal.com
>> revJournal blog: http://revjournal.com/blog.irv
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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
>



-- 
-------------------------
Stephen Barncard
Back home in SF



More information about the Use-livecode mailing list