You are not logged in.

#1 2009-10-27 19:25:00

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

[SOLVED] resizing all pages of a pdf

Hello, I have this pdf which has the pages "undersized", I'm putting a screenshot:

screenshot002ug.th.jpg

I'd like a tool to convert this to a pdf with the written text occupying the whole page; the pdf has several hundred pages, so I'd like a global method (i.e. not doing it by hand page for page).
In other words, I need a tool which will get that upper left quarter with text in it, enlarge it to normal A4 and output it to a page in a new pdf.

What's the KISS way to go?

Last edited by Nareto (2009-10-30 09:46:06)

Offline

#2 2009-10-27 23:09:03

otti
Member
Registered: 2006-12-18
Posts: 64

Re: [SOLVED] resizing all pages of a pdf

Hm, you could convert every pdf-page to a image file (jpeg, etc.):
-install the package imagemagick
-use the command convert

convert -trim -density 150 your.pdf your.jpg

This will generate a jpg-file for every pdf-page; "-trim" removes the white margins, density specifies the resolution of the page (you could also try "-resize" instead of "-density") and 150 specifies amount of  dots per inch.

This does not generate a new pdf-file, but maybe there is a way to convert the images back into a single pdf?

Offline

#3 2009-10-27 23:14:40

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [SOLVED] resizing all pages of a pdf

If you can convert the file, convert it to postscript and use pstops to do the job and convert it again to pdf.

With this option you dont need to rasterize your image like the previous post.

Last edited by kazuo (2009-10-27 23:15:13)

Offline

#4 2009-10-28 07:52:06

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: [SOLVED] resizing all pages of a pdf

thanks. Do you know which package pstops is in?

Edit: it's psutils

Last edited by Nareto (2009-10-28 07:53:56)

Offline

#5 2009-10-28 14:50:10

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] resizing all pages of a pdf

Nareto wrote:

thanks. Do you know which package pstops is in?

Edit: it's psutils

Install pkgfile. It can answer questions like that a lot of the time:

~ > pkgfile pstops
extra/cups
extra/psutils

Offline

#6 2009-10-28 17:06:21

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: [SOLVED] resizing all pages of a pdf

If you have got LaTeX you could use pdfpages.


Arch x64 on Thinkpad X200s/W530

Offline

Board footer

Powered by FluxBB