landscape...

71 views
Skip to first unread message

LovePython

unread,
Mar 12, 2009, 12:27:11 PM3/12/09
to Pisa XHTML2PDF Support, gan...@crlcorp.com
NewBee
I found that to make a landscape PDF we have to use

@page {
size: a5 landscape;
margin: 1cm;
}

but i am not sure how to use it in my python script, could you please
provide some example ,
is this passed as an argument to Create pdf or declared as global
variable

Dirk Holtwick

unread,
Mar 27, 2009, 11:36:17 AM3/27/09
to xhtm...@googlegroups.com
Pisa is about parsing HTML pages. So put it all into your HTML file like
you would for your browser. Save it e.g. under "test.html". Then call:

$ pisa -s test.html

on the command line and the PDF should open.

Dirk

LovePython schrieb:
Reply all
Reply to author
Forward
0 new messages