RE: Suppress the Form-Feed at the end of a page-sequence
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.steffan...@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
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.delme...@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-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Urgent Question about FOP-hyphenation-wrap
Hi, I am trying to wrap data within a cell so it does not overflow to the next column. I have tried the following already (which do not work for me): keep-together.within-column=always for cell or for block wrap-option=wrap for cell or for block I am also using hyphenation. It works perfectly for everything except data that has an _ (underscore in it). I have attached my resulting PDF as an example. What can I do to get this data that has underscores in it to wrap within the cell? I am using FOP 0.95 Any help is much appreciated. If this is not the correct email address for such a question, please let me know the exact email address where I can post such a question. Thanks, Ashwini Ashwini Sawant Impact Systems, Inc. 20 Montchanin Road Suite A-5 Greenville, DE 19807 302-573-6864 ext 206 office ashwini.saw...@impactinfosys.com image001.jpg dmadmin_02-03-2009_105731.pdf Description: Adobe PDF document - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
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.delme...@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-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Urgent Question about FOP-hyphenation-wrap
Please see: http://xmlgraphics.apache.org/fop/faq.html#cells-overflow You've reached the right place, BTW. However, you can reach the mailing list more quickly if you subscribe to it. Otherwise, your posts have to go through moderation first. This time you were lucky. ;-) More info: http://xmlgraphics.apache.org/fop/maillist.html#fop-user On 03.02.2009 17:39:26 Ashwini Sawant wrote: Hi, I am trying to wrap data within a cell so it does not overflow to the next column. I have tried the following already (which do not work for me): keep-together.within-column=always for cell or for block wrap-option=wrap for cell or for block I am also using hyphenation. It works perfectly for everything except data that has an _ (underscore in it). I have attached my resulting PDF as an example. What can I do to get this data that has underscores in it to wrap within the cell? I am using FOP 0.95 Any help is much appreciated. If this is not the correct email address for such a question, please let me know the exact email address where I can post such a question. Thanks, Ashwini Ashwini Sawant Impact Systems, Inc. 20 Montchanin Road Suite A-5 Greenville, DE 19807 302-573-6864 ext 206 office ashwini.saw...@impactinfosys.com Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Suppress the Form-Feed at the end of a page-sequence
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-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: cell number overflow
Hi, fopuser wrote: Hi there! Well, I could bet, that this has already been an issue. however, I didn't find anything in the archives. I'm trying to move an old piece-a-code from fop 0.20 to fop 0.95. Here are the details: - java v1.6.0 - fop 0.95 snip/ As one can see, there is a table defined with two columns per row. The table itself calls a template, which contains four columns per row. Using FOP 0.20, this works perfectly well. Using FOP 0.95, I get the following error: Error(232/15): column-number or number of cells in the row overflows the number of fo:table-column specified for the table. Now, questions are: - are there any settings, which allow to ignore such things? - should they be ignored, at all? You have two solutions: either you put additional fo:table-column elements to match the actual number of columns in the table, or you remove all the fo:table-column elements completely. In the latter case the whole table will be parsed to infer the number of columns. This behaviour aims at satisfying both kind of users. Those who want performance specify table-column elements, which gives the number of columns in the table and allows to immediately start the layout; but that means that cells in the table must match the number of columns. Those who want flexibility need not bother to specify table-columns, but then that requires to parse the whole table once before starting the layout. One could imagine to fix the stylesheet. However, the stylesheet has a total length of 6200 lines. It's quite painfull to fix it. I'll appretiate your opinions. HTH, Vincent - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Urgent Question about FOP-hyphenation-wrap
Thanks for the reply Jeremias. However like I said in my post setting keep-together.within-column=always for fo:table-cell did not work for me. The only thing that seems to work in my case is the hyphenation. However the hyphenation pattern I am using (the only setting I have done for this is language=en) does not hyphenate words that have _ in them. Is there any other hyphenation pattern to be used? I also tried using the keep-together.within-column=always without the hyphenation, that worsened the situation. Since then all the text that was being hyphenated before also overflows the cells. Following is my code block for a cell: fo:table-cell border-start-style=solid border-after-style=solid border-before-style=solid border-end-style=solid keep-together.within-column=always fo:block font-weight=normal text-align=left hyphenate=true xsl:value-of select=object_name/ /fo:block /fo:table-cell anything I can change in this that will help? ..Ashwini Ashwini Sawant Impact Systems, Inc. 20 Montchanin Road Suite A-5 Greenville, DE 19807 302-573-6864 ext 206 office ashwini.saw...@impactinfosys.com -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Tuesday, February 03, 2009 12:00 PM To: fop-users@xmlgraphics.apache.org Cc: Ashwini Sawant Subject: Re: Urgent Question about FOP-hyphenation-wrap Please see: http://xmlgraphics.apache.org/fop/faq.html#cells-overflow You've reached the right place, BTW. However, you can reach the mailing list more quickly if you subscribe to it. Otherwise, your posts have to go through moderation first. This time you were lucky. ;-) More info: http://xmlgraphics.apache.org/fop/maillist.html#fop-user On 03.02.2009 17:39:26 Ashwini Sawant wrote: Hi, I am trying to wrap data within a cell so it does not overflow to the next column. I have tried the following already (which do not work for me): keep-together.within-column=always for cell or for block wrap-option=wrap for cell or for block I am also using hyphenation. It works perfectly for everything except data that has an _ (underscore in it). I have attached my resulting PDF as an example. What can I do to get this data that has underscores in it to wrap within the cell? I am using FOP 0.95 Any help is much appreciated. If this is not the correct email address for such a question, please let me know the exact email address where I can post such a question. Thanks, Ashwini Ashwini Sawant Impact Systems, Inc. 20 Montchanin Road Suite A-5 Greenville, DE 19807 302-573-6864 ext 206 office ashwini.saw...@impactinfosys.com Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Urgent Question about FOP-hyphenation-wrap
The FAQ entry I gave you doesn't mention keep-together at all. As you noticed, it won't help you with this. What you should look at is inserting zero-width spaces. Please note, this topic has been discussed numerous times on this list. You'll also find those threads in the mailing list archives. On 03.02.2009 19:08:01 Ashwini Sawant wrote: Thanks for the reply Jeremias. However like I said in my post setting keep-together.within-column=always for fo:table-cell did not work for me. The only thing that seems to work in my case is the hyphenation. However the hyphenation pattern I am using (the only setting I have done for this is language=en) does not hyphenate words that have _ in them. Is there any other hyphenation pattern to be used? I also tried using the keep-together.within-column=always without the hyphenation, that worsened the situation. Since then all the text that was being hyphenated before also overflows the cells. Following is my code block for a cell: fo:table-cell border-start-style=solid border-after-style=solid border-before-style=solid border-end-style=solid keep-together.within-column=always fo:block font-weight=normal text-align=left hyphenate=true xsl:value-of select=object_name/ /fo:block /fo:table-cell anything I can change in this that will help? ..Ashwini Ashwini Sawant Impact Systems, Inc. 20 Montchanin Road Suite A-5 Greenville, DE 19807 302-573-6864 ext 206 office ashwini.saw...@impactinfosys.com -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Tuesday, February 03, 2009 12:00 PM To: fop-users@xmlgraphics.apache.org Cc: Ashwini Sawant Subject: Re: Urgent Question about FOP-hyphenation-wrap Please see: http://xmlgraphics.apache.org/fop/faq.html#cells-overflow You've reached the right place, BTW. However, you can reach the mailing list more quickly if you subscribe to it. Otherwise, your posts have to go through moderation first. This time you were lucky. ;-) More info: http://xmlgraphics.apache.org/fop/maillist.html#fop-user On 03.02.2009 17:39:26 Ashwini Sawant wrote: Hi, I am trying to wrap data within a cell so it does not overflow to the next column. I have tried the following already (which do not work for me): keep-together.within-column=always for cell or for block wrap-option=wrap for cell or for block I am also using hyphenation. It works perfectly for everything except data that has an _ (underscore in it). I have attached my resulting PDF as an example. What can I do to get this data that has underscores in it to wrap within the cell? I am using FOP 0.95 Any help is much appreciated. If this is not the correct email address for such a question, please let me know the exact email address where I can post such a question. Thanks, Ashwini Ashwini Sawant Impact Systems, Inc. 20 Montchanin Road Suite A-5 Greenville, DE 19807 302-573-6864 ext 206 office ashwini.saw...@impactinfosys.com Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Suppress the Form-Feed at the end of a page-sequence
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-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
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-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org