Chris,

Thanks.

A PDF file is created, which is then sent to the printer (w/ proper
settings in the printer setup dialogue).

The scaling is in the PDF file itself -- or, at least, in the
PostScript I get by executing pdftops.

The labels are created via a custom web application connected to a
database, which creates an XML file. I wrote the XSLT that transforms
the XML to XSL:FO, which is then sent to (what I hope is) a standard
fop transform call through org.apache.fop.apps.Driver, which sends the
PDF file to the user's browser.

I can certainly excerpt the relevant code if you wish ....

Glad to see that the flags and stringparam don't mean anything to you,
either. I was afraid I'd lost my ability to read (or grep, anyway)
TFM.

Thanks again for your help.

Fred

-----Original Message-----
From: Chris Bowditch [mailto:[email protected]]
Sent: Tuesday, May 04, 2010 10:13 AM
To: [email protected]
Subject: Re: A4 automatically scaled to 8.5x11

Frederick Bartlett wrote:

> Hi!

Hi,

>
> I have a fop applications that prints labels on US letter paper; I need
> to revise it for A4.

I can see you are generating PDF, but how is the output sent to the
Printer via Adobe Reader or -print output on FOP command line?

>
> I can change the page-height and page-width in fo:simple-page-master --
> but, when I look at the resulting PDF, it's been scaled by .9406 (to fit
> US letter paper).

If printing via Adobe Reader you need to make sure all scaling options
are turned off and the printer is configured for A4 paper.

>
> I've seen references to XSLT_FLAGS and --stringparam paper.type="A4",
> but I don't see where to use such things in my Java code (which calls fop).

I'm not familar with that option. Are you using docbook?

>
> And it seems that this would be a FAQ, but I've been unable to find it.
>
> I'm using fop 0.95.
>
> Thanks for your help!
>

Chris

> Fred

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to