bugzilla | 21 Jul 2012 23:01
Picon
Favicon

[Bug 53580] New: [PATCH] force-page-count 'end-on-fourth' extension

https://issues.apache.org/bugzilla/show_bug.cgi?id=53580

          Priority: P2
            Bug ID: 53580
          Assignee: fop-dev <at> xmlgraphics.apache.org
           Summary: [PATCH] force-page-count 'end-on-fourth' extension
          Severity: normal
    Classification: Unclassified
          Reporter: matthias8283 <at> gmx.at
          Hardware: PC
            Status: NEW
           Version: all
         Component: page-master/layout
           Product: Fop

Created attachment 29092
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29092&action=edit
Patch

I implemented a non-standard value for the force-page-count property:
'end-on-fourth'. The new value forces a page-sequence to have a total page
count dividable by four.

This feature has been requested on the mailing list [1] and by several of my
clients. The alternatives (a) PDF post processing tools or (b) manipulating the
area tree are not very practical due to difficult handling of static content
for headers and footers.

[1]
http://apache-fop.1065347.n5.nabble.com/How-to-make-sure-PDF-ends-with-a-fourth-page-td16188.html
(Continue reading)

bugzilla | 23 Jul 2012 15:48
Picon
Favicon

[Bug 53580] [PATCH] force-page-count 'end-on-fourth' extension

https://issues.apache.org/bugzilla/show_bug.cgi?id=53580

Matthias Reischenbacher <matthias8283 <at> gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Matthias Reischenbacher <matthias8283 <at> gmx.at> ---
I just checked how Antenna House handles this use case. The extended property
values used by AH are:
* doubly-even
* end-on-doubly-even
* doubly-even-document

See also:
http://www.antennahouse.com/xslfo/extension.htm#force-page-count

I will rework my patch a bit in order to comply with AH. Does anybody know if
RenderX provides a similar functionality?

--

-- 
You are receiving this mail because:
You are the assignee for the bug.

bugzilla | 23 Jul 2012 15:50
Picon
Favicon

[Bug 53580] [PATCH] force-page-count 'end-on-fourth' extension

https://issues.apache.org/bugzilla/show_bug.cgi?id=53580

Matthias Reischenbacher <matthias8283 <at> gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29092|0                           |1
        is obsolete|                            |

--

-- 
You are receiving this mail because:
You are the assignee for the bug.

bugzilla | 23 Jul 2012 16:26
Picon
Favicon

[Bug 53580] [PATCH] force-page-count 'end-on-fourth' extension

https://issues.apache.org/bugzilla/show_bug.cgi?id=53580

--- Comment #2 from Alex Giotis <alex.giotis <at> gmail.com> ---
I have not used it, but RenderX seems to support it too. See footnote [1] in
XEP User Guide - Appendix A. XSL-FO Conformance

[1] http://www.renderx.com/reference.html#ftn.d0e11055

--

-- 
You are receiving this mail because:
You are the assignee for the bug.

bugzilla | 23 Jul 2012 22:37
Picon
Favicon

[Bug 53580] [PATCH] force-page-count 'end-on-fourth' extension

https://issues.apache.org/bugzilla/show_bug.cgi?id=53580

--- Comment #3 from Matthias Reischenbacher <matthias8283 <at> gmx.at> ---
Alex, thanks for the pointer. I went with the AntennaHouse approach because it
also takes into account the number of pages of the page-sequence and not only
the total amount of pages.
For now I didn't add support for a more flexible configuration of a page
number, but I might in the future if it becomes an requirement. Updated patch
coming shortly....

--

-- 
You are receiving this mail because:
You are the assignee for the bug.

bugzilla | 23 Jul 2012 22:45
Picon
Favicon

[Bug 53580] [PATCH] force-page-count 'end-on-fourth' extension

https://issues.apache.org/bugzilla/show_bug.cgi?id=53580

--- Comment #4 from Matthias Reischenbacher <matthias8283 <at> gmx.at> ---
Created attachment 29101
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29101&action=edit
Patch

New patch which implements the following two force-page-count property values:

* doubly-even
--> forces a doubly even amount of pages in the current page-sequence (e.g.
page-sequence has pages 4-8 or 5-13 etc.)

* end-on-doubly-even
--> forces to end the current page-sequence on a doubly-even number of pages
(e.g. last page must be page nr 4 or 8 etc.)

--

-- 
You are receiving this mail because:
You are the assignee for the bug.

bugzilla | 23 Jul 2012 22:46
Picon
Favicon

[Bug 53580] [PATCH] force-page-count 'doubly-even' and 'end-on-doubly-even' extension

https://issues.apache.org/bugzilla/show_bug.cgi?id=53580

Matthias Reischenbacher <matthias8283 <at> gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[PATCH] force-page-count    |[PATCH] force-page-count
                   |'end-on-fourth' extension   |'doubly-even' and
                   |                            |'end-on-doubly-even'
                   |                            |extension

--

-- 
You are receiving this mail because:
You are the assignee for the bug.


Gmane