epdf libray <EmbFile>:save()
Hello everybody, I'm working on a script ATM which is using the epdf library. The manual says <boolean> = <EmbFile>:save() -- will go The manual also says <string> = <EmbFile>:name() -- not (yet) implemented Will the latter allow me to save the file to the disk as usual e.g., using the IO library? Don't know what <EmbFile>:name() is supposed to do. Would't it be better if <FileSpec>:getEmbeddedFile() returns the file as a string instead of userdata? Everything would be easier then. At least at user level. The removal of <EmbFile>:save() will break existing scripts anyway, so I think that changing the behavior of <FileSpec>:getEmbeddedFile() is even less invasive. Merry Christmas, Reinhard -- ------------------------------------------------------------------ Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ------------------------------------------------------------------
On 12/26/2018 11:34 PM, Reinhard Kotucha wrote:
Hello everybody, I'm working on a script ATM which is using the epdf library. The manual says
<boolean> = <EmbFile>:save() -- will go
The manual also says
<string> = <EmbFile>:name() -- not (yet) implemented
Will the latter allow me to save the file to the disk as usual e.g., using the IO library? Don't know what <EmbFile>:name() is supposed to do.
Would't it be better if <FileSpec>:getEmbeddedFile() returns the file as a string instead of userdata? Everything would be easier then. At least at user level. The removal of <EmbFile>:save() will break existing scripts anyway, so I think that changing the behavior of <FileSpec>:getEmbeddedFile() is even less invasive. That's the old library .. which is gone and replaced in 1.10 by a new one. Nothing embedded file in there.
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Reinhard Kotucha