Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Changing the size of all pages in a PDF

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

Azoth
Brolly Dolly



Joined: 07 Jul 2016
Karma :

PostPosted: 21:17 - 27 Oct 2016    Post subject: Changing the size of all pages in a PDF Reply with quote

Some old books are currently only available as PDF files. The pages in these PDF files are A4-sized or larger. I want to order, and send to myself, one-off, bound, hard copies from these files, using a print-on-demand service. The POD company offers several different product options depending on page size. The sizes of each page in the scanned PDF files are inconvenient.

Does anyone know of an easy way to scale the sizes of all pages in a PDF document, without Adobe Pro? There are free online programs hosted by some websites that do it, but they apply a small size limit for the PDF files. There are some complex ways to do what I want to do, such as splitting up the PDF file and feeding each smaller file to the server-side web application to process all of them, or converting the PDF to a lot of image files, scaling them, then printing to PDF. But it would be nicer if there was a less labour-intensive solution.

Thanks
____________________
Safety in numbers
 Back to top
View user's profile Send private message You must be logged in to rate posts

ScaredyCat
World Chat Champion



Joined: 19 May 2012
Karma :

PostPosted: 21:43 - 27 Oct 2016    Post subject: Reply with quote

imagemagick can convert pages to png, scale and rebuild a PDF with them. I had to do this with a pdf presentation that was originally 279Mb - after saving them out as pngs and reforming, it was an 18Mb file that loaded in a fraction of the time.

Code:


SOURCE=MY_SOURCE

convert -density 150 -trim "${SOURCE}.pdf" -resize 1280x -quality 100 "./Out/${SOURCE}-%03d.png"

convert "*.{png}" ${SOURCE}_NEW.pdf



You can use pngquant to compress the pngs first, if required.

-trim removes the surrounding whitespace, you may need to experiment with that setting to see what's best.

Just pointing out the obvious, you want to scale the images with the same output ratio as the input, otherwise you'll get squashed or stretched text.


PDFJam is also another option...
____________________
Honda CBF125 ➝ NC700X
Honda CBF125 ↳ Speed Triple


Last edited by ScaredyCat on 22:00 - 27 Oct 2016; edited 1 time in total
 Back to top
View user's profile Send private message You must be logged in to rate posts

Azoth
Brolly Dolly



Joined: 07 Jul 2016
Karma :

PostPosted: 21:59 - 27 Oct 2016    Post subject: Reply with quote

Pages to numbered PNG files, then resize, then convert star dot PNG back to PDF, all using some sort of command line interface. OK, I think that should do for me. I'll give it a shot. Many thanks
____________________
Safety in numbers
 Back to top
View user's profile Send private message You must be logged in to rate posts

Jayy
Mr. Ponzi



Joined: 08 Jun 2009
Karma :

PostPosted: 23:57 - 27 Oct 2016    Post subject: Reply with quote

What books are they? They obviously existed in book format at some stage and assume they are quite rare to find?

I literally have access to millions of physical books. Only problem is, they aren't exactly sorted and spread over two locations 250 miles apart but if you gave a list, I could get people to keep an eye out for them?

Thumbs Up
 Back to top
View user's profile Send private message You must be logged in to rate posts

Azoth
Brolly Dolly



Joined: 07 Jul 2016
Karma :

PostPosted: 00:11 - 28 Oct 2016    Post subject: Reply with quote

Thanks Jayy. You work for BL I presume. These books are from the 1950s and concern the physics and maths of valve amplifiers, a subject I'm trying to learn about. They were recommended to me on an internet forum. They still exist and can be obtained through BL catalogues or through university libraries, but aren't currently in print. You can download them online as clear PDFs. But reading on the screen isn't how I'm going to digest this stuff, which is a bit dry. It's easier, quicker and cheaper for me to click a couple of times from home, have them printed and bound and posted to my house than looking around. I appreciate the offer.
____________________
Safety in numbers
 Back to top
View user's profile Send private message You must be logged in to rate posts

Jayy
Mr. Ponzi



Joined: 08 Jun 2009
Karma :

PostPosted: 16:49 - 28 Oct 2016    Post subject: Reply with quote

Tawny wrote:
Thanks Jayy. You work for BL I presume. These books are from the 1950s and concern the physics and maths of valve amplifiers, a subject I'm trying to learn about. They were recommended to me on an internet forum. They still exist and can be obtained through BL catalogues or through university libraries, but aren't currently in print. You can download them online as clear PDFs. But reading on the screen isn't how I'm going to digest this stuff, which is a bit dry. It's easier, quicker and cheaper for me to click a couple of times from home, have them printed and bound and posted to my house than looking around. I appreciate the offer.


BL? I work in web design, my brother owns a Book Charity which has millions of books... yeah no worries, if you ever do want to track down a book which may prove difficult to find, drop me a PM Smile
 Back to top
View user's profile Send private message You must be logged in to rate posts

ScaredyCat
World Chat Champion



Joined: 19 May 2012
Karma :

PostPosted: 17:38 - 28 Oct 2016    Post subject: Reply with quote

Jayy wrote:
my brother owns a Book Charity which has millions of books... yeah no worries, if you ever do want to track down a book which may prove difficult to find, drop me a PM Smile


You think he could get "Fly fishing" by J. R. Hartley?
____________________
Honda CBF125 ➝ NC700X
Honda CBF125 ↳ Speed Triple
 Back to top
View user's profile Send private message You must be logged in to rate posts

Lord Percy
World Chat Champion



Joined: 03 Aug 2012
Karma :

PostPosted: 15:19 - 29 Oct 2016    Post subject: Reply with quote

There's a program called Calibre which deals with e-books of all types including PDF.

You can convert from one version to another. E-book file types are a bit iffy but PDF output is fine. I converted a book just yesterday, from epub to PDF.

PDF to PDF would have no problem at all, I expect. Pages with pictures can sometimes cause a slight hiccup so that's the only thing to look out for.

You can specify everything in the conversion process, including font style, size, spacing, page size etc.

Calibre download
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 9 years, 110 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.06 Sec - Server Load: 0.61 - MySQL Queries: 14 - Page Size: 57.54 Kb