View previous topic :: View next topic |
Author |
Message |
Jaglover Watchman


Joined: 29 May 2005 Posts: 6838 Location: Saint Amant, Acadiana
|
Posted: Wed Jul 11, 2018 4:04 pm Post subject: Cutting PDF |
|
|
Anyone knows how to extract part of PDF?
I tried pdfseparate, it created 50 files (correct, that's what I wanted) from 10.9 MB input file, each output file is 10.8 MB. Of course, then pdfunite creates a huge file from these. Is there a sane way to do it keeping the file size normal? _________________ Please learn how to denote units correctly! |
|
Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 5539 Location: Removed by Neddy
|
Posted: Wed Jul 11, 2018 6:13 pm Post subject: |
|
|
Print and then scan to pdf
Or use pdftk _________________ The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king |
|
Back to top |
|
 |
patrix_neo Guru


Joined: 08 Jan 2004 Posts: 510 Location: The Maldives
|
Posted: Wed Jul 11, 2018 6:56 pm Post subject: |
|
|
I do assembling of pdf:s all week at work, but how to split, I would suggest looking in to ghostscript. It can read page for page if executed right. At least when it comes to screenshot of a page.
Btw, ImageMagick is great to normalize sizes of pdf:s.
Here is a gateway to ImageMagick : http://www.fmwconcepts.com/imagemagick/index.php
Howto resize with ghostscript (untried by me)
Code: |
gs \
-o output.pdf \
-sDEVICE=pdfwrite \
-sPAPERSIZE=a4 \
-dFIXEDMEDIA \
-dPDFFitPage \
-dCompatibilityLevel=1.4 \
input.pdf
|
|
|
Back to top |
|
 |
Jaglover Watchman


Joined: 29 May 2005 Posts: 6838 Location: Saint Amant, Acadiana
|
|
Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 5539 Location: Removed by Neddy
|
Posted: Wed Jul 11, 2018 8:02 pm Post subject: |
|
|
Jaglover wrote: | http://asclinux.com/tmp/87_Electrical.pdf
I want to cut off the cruft and the output should have pages 57-110. Anyone wants to try?  |
https://drive.google.com/file/d/12BiSqJuE1sMulvs4UPjqZmDctBIkl9nS/view?usp=sharing
qpdf 87_Electrical.pdf --pages 87_Electrical.pdf 57-110 -- out.pdf _________________ The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king |
|
Back to top |
|
 |
patrix_neo Guru


Joined: 08 Jan 2004 Posts: 510 Location: The Maldives
|
Posted: Wed Jul 11, 2018 8:10 pm Post subject: |
|
|
Ridiculous...ly awesome. |
|
Back to top |
|
 |
Jaglover Watchman


Joined: 29 May 2005 Posts: 6838 Location: Saint Amant, Acadiana
|
|
Back to top |
|
 |
Dr.Willy Guru

Joined: 15 Jul 2007 Posts: 464 Location: NRW, Germany
|
Posted: Thu Jul 12, 2018 12:40 pm Post subject: |
|
|
I think many pdf viewers can do some minor editing.
I know mupdf ships with mutool, though I'm not quite sure what kind of stuff you can do with it. |
|
Back to top |
|
 |
|