[OS X TeX] PDF resolution redux

Armin Goralczyk agoralczyk at gmail.com
Wed Aug 10 20:59:54 CEST 2005

Am 10.08.2005 um 13:00 schrieb Morten Høgholm:

> On Wed, 10 Aug 2005 12:49:48 +0200, Simon Spiegel  
> <simon at simifilm.ch> wrote:
>> Thanks. I just realized that my question wasn't put well. What I  
>> want is to tell Pdf(la)tex to scale down the document. Of course,  
>> I could downsample the individual images, but I'm looking for a  
>> solution which would allow to keep one version of the original  
>> images and have different pdfs created depending on the resolution  
>> I need on a specific occasion. Let's say a low resolution to put  
>> the document on the web and a high resolution for printing. So I  
>> don't want to manipulate the images but have pdftex downsample them.
> Look up \pdfimageresolution in the pdftex manual.

I tried to use '\pdfimageresolution 30' in the preamble but size of  
document did not change. Do I have to apply it to every image? Also  
from pdftex manual:

\pdfimageresolution (integer)
The integer \pdfimageresolution parameter (unit: dots per inch, dpi)  
is a last resort value, used only for bitmap (jpeg,
png) images, but not for pdfs. The priorities are as follows: Often  
one image dimension (width or height) is stated
explicitely in the TEX file. Then the image is properly scaled so  
that the aspect ratio is kept. If both image dimensions are
given, the image will be stretched accordingly, whereby the aspect  
ratio might get distorted. Only if no image dimension
is given in the TEX file, the image size will be calculated from its  
width and height in pixels, using the x and y resolution
values normally contained in the image file. If one of these  
resolution values is missing or weird (either < 0 or > 65535),
the \pdfimageresolution value will be used for both x and y  
resolution, when calculating the image size. And if the
\pdfimageresolution is zero, finally a default resolution of 72 dpi  
would be taken. The \pdfimageresolution is
read when pdfTEX creates an image via \pdfximage. The given value is  
clipped to the range 0..65535 [dpi].

Doesn't this imply use of \pdfimageresolution just in the case if a  
value for either width or height is missing? I am a novice so I may  
be wrong, but for me it is not working. What is wrong? Thanks for help.


------Mail Adress------
Armin Goralczyk
Wendenstr. 10
37073 Göttingen

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the macostex-archives mailing list