AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 1997

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1997.01.21 22:16 "tiff2ps conversion problems", by Rob Nielsen
1997.01.22 00:35 "Re: tiff2ps conversion problems", by Helge Blischke
1997.01.22 23:03 "Re: tiff2ps conversion problems", by Rob Nielsen

1997.01.22 23:03 "Re: tiff2ps conversion problems", by Rob Nielsen

> 
> Rob Nielsen wrote:
> > 
> > Hi,
> > 
> > I'm using tiff-v3.4beta035 and I've got some 22x17 inch tiff files that I'm
> > trying to 11x8.5 inch pdf files.  I'm using tiff2ps to create PostScript 
files,
> > and then am using Adobe's distiller to create the pdf file.  If I do:
> > 
> >    tiff2ps file.tiff | distill -compatlevel 3.0 -resolution 300 > file.pdf
> > 
> > I get page size of 22x17 inches and the image occupies the whole page.
> > 
> > If I do:
> > 
> >     tiff2ps -h 8.5 -w 11 file.tiff | distill -compatlevel 3.0 -resolution 
300 >
> >     file.pdf
> > 
> > I get a page size of 22x17 inches and the file occupies 1/4 of the page 
(11x8.5
> > inches) with acroreader.
> > 
> > Any ideas how I can make the page size 11x8.5 and have the image occupy the
> > whole page?
> > 
> > I can send you the tiff, ps, or pdf files if you'd like to see them.
> > 
> > Thanks,
> > 
> > Rob
> > 
> > ---
> > Rob Nielsen                   rob_nielsen@adc.com
> > ADC Telecommunications, Inc.  
http://www.cs.ndsu.nodak.edu/alumni/rob_nielsen
> > 4900 West 78th Street         (612) 896-2706
> > Minneapolis, MN  55345        (612) 896-2959 - fax
> 
> 
> The reason for your problem is, I think, that tiff2ps outputs
> an EPS file, i. e. a device independent PostScript image which has
> to be properly embedded into a PostScript job.
> If you have a look at the EPS file produced, you'll see a comment
> line like
> %%BoundingBox 0 0 1584 1224
> which is the smallest rectangle enclosing all elements of the
> image. If your page size is 11x8.5 inches, i. e. - in PostScript
> units - the box 0 0 792 612, you should prepend something
> like the following to the tff2ps output:
> %!PS-Adobe
> <</PageSize [792 612]>>setpagedevice % define the size of phys. page
> 0 0 translate % put the image origin onto the lower left corner
> 1585 0 sub 792 0 sub div 1224 0 sub 612 0 sub div % scale the image down
> % include the image here
> 
> For detailed information, refer to Adobe's "red book", 2nd edition,
> App. H, Encapsulated PostScript File Format.
> 
> I think this mini header will settle your problem.
> 
> Helge.
> 

This solved the problem.  Is this a bug with tiff2ps?

> By the way, do you have a distiller for UNIX? If so, where
> can I get one?

I'm using Adobe distiller 3.0 for Solaris, it's $300.  You can get it
from adobe.

Rob
---
Rob Nielsen                   rob_nielsen@adc.com
ADC Telecommunications, Inc.  http://www.cs.ndsu.nodak.edu/alumni/rob_nielsen 
4900 West 78th Street         (612) 896-2706
Minneapolis, MN  55345        (612) 896-2959 - fax