I am trying to share multi-page PDF with Ghostscript, and I found the same solution on other sites and even on ghostscript.com , namely:
gs -sDEVICE=pdfwrite -dSAFER -o outname.%d.pdf input.pdf
But it seems to me that this does not work for me, because it creates one file, with all pages and the name outname.1.pdf.
When I add the start and end pages, then it works fine, but I want it to work without knowing these options.
I found a solution for this in the gs-devel archive: http://ghostscript.com/pipermail/gs-devel/2009-April/008310.html - but I feel like I am doing this without pdf_info .
When I use another device, for example pswrite , but the same parameters, it works correctly, creating as many ps files as possible, since my input.pdf contains.
Is this normal when using pdfwrite ? Am I doing something wrong?
pdf-generation ghostscript
zseder Apr 19 2018-12-12T00: 00Z
source share