Any methods to do that silently?![Pdf Pdf](/uploads/1/2/5/8/125860239/629641669.jpg)
I've come this far with Ghostscript:
gswin32c -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=page%d.pdf multipage.pdf
which should split multipage.pdf into page1.pdf, page2.pdf, etc. but no cigar because:
'the one page per file feature is not supported by all devices; in particular it does not work with document-oriented output devices like pdfwrite ..'
and then the doc refers to the '-dFirstPage and -dLastPage switches .. for a way to extract single pdf pages.'
But that would mean I should somehow find out the count of pages, say 38, and then call Ghostscript 38 times - not very smart.
There must be some other method.
/gustav
![Pdf Pdf](/uploads/1/2/5/8/125860239/629641669.jpg)
Split each page of a pdf document into separate pdfs using GhostScript - extractpdf.bat. Consider using the poppler-utils tool pdfseparate instead: pdfseparate pdf-sample.pdf sample-%d.pdf.
I've come this far with Ghostscript:
gswin32c -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=page%d.pdf multipage.pdf
which should split multipage.pdf into page1.pdf, page2.pdf, etc. but no cigar because:
'the one page per file feature is not supported by all devices; in particular it does not work with document-oriented output devices like pdfwrite ..'
and then the doc refers to the '-dFirstPage and -dLastPage switches .. for a way to extract single pdf pages.'
But that would mean I should somehow find out the count of pages, say 38, and then call Ghostscript 38 times - not very smart.
There must be some other method.
/gustav