You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Bert Strobbe <bs...@cce.be> on 2007/03/19 11:35:56 UTC

fop 0.93: postscript page-size+landscape

Hi everybody,

I have the following problem with fop 0.93 (and fop 0.92): in the XSL-FO
files we generate, the attributes page-width and page-height for the
simple-page-master are set to 210mm and 297mm depending on
portrait/landscape. The resulting PDF looks like expected and at first
sight, so does the PS. If I print the PDF, the result is fine, because I
print with the 'shrink to printable area' option. But if I print the PS
file there's some content that's not printed, more precisely at the top,
bottom, left and right. It looks like the PS doesn't take into account
that only a certain part of a page is printable. Fiddling around with
the margins of the simple-page-master could help with this, but is there
another way?
When I do a test with landscape width and height, the PDF is ok, but the
PS isn't. The text itself is in landscape, but the page is in portrait.
Am I supposed to use reference-orientation? I'd rather not use it,
because I would have to turn my head 90 degrees in order to read a
landscape document on screen and I already have a headache. I have the
impression the PS renderer doesn't do anything with the page-width and
page-height properties.

I don't know if anybody already came across the same problems. Are there
any guidelines regarding to setting margins and creating landscape
documents?

Thanks,

Bert


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: fop 0.93: postscript page-size+landscape

Posted by Chris Bowditch <bo...@hotmail.com>.
Bert Strobbe wrote:

> Hi everybody,
> 
> I have the following problem with fop 0.93 (and fop 0.92): in the XSL-FO
> files we generate, the attributes page-width and page-height for the
> simple-page-master are set to 210mm and 297mm depending on
> portrait/landscape. The resulting PDF looks like expected and at first
> sight, so does the PS. If I print the PDF, the result is fine, because I
> print with the 'shrink to printable area' option. But if I print the PS
> file there's some content that's not printed, more precisely at the top,
> bottom, left and right. It looks like the PS doesn't take into account
> that only a certain part of a page is printable. Fiddling around with
> the margins of the simple-page-master could help with this, but is there
> another way?

Setting the margins on the fo:simple-page-master element is the correct 
approach to dealing with unprintable areas on a page.

<snip/>

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: fop 0.93: postscript page-size+landscape

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
That's because if you print a PostScript file through a Windows printer
driver, the printer driver doesn't touch the file (RAW mode) and
therefore cannot do any tray handling. So no matter what you set in the
Windows printer driver, it won't have any effect on how the document is
printed.

It is possible to select a different tray by using a special FO
extension for the PostScript renderer to insert special PostScript
commands. But you have to know the exact command for your printer to get
that done (it depends on the printer). The extension is described here:
http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript

On 22.03.2007 14:18:27 Bert Strobbe wrote:
> Thanks Jeremias, this seems to work. 
> But now I have another question. If I define (on a Windows server) a
> printer and set the default tray to tray 2, everything I print except PS
> is sent to that tray. When I print a PS file, it's printed on paper from
> tray 1. Is it possible that the PS file contains data that indicates
> tray 1 has to be chosen in stead of the default tray of the printer?
> 
> Bert
<snip/> 

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: fop 0.93: postscript page-size+landscape

Posted by Bert Strobbe <bs...@cce.be>.
Thanks Jeremias, this seems to work. 
But now I have another question. If I define (on a Windows server) a
printer and set the default tray to tray 2, everything I print except PS
is sent to that tray. When I print a PS file, it's printed on paper from
tray 1. Is it possible that the PS file contains data that indicates
tray 1 has to be chosen in stead of the default tray of the printer?

Bert

-----Oorspronkelijk bericht-----
Van: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
Verzonden: woensdag 21 maart 2007 9:16
Aan: fop-users@xmlgraphics.apache.org
Onderwerp: Re: fop 0.93: postscript page-size+landscape

Hmm, it was a problem with the PSRenderer. It didn't generate the right
setpagedevice command when auto-rotate-landscape is true. Sorry for the
trouble. It is fixed now in SVN (Trunk):
http://svn.apache.org/viewvc?view=rev&rev=520797

