View Single Post
Old 10-17-2010, 05:27 PM   #1
kidblue
Connoisseur
kidblue began at the beginning.
 
Posts: 79
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
PDF dimension changing - Squeeze 'em!

I'm looking for an easy way to "squeeze" a text-based PDF to a specific width and height while not changing its formatting. This is for screenplays, to fit within a Kindle-sized screen. Most screenplays have much of their text in center-justified (for the "dialogue"), which would not end up "squeezed", but the descriptive text and scene headings would. That's the goal.

Any ideas for an easy, GUI-based walkthrough?

As per fabjous:

Quote:
Originally Posted by frabjous View Post
I know how to do that with the pdfpages package for pdflatex; some samples are attached. This might be kind of involved for someone who doesn't already know LaTeX, and quite a lot of software to install for so simple a task if this is all you were using it for. If you know what you're doing, it could be scripted, though.

So, see the samples. Basically, I created stretch.pdf by creating a TeX document with the following code:

Code:
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-,width=3in,height=6in,fitpaper]{normal.pdf}
\end{document}
Put it in the same folder as normal.pdf and ran pdflatex on the code.

Obviously you would need to change the width and height to the dimensions of the Kindle screen, which I don't know offhand.

A lot of tweaking would have to be done to ensure that things like metadata were preserved.

It might also be possible to do something like this with Inkscape or Ghostscript, but again, probably not in a user-friendly, straightforward way. If you really wanted to discuss it further, however, let's create a new thread on the idea, and not hijack the BRISS thread. (I wouldn't recommend adding this feature to BRISS...)
kidblue is offline   Reply With Quote