Hello Ivan

You're right, this could be a way to go. But I'm not sure if this
approach is supported by all PostScript printers, especially the HP ones
where quite a few things are special. So basically it comes down to the
problem of being able to test on various printers. I can test the
current code using GhostScript. I'm not so sure about device control
stuff like "PageSize". Sooner or later we will have to implement some
kind of PPD support but until then I think we should keep on the safe
side. So your subclassing looks fine to me. I'm open to suggestions on
how to improve on it in the redesign. Anyone interested to write a PPD

On 20.07.2003 23:06:20 IvanLatysh wrote:
> Recently I update the FOP , now I am having the fun with fop-0.20.5rc3a :-)
> In the last release you add the future to automatic switch orientation 
> (landscape,portrait).
> Here is my IMHO.
> Since rendered is dealing with the document, not with the media on the document 
> prints on, it is making no sense to decision about document layout.
> For example, the document have the dimension 10in * 5in. You would say that it is 
> the landscape layout, but this document can be printed on the letter paper, portrait 
> layout. 
> My point, it is an ambiguous decision to set page layout based on the page size when 
> you don't know what kind of media are going to be used.
> Some workaround:
> According to "PostScript® LANGUAGE REFERENCE third edition."
> [begin]
> PageSize:
> An array of two numbers, [width height], specifying the overall dimensions
> of the physical medium that were assumed during the generation of this
> page description.
> [bla, bla, bla]
> The PostScript interpreter
> will set up the transformation from user space to device space so that
> the longer and shorter dimensions specified by PageSize are properly oriented
> with those of the physical medium.
> [end]
> Here is interpreter will do the trick to set the page layout based on the page 
> dimensions, 
> because interpreter know about the media and about the document.
> It making more sense to specify PageSize instead of the layout.
> I did some experiments with it, and PageSize gives more realistic results.
> For myself I wrap PDFRenderer into my class, and overload
> >> public void renderPage(Page page)
> method.
> Looking forward to see your thought about.

Jeremias Maerki

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

Reply via email to