Re: page-position=only in conditional-page-master-reference
Hi, Looking at the source code, I could trace a possible cause for this bug. In o.a.f..layoutmgr.PageProvider, in the method getPage a test is done to verify if the page is the last one boolean isLastPage = (lastPageIndex = 0) (index == lastPageIndex); In the case of the fo attached (onlypage.fo) this test returns false as lastPageIndex is still initialized to -1. Further down the processing, in o.a.f.fo.pagination.ConditionalPageMasterReference isValid method the test (pagePosition == EN_ONLY (isFirstPage isLastPage)) fails I do not have enough experience with the fop source code to provide a possible patch, but hopefully this could help someone to do it for me. Thanks in advance Franck On Tue, Oct 30, 2012 at 11:34 AM, franck FIMBEL ffim...@gmail.com wrote: Thanks I filled the bug *Bug 54074 https://issues.apache.org/bugzilla/show_bug.cgi?id=54074 ** *page-position=only in conditional-page-master-reference does not work On Tue, Oct 30, 2012 at 10:18 AM, Pascal Sancho psancho@gmail.comwrote: Hi, This should work. Please, file in a new bug entry, attaching the material you gave here. 2012/10/29 franck FIMBEL ffim...@gmail.com: Hi, I am trying to use the attribute page-position=only in a conditional-page-master-reference in order to produce a different page header if the document has only one page (if I understood correctly, it applies if the page is the first and the last page of the document at the same time). fo:page-sequence-master master-name=Section_1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=Single page-position=only / fo:conditional-page-master-reference master-reference=Multiple / /fo:repeatable-page-master-alternatives /fo:page-sequence-master Unfortunately, using the attached fo and fop trunk, it does not work as expected. I get the header for multiple page even if I only have one page in the final output document. If I change the attribute to last, it works fine. fo:page-sequence-master master-name=Section_1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=Single page-position=last / fo:conditional-page-master-reference master-reference=Multiple / /fo:repeatable-page-master-alternatives /fo:page-sequence-master Is there something wrong with the way I use this attribute. Thanks in advance for your help -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- Franck -- Franck
Re: page-position=only in conditional-page-master-reference
Thanks I filled the bug *Bug 54074 https://issues.apache.org/bugzilla/show_bug.cgi?id=54074 ** *page-position=only in conditional-page-master-reference does not work On Tue, Oct 30, 2012 at 10:18 AM, Pascal Sancho psancho@gmail.comwrote: Hi, This should work. Please, file in a new bug entry, attaching the material you gave here. 2012/10/29 franck FIMBEL ffim...@gmail.com: Hi, I am trying to use the attribute page-position=only in a conditional-page-master-reference in order to produce a different page header if the document has only one page (if I understood correctly, it applies if the page is the first and the last page of the document at the same time). fo:page-sequence-master master-name=Section_1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=Single page-position=only / fo:conditional-page-master-reference master-reference=Multiple / /fo:repeatable-page-master-alternatives /fo:page-sequence-master Unfortunately, using the attached fo and fop trunk, it does not work as expected. I get the header for multiple page even if I only have one page in the final output document. If I change the attribute to last, it works fine. fo:page-sequence-master master-name=Section_1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=Single page-position=last / fo:conditional-page-master-reference master-reference=Multiple / /fo:repeatable-page-master-alternatives /fo:page-sequence-master Is there something wrong with the way I use this attribute. Thanks in advance for your help -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- Franck
page-position=only in conditional-page-master-reference
Hi, I am trying to use the attribute page-position=only in a conditional-page-master-reference in order to produce a different page header if the document has only one page (if I understood correctly, it applies if the page is the first and the last page of the document at the same time). fo:page-sequence-master master-name=Section_1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=Single page-position=only / fo:conditional-page-master-reference master-reference=Multiple / /fo:repeatable-page-master-alternatives /fo:page-sequence-master Unfortunately, using the attached fo and fop trunk, it does not work as expected. I get the header for multiple page even if I only have one page in the final output document. If I change the attribute to last, it works fine. fo:page-sequence-master master-name=Section_1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=Single page-position=last / fo:conditional-page-master-reference master-reference=Multiple / /fo:repeatable-page-master-alternatives /fo:page-sequence-master Is there something wrong with the way I use this attribute. Thanks in advance for your help -- Franck onlypage.fo.pdf Description: Adobe PDF document lastpage.fo Description: Binary data lastpage.fo.pdf Description: Adobe PDF document onlypage.fo Description: Binary data - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Rounded corner
Hi Peter; I will be looking for the merge and then try to provide a comprehensive set of test cases around rounded corners for table when available. Franck On Wed, Jun 20, 2012 at 10:27 AM, Peter Hancock peter.hanc...@gmail.com wrote: Hi Franck, The first thing I plan to do is merge trunk into the rounded corners branch. That would be a good time for you to build the branch and generate some examples. Support for tables, for example, is currently fairly limited and I have not done a detailed assessment to determine what is outstanding. Any examples that illustrate the current level of support would be a of great help towards documenting this. Thanks, Peter On Tue, Jun 19, 2012 at 8:53 AM, franck FIMBEL ffim...@gmail.com wrote: Thanks for the update. I will keep an eye on the mailing lists for this very promising feature. In the meantime, if there is anything we can do to help on this (obviously not development but maybe some testing), we would glad to do so. Franck On Tue, Jun 19, 2012 at 8:50 AM, Peter Hancock peter.hanc...@gmail.com wrote: Hi Franck, As eluded to by Rob, I am hoping to revisit the rounded corners work soon. The supported output formats will be restricted to PDF, PS and AFP. Thanks, Peter On Mon, Jun 18, 2012 at 8:43 PM, Robert Meyer rme...@hotmail.co.uk wrote: Hi, Plans are currently underway to merge the branch with Trunk. I was responsible for updating the tests to JUnit 4 (much like the TrueType branch), but that task has been put on hold until the merge has taken place. At the moment I think the task rests with one of the committers, but it is a busy time building up to a release (1.1), so I cannot give you any timescales or release on when it might become available. Unless the person working on it has an update, I would recommend keeping an eye on the mailing list for a vote on merging the branch for a specific release. Regards, Robert Meyer From: ffim...@gmail.com Date: Mon, 18 Jun 2012 18:47:52 +0200 Subject: Rounded corner To: fop-users@xmlgraphics.apache.org Hi all, I would be very interested in using rounded corners functionality with block of paragraphs. Browsing the wiki I saw that a branch named Temp_RoundedCorners exists with an implementation for rounded corners. Is there any plan to merge this functionality to a specific release or to the trunk ? Thanks in advance Regards -- Franck - 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 -- Franck - 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 -- Franck - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Rounded corner
Thanks for the update. I will keep an eye on the mailing lists for this very promising feature. In the meantime, if there is anything we can do to help on this (obviously not development but maybe some testing), we would glad to do so. Franck On Tue, Jun 19, 2012 at 8:50 AM, Peter Hancock peter.hanc...@gmail.com wrote: Hi Franck, As eluded to by Rob, I am hoping to revisit the rounded corners work soon. The supported output formats will be restricted to PDF, PS and AFP. Thanks, Peter On Mon, Jun 18, 2012 at 8:43 PM, Robert Meyer rme...@hotmail.co.uk wrote: Hi, Plans are currently underway to merge the branch with Trunk. I was responsible for updating the tests to JUnit 4 (much like the TrueType branch), but that task has been put on hold until the merge has taken place. At the moment I think the task rests with one of the committers, but it is a busy time building up to a release (1.1), so I cannot give you any timescales or release on when it might become available. Unless the person working on it has an update, I would recommend keeping an eye on the mailing list for a vote on merging the branch for a specific release. Regards, Robert Meyer From: ffim...@gmail.com Date: Mon, 18 Jun 2012 18:47:52 +0200 Subject: Rounded corner To: fop-users@xmlgraphics.apache.org Hi all, I would be very interested in using rounded corners functionality with block of paragraphs. Browsing the wiki I saw that a branch named Temp_RoundedCorners exists with an implementation for rounded corners. Is there any plan to merge this functionality to a specific release or to the trunk ? Thanks in advance Regards -- Franck - 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 -- Franck - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org