[reportlab-users] pythonpoint patch
Karl Putland
reportlab-users@reportlab.com
Mon, 23 Jun 2003 16:02:42 -0600
What it does:
Provides PLENTY of room for speakers notes.
Currently I couldn't figure out how notes was supposed to work so here's
what I've come up with. It allow LOTS of room to put speakers notes or
your entire speech at the bottom of each slide.
It also stays relative to the pageSize so should work for Letter or A4.
<!-- NOTES -->
<frame border="true" leftmargin="36" rightmargin="0"
height="595" width="842" x="0" y="-600">
<para style="Notes">
This is a note
</para>
<para style="Notes">
This is another note paragraph
</para>
<image filename="ast_arch.gif" width="342" height="342" />
</frame>
<!-- END NOTES -->
Now on screen this leaves everything sideways, but it should print out
just fine.
Cheers,
--Karl
[root@mars pythonpoint]# diff -u pythonpoint.py.bak pythonpoint.py
--- pythonpoint.py.bak Mon Jun 23 15:36:32 2003
+++ pythonpoint.py Mon Jun 23 15:44:02 2003
@@ -374,8 +374,12 @@
print 'doing slide %d, id = %s' % (slideNo, slide.id)
if self.notes:
#frame and shift the slide
- canv.scale(0.67, 0.67)
- canv.translate(self.pageWidth / 6.0, self.pageHeight / 3.0)
+ #canv.scale(0.67, 0.67)
+ scale_amt = (min(pageSize)/float(max(pageSize)))*.95
+ #canv.translate(self.pageWidth / 6.0, self.pageHeight / 3.0)
+ canv.translate(self.pageWidth / 2.0, .025*self.pageHeight)
+ canv.rotate(90)
+ canv.scale(scale_amt, scale_amt)
canv.rect(0,0,self.pageWidth, self.pageHeight)
slide.drawOn(canv)
canv.showPage()
--
Karl Putland <karl@putland.linux-site.net>