On 20.03.2007 10:48:15 Bert Strobbe wrote:
> Yes, I am using that setting. Perhaps there's something wrong with the
> fo-file I generate? You'll find an example in attachment. I'm not
using
> the reference-orientation attribute... 
> 
> Bert
> 
> -----Oorspronkelijk bericht-----
> Van: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
> Verzonden: maandag 19 maart 2007 17:46
> Aan: fop-users@xmlgraphics.apache.org
> Onderwerp: Re: fop 0.93: postscript page-size+landscape
> 
> Have you tried the "auto-rotate-landscape" setting?
> http://xmlgraphics.apache.org/fop/0.93/configuration.html#ps-renderer
> 
> On 19.03.2007 11:35:56 Bert Strobbe wrote:
> > Hi everybody,
> > 
> > I have the following problem with fop 0.93 (and fop 0.92): in the
> XSL-FO
> > files we generate, the attributes page-width and page-height for the
> > simple-page-master are set to 210mm and 297mm depending on
> > portrait/landscape. The resulting PDF looks like expected and at
first
> > sight, so does the PS. If I print the PDF, the result is fine,
because
> I
> > print with the 'shrink to printable area' option. But if I print the
> PS
> > file there's some content that's not printed, more precisely at the
> top,
> > bottom, left and right. It looks like the PS doesn't take into
account
> > that only a certain part of a page is printable. Fiddling around
with
> > the margins of the simple-page-master could help with this, but is
> there
> > another way?
> > When I do a test with landscape width and height, the PDF is ok, but
> the
> > PS isn't. The text itself is in landscape, but the page is in
> portrait.
> > Am I supposed to use reference-orientation? I'd rather not use it,
> > because I would have to turn my head 90 degrees in order to read a
> > landscape document on screen and I already have a headache. I have
the
> > impression the PS renderer doesn't do anything with the page-width
and
> > page-height properties.
> > 
> > I don't know if anybody already came across the same problems. Are
> there
> > any guidelines regarding to setting margins and creating landscape
> > documents?
> > 
> > Thanks,
> > 
> > Bert



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: fop 0.93: postscript page-size+landscape

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Hmm, it was a problem with the PSRenderer. It didn't generate the right
setpagedevice command when auto-rotate-landscape is true. Sorry for the
trouble. It is fixed now in SVN (Trunk):
http://svn.apache.org/viewvc?view=rev&rev=520797

On 20.03.2007 10:48:15 Bert Strobbe wrote:
> Yes, I am using that setting. Perhaps there's something wrong with the
> fo-file I generate? You'll find an example in attachment. I'm not using
> the reference-orientation attribute... 
> 
> Bert
> 
> -----Oorspronkelijk bericht-----
> Van: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
> Verzonden: maandag 19 maart 2007 17:46
> Aan: fop-users@xmlgraphics.apache.org
> Onderwerp: Re: fop 0.93: postscript page-size+landscape
> 
> Have you tried the "auto-rotate-landscape" setting?
> http://xmlgraphics.apache.org/fop/0.93/configuration.html#ps-renderer
> 
> On 19.03.2007 11:35:56 Bert Strobbe wrote:
> > Hi everybody,
> > 
> > I have the following problem with fop 0.93 (and fop 0.92): in the
> XSL-FO
> > files we generate, the attributes page-width and page-height for the
> > simple-page-master are set to 210mm and 297mm depending on
> > portrait/landscape. The resulting PDF looks like expected and at first
> > sight, so does the PS. If I print the PDF, the result is fine, because
> I
> > print with the 'shrink to printable area' option. But if I print the
> PS
> > file there's some content that's not printed, more precisely at the
> top,
> > bottom, left and right. It looks like the PS doesn't take into account
> > that only a certain part of a page is printable. Fiddling around with
> > the margins of the simple-page-master could help with this, but is
> there
> > another way?
> > When I do a test with landscape width and height, the PDF is ok, but
> the
> > PS isn't. The text itself is in landscape, but the page is in
> portrait.
> > Am I supposed to use reference-orientation? I'd rather not use it,
> > because I would have to turn my head 90 degrees in order to read a
> > landscape document on screen and I already have a headache. I have the
> > impression the PS renderer doesn't do anything with the page-width and
> > page-height properties.
> > 
> > I don't know if anybody already came across the same problems. Are
> there
> > any guidelines regarding to setting margins and creating landscape
> > documents?
> > 
> > Thanks,
> > 
> > Bert



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: fop 0.93: postscript page-size+landscape

