FEATURE: add multiple page orientations, how to?

148 views
Skip to first unread message

ToNICo

unread,
Mar 28, 2012, 1:12:35 PM3/28/12
to dompdf-dev
I try do it, but the auto page break doesn't work on the table element
with this webkit-transform rotate style.

I think is possible when using the webkit-transform rotate.

What are you think about? Is possible to apply this improvement?

I am avaible to help. What files to change?

Antonio Spinelli
PHP Developer

Antonio Spinelli

unread,
Mar 28, 2012, 1:45:19 PM3/28/12
to dompd...@googlegroups.com
Maybe can use max-height and min-height.

Fabien Ménager

unread,
Mar 28, 2012, 4:37:51 PM3/28/12
to dompd...@googlegroups.com
Hello, this is not possible at the moment, even with CSS transforms.
What you need is to have different page sizes (or orientation) in the same document.

To achieve this, we would read the CSS 3 specs:
I don't know precisely what files need to be changed, but this may be Stylesheet, Page frame reflower and decorator and the Adapter classes.
I didn't find an issue about this, so this may be a good starting point: http://code.google.com/p/dompdf/issues/list

BrianS

unread,
Mar 31, 2012, 9:25:10 PM3/31/12
to dompd...@googlegroups.com
Is it even possible to change a page's orientation? What I mean is, don't you basically have to redefine the page dimensions so that the height/width or reversed? Something I'd have to research before I could supply an answer.

If you do have to modify the page dimensions, then you'd also have to modify CPDF. I believe as it is currently designed the only way to modify the dimensions is to start a new document, which resets the object counter. Document objects would start to get overwritten at that point.

Someone posted a hack that's supposed to enable this type of functionality if you're rendering the each page with a different dimensions in a different document. This hack doesn't require any modifications to dompdf, just a container class. I haven't actually tried it out to see if it works, but you can find the post here: https://groups.google.com/d/topic/dompdf/NvTKQkBPxVc/discussion

Antonio Spinelli

unread,
Apr 2, 2012, 6:49:12 AM4/2/12
to dompd...@googlegroups.com
Thanks, Brian. I look it.
Reply all
Reply to author
Forward
0 new messages