Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
A node.js addon for Oracle's pdf export library.
Example
var topdf = require('topdf');
topdf.convert('./test/etc/foo.xlsx', './test/etc/foo.pdf', options, function (err, success) {
/* ... */
});
API
convert(source, destination, [options,] callback)
Takes a source document and saves it to destination as a PDF. The options parameter is optional.
watermark: A path to an image file to be used as the watermark image. This defaults to no watermark, if this propery is omitted.fontdirectory: A path to a directory containing true type fonts to be used. This option is required, if the default does not fit your setup. This defaults to/usr/share/fonts/truetype/msttcorefonts.override: Abooleanspecifying whether or not you wish to override the settings specified in the document. This defaults tofalse, which means any settings stored in the document to be converted will be used. This must betruein order to use any other formatting options.gridlines: Abooleanspecifying whether or not to print gridlines in spreadsheet documents. Thisdefaultstofalse.headings: Abooleanspecifying whether or not to print headings in spreadsheet documents. Thisdefaultstofalse.memory: Anintegerspecifying the maximum about of memory, in MB, that the PDF converter may use for caching thesourcefile. More memory means less disk reads. Must be a value in the following collection:4,16,64,256,1024. This defaults to16.pages: Anintegerspecifying the maximum number of pages to write to thedestinationfile. Specifying0will save all pages. Thisdefaultsto0.
Runtime Prerequisites
Make sure /usr/local/lib/pdfexport is in $LD_LIBRARY_PATH.
Compiling Prerequisites
Download the Oracle pdf export SDK, place the header files in /usr/local/include/pdfexport and the entire contents of the sdk's redist directory into /usr/local/lib/pdfexport. Make sure /usr/local/lib/pdfexport is in $LD_LIBRARY_PATH.
Oracle
You can download Oracle's tools at the following URL: http://www.oracle.com/technetwork/middleware/content-management/downloads/oit-dl-otn-097435.html