How do I go about creating a 3 col landscape layout using xhtml2pdf?
I tried something like this but it didn't work. Should I even be using frames in the first place?
@page {
size: a4 landscape;
@frame left {
-pdf-frame-content: left;
-pdf-frame-border: 1;
width: 9.9cm;
text-align: left;
}
@frame middle {
-pdf-frame-content: middle;
-pdf-frame-border: 1;
width: 9.9cm;
text-align: left;
}
@frame right {
-pdf-frame-content: left;
-pdf-frame-border: 1;
width: 9.9cm;
text-align: left;
}
}
xhtml2pdf now supports landscape, just add this style.
<style>
@page {
size: letter landscape;
margin: 2cm;
}
</style>
source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With