Package: xpdf-reader
Version: 3.01-1

On Thu, Aug 25, 2005 at 09:02:50AM +1000, Hamish Moffatt wrote:
> On Wed, Aug 24, 2005 at 07:42:13PM -0300, Fernando M. Maresca wrote:
> 
> The "xpdf" package is the best place for bugs that affect
> both xpdf-reader and xpdf-utils. But I'll reassign.
Ok. Sorry, xpdftops is part of xpdf-utils package.
> 
> > Problem: printed A5 page size .pdf file trhu cups produces an A4 page
> > size with centered A5 pdf in it. cups uses pdftops to convert to .ps and
> > the same problem appears printing from within xpdf-viewer and manually
> > converting the .pdf:
> > 
> > homero:~$ pdftops a.pdf a.ps
> > homero:~$ lp a.ps
> 
> Well, you need to tell Xpdf what type of paper you are using.
> On Debian it finds your default from /etc/papersize, and you can
> override it using "-paper <type>".
Yes. I have my /etc/papersize set and from /etc/cups/pdftops.conf (wich
is
lrwxrwxrwx  1 root root      14 2005-08-01 13:16 pdftops.conf -> 
../xpdf/xpdfrc):

# Set the default PostScript paper size -- this can be letter, legal,
# A4, or A3.  You can also specify a paper size as width and height
# (in points). Xpdf uses the paper size in /etc/papersize by default.

psPaperSize     match



> 
> It assumes that you always want to target your default paper size unless
> you say otherwise, rather than always converting an A5-size PDF to A5
> paper, for example.
Yes again.
> 
> However, Xpdf won't accept A5 as a paper type, which IS a problem.
> I'll forward this bug upstream.
No. There are several papersizes available to pdftops and in
the case of the .pdf files indicated, every paper is printed in A4 page
in the printer. You can set the paperh and paperh in ps points (for a5
this is 420 and 595) with an arbitrary pair of values and always the
printer page will got the .ps printed in a centerd A4, as:

[EMAIL PROTECTED]:~$ pdftops  -paperh 200 -paperw 100 /tmp/ot.pdf a.ps
[EMAIL PROTECTED]:~$ lp a.ps

produces a smaller ps centered in an a4 page at the printer. So pdftops
understands this switches, but the printout is still wrong.

I think the output is in A4 because the output is actually centered
in an A4 sheet. Ditto, changes in /etc/papersize or /etc/xpdf/xpdfrc
don't affect the printed output.

-- 
Fernando M. Maresca
- - - - - - - - - - - - -
Cel: 221 15 545 8196
Tel: 221 489 8196


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to