[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Printing .pdf files



on Mon, Sep 17, 2001 at 12:55:45PM +1000, mdevin@ozemail.com.au (mdevin@ozemail.com.au) wrote:
> On Mon, Sep 17, 2001 at 11:02:52AM +1000, mdevin@ozemail.com.au wrote:
> > On Sun, Sep 16, 2001 at 02:17:25AM -0700, Karsten M. Self wrote:
> > > on Fri, Sep 14, 2001 at 09:37:45AM +1000, mdevin@ozemail.com.au (mdevin@ozemail.com.au) wrote:
> > > > I am getting totally frustrated with trying to print .pdf files.
> > > > 
> > > > Here is my setup:
> > > > Printer: HP1220 - Laser with post-script level 2 emulation
> > > > Print driver: CUPS (the potato version - cupsys_1.0.4-9_i386.deb)
> > > > 
> > > > What happens is, I have heaps of trouble trying to stop the edges of
> > > > pages being chopped off.  It seems to print OK, but the top part of the
> > > > document is missing.  Yet there is a margin of some 7-8 mm at the top
> > > > with nothing.
> > > 
> > > I suspect you've got an A4 formatted document you're trying to print on
> > > US-letter paper.

<...>

> > > You'll want to dump pdf to postscript either through a viewer (xpdf
> > > *only* produces ps -- it doesn't print directly), or with the pdftops
> > > utility.
> > 
> > So what you are saying is that there really isn't anything that I
> > can use to play directly with the .pdf files.  I must first convert
> > them to .ps and then resize them etc.

Not that I'm aware of, but this isn't my area of expertise.  Google or a
document-related list might be a more useful option.

> OK, I tried doing the above.  However, when I did:
>
>     pdftops lect10.pdf
>
> The resultant file when viewed with gv doesn't have all the text
> anymore.  

Try printing to file from a PDF viewer instead.  You'll get postscript.
It may not be pretty.

Steps:

    - Print to file with, e.g.:  acroread[1] or xpdf
    - Resize:  psresize -pletter myfile.ps myfile-l.ps
    - Check results with gv.

> Btw, if I view the original lect10.pdf with xpdf, the text is missing
> also.  I can however read the whole document properly with gv.  But I
> can't seem to print to a file from gv.

Replace the print command (e.g.:  lpr) with something that will dump to
a file, e.g.:

    cat > /tmp/foo.ps

...should work.

--------------------
Notes:

1.  Note that this program is the product of Adobe Corporation, which
    filed a complaint resulting in the arrest and arraignment of Dmitry
    Sklyarov, on charges arising from the DMCA.  I strongly discourage
    the use of Adobe free software, and advocate boycotting Adobe's
    commercial products, until they actively advocate dropping all
    charges against Dmitry Sklyarov, his employer Elcom, Inc., and
    renounce support of the DMCA.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?              Home of the brave
  http://gestalt-system.sourceforge.net/                    Land of the free
   Free Dmitry! Boycott Adobe! Repeal the DMCA!  http://www.freesklyarov.org
Geek for Hire                      http://kmself.home.netcom.com/resume.html

Attachment: pgpTfu98ZZUwr.pgp
Description: PGP signature


Reply to: