Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Gs to split a pdf into multiple pages Post 302837001 by jossojjos on Thursday 25th of July 2013 03:16:07 AM
Old 07-25-2013
Yes, of course, there are other ways to do this, like with pdftk :

Code:
pdftk cinq_nostop.pdf burst output cinq_nostop%02d.pdf

Strangely, but luckily, it also works when I ask ghostscript to create ps files :

Code:
gs -dBATCH -dNOPAUSE -sDEVICE=pswrite -sOutputFile=cinq_nostop%03d.ps cinq_nostop.ps

The problem seems to be related to the pdfwrite device : splitting a pdf in ps files works, but not the other way round.

Best,
Jos
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Split text file by pages

Hello! Firts of all, I'm sorry for my English. My problem: I have text file with few Form Feed symbols (FF, ASCII code =12) inside (for example - some report, consists of some pages for printing). I want to split this text by pages - each page (until FF symbol) in single file. I... (2 Replies)
Discussion started by: ranri
2 Replies

2. Shell Programming and Scripting

how to get number of pages in a PDF file

Hello, Can anyone please help me providing script to get the number of pages in a PDF file? TIA Prvn (8 Replies)
Discussion started by: prvnrk
8 Replies

3. Shell Programming and Scripting

[Example] View man pages as pdf

This is a simple example of a shell script. I made it because it's sometimes convenient to search through a manpage and to have access to the terminal while you're reading (maybe to test code). It also serves as a basic example for anyone learning shell scripting. #!/bin/sh nm="/tmp/$1.pdf"... (0 Replies)
Discussion started by: CRGreathouse
0 Replies

4. UNIX for Advanced & Expert Users

creating pdf file with four pages

I have some code in fortran90, example stored in scode.f90 and I want to create a pdf containing the code. I would like to have four pages of code put into each page in the pdf. I was thinking of creating a ps file using mpage and then using ps2pdf after. However, I noticed that ps2pdf shift the... (4 Replies)
Discussion started by: kristinu
4 Replies

5. Shell Programming and Scripting

Split a text file into multiple pages based on pattern

Hi, I have a text file (attached the sample). I have also, attached the way the way the files need to be split. We get this file, that will either have 24 Jurisdictions, or will miss some and retain some. Like in the attached sample file, there are only Jurisdictions 03,11,14,15, 20 and 30.... (3 Replies)
Discussion started by: ebsus
3 Replies
PODOFOCOUNTPAGES(1)						 podofocountpages					       PODOFOCOUNTPAGES(1)

NAME
podofocountpages - count the number of pages in a pdf file SYNOPSIS
podofocountpages [-s] [-t] file1.pdf ... DESCRIPTION
podofocountpages is one of the command line tools from the PoDoFo library that provide several useful operations to work with PDF files. It counts the pages in a PDF file. OPTIONS
-s enable the short format, which omits printing of the filename to the output -t print the total number of pages SEE ALSO
podofobox(1), podofocrop(1), podofoencrypt(1), podofoimg2pdf(1), podofoimgextract(1), podofoimpose(1), podofoincrementalupdates(1), pod- ofomerge(1), podofopages(1), podofopdfinfo(1), podofotxt2pdf(1), podofotxtextract(1), podofouncompress(1), podofoxmp(1) AUTHOR
PoDoFo is written by Dominik Seichter <domseichter@web.de> and others. This manual page was written by Oleksandr Moskalenko <malex@debian.org> for the Debian Project (but may be used by others). PoDoFo 2010-12-09 PODOFOCOUNTPAGES(1)
All times are GMT -4. The time now is 07:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy