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 "Steffanina, Jeff" <Je...@marriott.com> on 2009/02/02 15:01:21 UTC

Suppress the Form-Feed at the end of a page-sequence

Fop-0.95
Java1.5
Linux

Is there anything I can code that will prevent the "natural" form feed
at the end of a page-sequence?



Jeff 

RE: Suppress the Form-Feed at the end of a page-sequence

Posted by "Amick, Eric" <Er...@mail.house.gov>.
By definition, page-sequences generate complete pages. What are you
trying to do? If you're trying to have more than one flow contribute to
a single page-sequence, I don't think you can do that in FOP; though FO
1.1 has a feature called flow maps that allows such a thing, it's not
implemented in FOP.
 
Eric Amick
Legislative Computer Systems
Office of the Clerk
 

________________________________

From: Steffanina, Jeff [mailto:Jeff.Steffanina@marriott.com] 
Sent: Monday, February 2, 2009 9:01
To: fop-users@xmlgraphics.apache.org
Subject: Suppress the Form-Feed at the end of a page-sequence




Fop-0.95 
Java1.5 
Linux 

Is there anything I can code that will prevent the "natural" form feed
at the end of a page-sequence? 



Jeff 


Re: Suppress the Form-Feed at the end of a page-sequence

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 03.02.2009 18:38:55 Andreas Delmelle wrote:
> On 03 Feb 2009, at 17:23, Steffanina, Jeff wrote:
> 
> >
> > To clarify:  Current Process
> > When you come to the end of a page-sequence, FOP automatically  
> > executes
> > a form feed and continues at the top of the NEXT page.
> >
> >
> > Desired Process:
> > When you get to the end of a page-sequence, do NOT advance to the  
> > top of
> > the next page.  Instead, continue printing exactly where you left  
> > off on
> > the same page.
> 
> In that case, the answer is no for the area-tree based renderers (PDF,  
> PS, Java2D...).  Layout is performed for each page-sequence  
> separately, which is precisely the reason why splitting a document  
> into multiple page-sequences has a beneficial impact on memory usage.  
> The last page of a sequence and the first page of the next sequence  
> are distinct objects in the area tree.

Ah, now I get what Jeff probably means. Andreas is right here. XSL-FO
requires that behaviour.

> If I understand Jeremias' question correctly, then something like that  
> MAY be possible for the RTFHandler or TextHandler, since they do not  
> rely on the information in the area tree, but process the FO events  
> directly.

Plain text output is implemented as a renderer. The reason I asked about
plain text output is that form feeds are used there. I assumed (without
checking) there might be unwanted form feeds at the end of the document
and a printer might spit out an empty page because of that.


Jeremias Maerki


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


Re: Suppress the Form-Feed at the end of a page-sequence

Posted by Andreas Delmelle <an...@telenet.be>.
On 06 Feb 2009, at 19:26, Steffanina, Jeff wrote:

Hi Jeff

>
> What output format are talking about? Plain Text?
> I am creating a .pdf.  The large page-sequence is basically a 5,000  
> row
> table.

