Open abulhuman opened 3 years ago
A little late but for future reference:
node_modules\pdf-poppler\lib\convert.js
if (opts.page) {
args.push(['-f']);
args.push([parseInt(opts.page)]);
args.push(['-l']);
args.push([parseInt(opts.page)]);
}
args.push(['-singlefile']);
Keep in mind this forces pdftocairo to only convert the first page and ignores all other pages.
I was trying this out and it worked fine but when it converts a file it adds an additional
-1
or-01
right before the file format. Like this, source filename:1622204835226-ASSEMBLY LANGUAGE.pdf
destination filename:1622204835226-ASSEMBLY LANGUAGE-01.png
or1622204835226-ASSEMBLY LANGUAGE-001.png
This adds an unnecessary complication since there is no way to determine the destination filename from the source filename. Is there any way that enables me to get the destination filename or even modify it?