Hi,
I split a multiple page pdf into multiple pdf. the sample code in ruby is here:
source_path=(path where splitted pdf will be store)
source_file=source_file_path
FileUtils.cd(source_path) // changing directory to target directory
`pdftk #{source_file} burst output page_%02d.pdf` // spliting pfd
this will split a n paged pdf into n pdfs inside the source_path directory named page_01.pdf ---- page_n.pdf.if you want to change the name pattern of pdfs then give it into output.
I split a multiple page pdf into multiple pdf. the sample code in ruby is here:
source_path=(path where splitted pdf will be store)
source_file=source_file_path
FileUtils.cd(source_path) // changing directory to target directory
`pdftk #{source_file} burst output page_%02d.pdf` // spliting pfd
this will split a n paged pdf into n pdfs inside the source_path directory named page_01.pdf ---- page_n.pdf.if you want to change the name pattern of pdfs then give it into output.
No comments:
Post a Comment