pageSize rarely works; rml-guide-example-12.rml test should fail
Bug #1113860 reported by
Kyle MacFarlane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
z3c.rml |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The pageSize property seems to be very buggy and most situations cause it to reset to A4.
The easiest demonstration of this is the test input rml-guide-
So far I've found that pageSize only seems to work on the pageInfo element when the only contents in the page are pageDrawing elements (i.e. like tag-pageInfo.rml).
If pageSize is only set on a template element (i.e. there is no pageInfo element) or a story element is ever in the document then pageSize seems to always reset to A4.
Changed in z3c.rml: | |
status: | New → Fix Committed |
To post a comment you must log in.
I think I figured this out and there seems to be two problems.
On line 186 of z3c.rml.template:
pagesize = args.pop( 'pagesize' , None)
This should be camelcased to:
pagesize = args.pop( 'pageSize' , None)
Then in rml-guide- example- 12.rml there appears to be two problems.
1) The pageSize attribute in this file also isn't camelcase.
2) The pageSize attribute in this file is on the document element which z3c.rml doesn't support and doesn't seem to be supported in RML2PDF either, so I assume it's a typo.