In that case, I'm afraid you have a hit a limitation in FOP.
FOP works at its best with small to medium-sized page-sequences (since  
we can recycle the memory occupied by objects for the first page- 
sequence before we begin processing the next).
If it is at all possible, we therefore advise to use separate page- 
sequences. If you have the requirement of producing one single  
continuous flow, then this piece of advice won't get you anywhere,  
unfortunately... :-(

So, I fear there is no easy answer to your issue, apart from reworking  
FOP to start processing page-sequences much sooner than is currently  
the case.


Regards

Andreas

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


RE: Suppress the Form-Feed at the end of a page-sequence

Posted by "Steffanina, Jeff" <Je...@marriott.com>.
 What output format are talking about? Plain Text?
I am creating a .pdf.  The large page-sequence is basically a 5,000 row
table.


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
jeff.steffanina@marriott.com

    This communication contains information from Marriott International,
Inc. that may be confidential. Except for personal use by the intended
recipient, or as expressly authorized by the sender, any person who
receives this information is prohibited from disclosing, copying,
distributing, and/or using it. If you have received this communication
in error, please immediately delete it and all copies, and promptly
notify the sender. Nothing in this communication is intended as an
electronic signature under applicable law.


-----Original Message-----
From: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
Sent: Tuesday, February 03, 2009 11:56 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Suppress the Form-Feed at the end of a page-sequence

What output format are talking about? Plain Text?

On 03.02.2009 17:23:43 Steffanina, Jeff wrote:
> 
> To clarify:  Current Process
> When you come to the end of a page-sequence, FOP automatically
executes
> a form feed and continues at the top of the NEXT page.
> 
> 
> Desired Process:
> When you get to the end of a page-sequence, do NOT advance to the top
of
> the next page.  Instead, continue printing exactly where you left off
on
> the same page.
> 
>  
> 
> 
> Jeff 
> 
> -----Original Message-----
> From: Andreas Delmelle [mailto:andreas.delmelle@telenet.be] 
> Sent: Monday, February 02, 2009 12:10 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Suppress the Form-Feed at the end of a page-sequence
> 
> On 02 Feb 2009, at 15:01, Steffanina, Jeff wrote:
> 
> Hi Jeff
> 
> >
> > Fop-0.95
> > Java1.5
> > Linux
> >
> > Is there anything I can code that will prevent the "natural" form  
> > feed at the end of a page-sequence?
> >
> Do you mean you get a blank page at the end of the page-sequence? If  
> so, check the "force-page-count" property on the page-sequence.
> If this is not the issue, then I'm not sure what you mean...
> 
> 
> Regards
> 
> Andreas



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: Suppress the Form-Feed at the end of a page-sequence

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
What output format are talking about? Plain Text?

On 03.02.2009 17:23:43 Steffanina, Jeff wrote:
> 
> To clarify:  Current Process
> When you come to the end of a page-sequence, FOP automatically executes
> a form feed and continues at the top of the NEXT page.
> 
> 
> Desired Process:
> When you get to the end of a page-sequence, do NOT advance to the top of
> the next page.  Instead, continue printing exactly where you left off on
> the same page.
> 
>  
> 
> 
> Jeff 
> 
> -----Original Message-----
> From: Andreas Delmelle [mailto:andreas.delmelle@telenet.be] 
> Sent: Monday, February 02, 2009 12:10 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Suppress the Form-Feed at the end of a page-sequence
> 
> On 02 Feb 2009, at 15:01, Steffanina, Jeff wrote:
> 
> Hi Jeff
> 
> >
> > Fop-0.95
> > Java1.5
> > Linux
> >
> > Is there anything I can code that will prevent the "natural" form  
> > feed at the end of a page-sequence?
> >
> Do you mean you get a blank page at the end of the page-sequence? If  
> so, check the "force-page-count" property on the page-sequence.
> If this is not the issue, then I'm not sure what you mean...
> 
> 
> Regards
> 
> Andreas



Jeremias Maerki


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


Re: Suppress the Form-Feed at the end of a page-sequence

Posted by Vincent Hennebert <vh...@gmail.com>.
Hi,

Christopher R. Maden wrote:
> Steffanina, Jeff wrote:
>> Unfortunately, the "single" page-sequence is so large that I run out of
>> memory.
> 
> The problem is that figuring out a pagination strategy consumes memory.
>  The page-sequence is one way FOP knows that it can stop calculating
> pagination and issue a bunch of complete pages; if pagination continued
> across page-sequences, you’d have the same memory problem with multiple
> page-sequences.
> 
> I wonder if FOP could “harden” pages after some window, say 100 pages,
> and free the relevant memory, regardless of page-sequence breaks.  That
> would address your problem and several others’.

This is a secondary goal of the work I am doing at the moment. The
primary goal is to implement support for sequences of pages that don’t
all have the same width (e.g., switches from portrait to landscape
layout). One of the requirements of the new approach is to make it
possible to handle documents of arbitrary sizes. And a candidate
solution for this indeed is to have some kind of n-page window.

This is a long-term project though, so don’t expect any breaking news on
this before a while...

Vincent

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


Re: Suppress the Form-Feed at the end of a page-sequence

Posted by "Christopher R. Maden" <cr...@maden.org>.
Steffanina, Jeff wrote:
> Unfortunately, the "single" page-sequence is so large that I run out of
> memory.

The problem is that figuring out a pagination strategy consumes memory.
 The page-sequence is one way FOP knows that it can stop calculating
pagination and issue a bunch of complete pages; if pagination continued
across page-sequences, you’d have the same memory problem with multiple
page-sequences.

I wonder if FOP could “harden” pages after some window, say 100 pages,
and free the relevant memory, regardless of page-sequence breaks.  That
would address your problem and several others’.

~Chris
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“All I ask of living is to have no chains on me,
 And all I ask of dying is to go naturally.” — Laura Nyro
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319

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


RE: Suppress the Form-Feed at the end of a page-sequence

Posted by "Steffanina, Jeff" <Je...@marriott.com>.
Unfortunately, the "single" page-sequence is so large that I run out of
memory.
 


Jeff Steffanina
FOSSE Development,  Bethesda, MD
(301)380-2047
jeff.steffanina@marriott.com

    This communication contains information from Marriott International,
Inc. that may be confidential. Except for personal use by the intended
recipient, or as expressly authorized by the sender, any person who
receives this information is prohibited from disclosing, copying,
distributing, and/or using it. If you have received this communication
in error, please immediately delete it and all copies, and promptly
notify the sender. Nothing in this communication is intended as an
electronic signature under applicable law.


-----Original Message-----
From: Christopher R. Maden [mailto:crism@maden.org] 
Sent: Tuesday, February 03, 2009 4:03 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Suppress the Form-Feed at the end of a page-sequence

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steffanina, Jeff wrote:
> To clarify:  Current Process
> When you come to the end of a page-sequence, FOP automatically
executes
> a form feed and continues at the top of the NEXT page.
> 
> Desired Process:
> When you get to the end of a page-sequence, do NOT advance to the top
of
> the next page.  Instead, continue printing exactly where you left off
on
> the same page.

As well ask a dog to meow... this is pretty much what page-sequences do,
what they're for.  It sounds like your document needs to be one long(?)
page-sequence.

~Chris
- --
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
"All I ask of living is to have no chains on me,
 And all I ask of dying is to go naturally." - Laura Nyro
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmIsNkACgkQGfhmdwB3wxlKKACg3eM7XQH1kQgZIGlkbMl40aGe
RywAn0YbuJmd6PQt+spB890bBGZYaWoE
=1lEB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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: Suppress the Form-Feed at the end of a page-sequence

Posted by "Christopher R. Maden" <cr...@maden.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steffanina, Jeff wrote:
> To clarify:  Current Process
> When you come to the end of a page-sequence, FOP automatically executes
> a form feed and continues at the top of the NEXT page.
> 
> Desired Process:
> When you get to the end of a page-sequence, do NOT advance to the top of
> the next page.  Instead, continue printing exactly where you left off on
> the same page.

As well ask a dog to meow... this is pretty much what page-sequences do,
what they’re for.  It sounds like your document needs to be one long(?)
page-sequence.

~Chris
- --
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“All I ask of living is to have no chains on me,
 And all I ask of dying is to go naturally.” — Laura Nyro
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmIsNkACgkQGfhmdwB3wxlKKACg3eM7XQH1kQgZIGlkbMl40aGe
RywAn0YbuJmd6PQt+spB890bBGZYaWoE
=1lEB
-----END PGP SIGNATURE-----

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


Re: Suppress the Form-Feed at the end of a page-sequence

Posted by Andreas Delmelle <an...@telenet.be>.
On 03 Feb 2009, at 17:23, Steffanina, Jeff wrote:

>
> To clarify:  Current Process
> When you come to the end of a page-sequence, FOP automatically  
> executes
> a form feed and continues at the top of the NEXT page.
>
>
> Desired Process:
> When you get to the end of a page-sequence, do NOT advance to the  
> top of
> the next page.  Instead, continue printing exactly where you left  
> off on
> the same page.

In that case, the answer is no for the area-tree based renderers (PDF,  
PS, Java2D...).  Layout is performed for each page-sequence  
separately, which is precisely the reason why splitting a document  
into multiple page-sequences has a beneficial impact on memory usage.  
The last page of a sequence and the first page of the next sequence  
are distinct objects in the area tree.
If I understand Jeremias' question correctly, then something like that  
MAY be possible for the RTFHandler or TextHandler, since they do not  
rely on the information in the area tree, but process the FO events  
directly.


Cheers

Andreas

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


RE: Suppress the Form-Feed at the end of a page-sequence

Posted by "Steffanina, Jeff" <Je...@marriott.com>.
To clarify:  Current Process
When you come to the end of a page-sequence, FOP automatically executes
a form feed and continues at the top of the NEXT page.


Desired Process:
When you get to the end of a page-sequence, do NOT advance to the top of
the next page.  Instead, continue printing exactly where you left off on
the same page.

 


Jeff 

-----Original Message-----
From: Andreas Delmelle [mailto:andreas.delmelle@telenet.be] 
Sent: Monday, February 02, 2009 12:10 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Suppress the Form-Feed at the end of a page-sequence

On 02 Feb 2009, at 15:01, Steffanina, Jeff wrote:

Hi Jeff

>
> Fop-0.95
> Java1.5
> Linux
>
> Is there anything I can code that will prevent the "natural" form  
> feed at the end of a page-sequence?
>
Do you mean you get a blank page at the end of the page-sequence? If  
so, check the "force-page-count" property on the page-sequence.
If this is not the issue, then I'm not sure what you mean...


Regards

Andreas

---------------------------------------------------------------------
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: Suppress the Form-Feed at the end of a page-sequence

Posted by Andreas Delmelle <an...@telenet.be>.
On 02 Feb 2009, at 15:01, Steffanina, Jeff wrote:

Hi Jeff

>
> Fop-0.95
> Java1.5
> Linux
>
> Is there anything I can code that will prevent the "natural" form  
> feed at the end of a page-sequence?
>
Do you mean you get a blank page at the end of the page-sequence? If  
so, check the "force-page-count" property on the page-sequence.
If this is not the issue, then I'm not sure what you mean...


Regards

Andreas

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