Allow page input option to be set for PDF (#1595)

This commit is contained in:
Fabrizio Ruggeri
2019-03-02 00:29:34 +01:00
committed by Lovell Fuller
parent 2262959673
commit 5afe02be60
3 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ const debuglog = util.debuglog('sharp');
* @param {Boolean} [options.failOnError=true] - by default halt processing and raise an error when loading invalid images.
* Set this flag to `false` if you'd rather apply a "best effort" to decode images, even if the data is corrupt or invalid.
* @param {Number} [options.density=72] - number representing the DPI for vector images.
* @param {Number} [options.page=0] - page number to extract for multi-page input (GIF, TIFF)
* @param {Number} [options.page=0] - page number to extract for multi-page input (GIF, TIFF, PDF)
* @param {Object} [options.raw] - describes raw pixel input image data. See `raw()` for pixel ordering.
* @param {Number} [options.raw.width]
* @param {Number} [options.raw.height]