Posted by Bert Strobbe <bs...@cce.be>.
Yes, I am using that setting. Perhaps there's something wrong with the
fo-file I generate? You'll find an example in attachment. I'm not using
the reference-orientation attribute... 

Bert

-----Oorspronkelijk bericht-----
Van: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
Verzonden: maandag 19 maart 2007 17:46
Aan: fop-users@xmlgraphics.apache.org
Onderwerp: Re: fop 0.93: postscript page-size+landscape

Have you tried the "auto-rotate-landscape" setting?
http://xmlgraphics.apache.org/fop/0.93/configuration.html#ps-renderer

On 19.03.2007 11:35:56 Bert Strobbe wrote:
> Hi everybody,
> 
> I have the following problem with fop 0.93 (and fop 0.92): in the
XSL-FO
> files we generate, the attributes page-width and page-height for the
> simple-page-master are set to 210mm and 297mm depending on
> portrait/landscape. The resulting PDF looks like expected and at first
> sight, so does the PS. If I print the PDF, the result is fine, because
I
> print with the 'shrink to printable area' option. But if I print the
PS
> file there's some content that's not printed, more precisely at the
top,
> bottom, left and right. It looks like the PS doesn't take into account
> that only a certain part of a page is printable. Fiddling around with
> the margins of the simple-page-master could help with this, but is
there
> another way?
> When I do a test with landscape width and height, the PDF is ok, but
the
> PS isn't. The text itself is in landscape, but the page is in
portrait.
> Am I supposed to use reference-orientation? I'd rather not use it,
> because I would have to turn my head 90 degrees in order to read a
> landscape document on screen and I already have a headache. I have the
> impression the PS renderer doesn't do anything with the page-width and
> page-height properties.
> 
> I don't know if anybody already came across the same problems. Are
there
> any guidelines regarding to setting margins and creating landscape
> documents?
> 
> Thanks,
> 
> Bert



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



Re: fop 0.93: postscript page-size+landscape

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Have you tried the "auto-rotate-landscape" setting?
http://xmlgraphics.apache.org/fop/0.93/configuration.html#ps-renderer

On 19.03.2007 11:35:56 Bert Strobbe wrote:
> Hi everybody,
> 
> I have the following problem with fop 0.93 (and fop 0.92): in the XSL-FO
> files we generate, the attributes page-width and page-height for the
> simple-page-master are set to 210mm and 297mm depending on
> portrait/landscape. The resulting PDF looks like expected and at first
> sight, so does the PS. If I print the PDF, the result is fine, because I
> print with the 'shrink to printable area' option. But if I print the PS
> file there's some content that's not printed, more precisely at the top,
> bottom, left and right. It looks like the PS doesn't take into account
> that only a certain part of a page is printable. Fiddling around with
> the margins of the simple-page-master could help with this, but is there
> another way?
> When I do a test with landscape width and height, the PDF is ok, but the
> PS isn't. The text itself is in landscape, but the page is in portrait.
> Am I supposed to use reference-orientation? I'd rather not use it,
> because I would have to turn my head 90 degrees in order to read a
> landscape document on screen and I already have a headache. I have the
> impression the PS renderer doesn't do anything with the page-width and
> page-height properties.
> 
> I don't know if anybody already came across the same problems. Are there
> any guidelines regarding to setting margins and creating landscape
> documents?
> 
> Thanks,
> 
> Bert



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org