You are not logged in.
Hello, I have this pdf which has the pages "undersized", I'm putting a screenshot:
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
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
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
thanks. Do you know which package pstops is in?
Edit: it's psutils
Last edited by Nareto (2009-10-28 07:53:56)
Offline
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
If you have got LaTeX you could use pdfpages.
Arch x64 on Thinkpad X200s/W530
Offline