More or less info messages in the console.You must think about specific and probably rare usecase where either Keynote is very loaded, or a very, very big presentation is being converted and the conversion takes a lot of time, so you want to avoid accidental removal of a temporary file that is infact used.To avoid flooding the disk, files are deleted if they were created since more than max_lifespan. When you don't explicitely call canClean() after a succesful conversion, temporary files are not deleted.Every cleanup_timeout ms, the module will delete previous files created by the conversions.The callback receives the regular (error, data) parameters (see below)Ĭonfigure (inConfig): inConfig is an object with the following, optionnal properties:.Cleanup of the files (.key package, result.If you want something else, then fork this code (or just duplicate it, whatever), and change the kAPPLE_SCRIPT_TEMPLATE variable in node-js-keynote2pdf. Current version does not allow changing these parameters. skipped slides: false (we don't want the skipped slides).export style: IndividualSlides (one/page).compression factor: 0.3 (we want the final pdf to be small.IMPORTANT: Conversion to PDF is done with the following parameters (these are opetionnal parameters expected by Keynote):.Call an AppleScript to tell Keynote to export it to PDF.Tested with Mac OS X.9 Mavericks Main Principles A node.js module which receives a zipped Keynote presentation (a path to a zip file), converts it to pdf (well, asks Keynote to convert it), and returns the pdf.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |