Product: pdfnet-node
Product Version: 10.4.0
Please give a brief summary of your issue: Can’t get the params right for the setPages in the TiffOutputOptions
Please describe your issue and provide steps to reproduce it:
We are trying to convert from PDF to TIFF with the PDFNet.Convert.fileToTiff
. We only want to convert the first page and we have seen the PDFNet.Convert.TiffOutputOptions::setPages
, but the description for the param to give is very vage and we don’t understand it: PDFTron pdfnet-node Class: TiffOutputOptions
Why is it expecting a string? We’ve tried the following:
const tiff_options = new PDFNet.Convert.TiffOutputOptions();
// Options we have tried, none of these produces any error nor the expected file
tiff_options.setPages(0);
tiff_options.setPages([0]);
tiff_options.setPages(["0"]);
tiff_options.setPages(1);
tiff_options.setPages([1]);
// These options do produce the expected file but it is 1KB in size and malformed
tiff_options.setPages("0");
Can you tell us what parameter is expected? We can’t figure it out