Re: undefined page length

2005-09-20 Thread Manuel Mall
On Tue, 20 Sep 2005 04:33 pm, Luca Furini wrote:
> Andreas L Delmelle wrote:
> > BTW: Is it a correct assessment that implementing this should turn
> > out to be far simpler than fixed page-sizes? IIC, theoretically,
> > the whole page-breaking algorithm can be ignored for indefinite
> > page-heights. getAvailableBPD() would always return, say,
> > Integer.MAX_VALUE?
>
> I don't think the breaking algorithm can be completely ignored, but
> it's a good idea to have getAvailableBPD() return an almost infinite
> value.
>

Wonder if we would run into a limitation here with respect to using int 
and mpt: Maxint = 2147483647mpt ~ 2147483pt ~ 3in ~ 75000cm ~ 2500 
A4 pages vertically. Probably not as this would be all one page kept in 
memory before rendering. An out of memory exception is the more likely 
outcome :-).

> Once the PageBreakingAlgorithm has created the single
> PageBreakPosition, it would be possible to use the stored difference
> in order to set the correct page height (otherwise the page would
> have height =
> Integer.MAX_VALUE even if it contains just a few lines).
>
> Regards
>  Luca
Manuel


Re: undefined page length

2005-09-20 Thread Luca Furini

Andreas L Delmelle wrote:

BTW: Is it a correct assessment that implementing this should turn out 
to be far simpler than fixed page-sizes? IIC, theoretically, the whole 
page-breaking algorithm can be ignored for indefinite page-heights. 
getAvailableBPD() would always return, say, Integer.MAX_VALUE?


I don't think the breaking algorithm can be completely ignored, but it's a 
good idea to have getAvailableBPD() return an almost infinite value.


Once the PageBreakingAlgorithm has created the single PageBreakPosition, 
it would be possible to use the stored difference in order to set the 
correct page height (otherwise the page would have height = 
Integer.MAX_VALUE even if it contains just a few lines).


Regards
Luca




Fwd: undefined page length

2005-09-19 Thread Andreas L Delmelle

Begin forwarded message (from fop-users)


From: Andreas L Delmelle <[EMAIL PROTECTED]>

On Sep 19, 2005, at 09:49, Jeremias Maerki wrote:


On 19.09.2005 09:36:49 Willy Reinhardt wrote:

Is it possible to create a pdf with all content into one page with
length adapted accordingly ?



No, this hasn't been implemented, yet. That would be
media-usage="bounded-in-one-dimension" on fo:root. Patches against FOP
Trunk are welcome.


For the sake of completeness:
page-height="indefinite" on fo:simple-page-master would also be 
relevant here, IIC.


BTW: Is it a correct assessment that implementing this should turn out 
to be far simpler than fixed page-sizes? IIC, theoretically, the whole 
page-breaking algorithm can be ignored for indefinite page-heights. 
getAvailableBPD() would always return, say, Integer.MAX_VALUE?


I'll look into it. Seems like a perfect opportunity to familiarize 
myself a bit more with the layout code.


If anyone has any pointers to offer, these would be much appreciated.

Cheers,

Andreas