[reportlab-users] The upcoming Reportlab 1.18 release and patches.

Karl Putland reportlab-users@reportlab.com
07 Jul 2003 08:19:05 -0600


--=-xxFgxKU2/Czp2/kXz4Hk
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

What about this pythonpoint patch?
Gives more room for speakers notes

--Karl

On Mon, 2003-07-07 at 04:37, John Precedo wrote:
> We are planning to do a new release of the Reportlab open source toolkit
> early this week.
> 
> For a number of reasons, this 1.18 release will be the "last of it's kind",
> and will be a stable staging post while we make changes. After this we plan
> to drop support for Python 1.5.2, 2.0.x and 2.1.x (we'll be moving to being
> compliant with Python 2.2). We don't object to a branch being created for
> anyone who needs 1.5.2 compliance - if anyone wants to maintain it let us
> know and we'll make the branch.
> 
> We will also be making changes to the build technology we use to produce our
> releases.
> 
> Since it may be a while until the next release, we need to make sure about
> patches. These are the ones which we know about since the Version 1.17 was
> released in January 2003. If you have any more information about the ones
> not done, please let us know. If you haven't got the information to us soon
> and it won't go in. We are going to be doing this release tomorrow morning,
> so you'd better hurry.
> 
> This list shows the date we got the email, the subject line of the email
> which contained the patch and who sent it.
> 
> PATCHES WHICH HAVE BEEN IMPLEMENTED:
> - Mon 16/06/2003
>   Patch to allow use without file
>   David Fraser [davidf@sjsoft.com]
> 
> - Fri 02/05/2003
>   Relative indents, nested lists and reST
>   Sidnei da Silva [sidnei@x3ng.com]
> 
> Thanks to David and Sidnei for submitting these!
> 
> --
> John Precedo  (johnp@reportlab.com)    Developer
> Reportlab Europe Ltd  (http://www.reportlab.com)
> 
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
-- 
Karl Putland <karl@putland.linux-site.net>

--=-xxFgxKU2/Czp2/kXz4Hk
Content-Disposition: inline
Content-Type: message/rfc822

Return-Path: <reportlab-users-admin@reportlab.com>
Delivered-To: peracles@lgw.putland.int
Received: (qmail 11627 invoked by alias); 24 Jun 2003 00:51:24 -0000
Delivered-To: karl@putland.linux-site.net
Received: (qmail 11624 invoked from network); 24 Jun 2003 00:51:24 -0000
Received: from two.pairlist.net (216.92.1.93) by 0 with SMTP; 24 Jun 2003
	00:51:24 -0000
Received: from two.pairlist.net (localhost.pair.com [127.0.0.1]) by
	two.pairlist.net (Postfix) with ESMTP id 8987B24DDF; Mon, 23 Jun 2003
	20:40:47 -0400 (EDT)
Delivered-To: reportlab-users@two.pairlist.net
Received: from zelaza.pair.com (zelaza.pair.com [209.68.2.92]) by
	two.pairlist.net (Postfix) with SMTP id EE8EE24DCA for
	<reportlab-users@lists2.reportlab.com>; Mon, 23 Jun 2003 20:39:11 -0400
	(EDT)
Received: (qmail 20754 invoked by uid 3034); 24 Jun 2003 00:39:12 -0000
Delivered-To: rptlab-reportlab:com-reportlab-users@reportlab.com
Received: (qmail 20751 invoked from network); 24 Jun 2003 00:39:12 -0000
Received: from smtp-out.comcast.net (24.153.64.109) by zelaza.pair.com with
	SMTP; 24 Jun 2003 00:39:12 -0000
Received: from lgw.putland.int (c-67-162-134-148.client.comcast.net
	[67.162.134.148]) by mtaout05.icomcast.net (iPlanet Messaging Server 5.2
	HotFix 1.16 (built May 14 2003)) with SMTP id
	<0HGY007VMN2OUV@mtaout05.icomcast.net> for reportlab-users@reportlab.com;
	Mon, 23 Jun 2003 20:37:37 -0400 (EDT)
Received: (qmail 11606 invoked from network); Tue, 24 Jun 2003 00:48:12
	+0000
Received: from unknown (HELO mars.putland.int) (172.17.0.244) by 0 with
	SMTP; Tue, 24 Jun 2003 00:48:12 +0000
Received: (qmail 1156 invoked from network); Tue, 24 Jun 2003 00:35:38 +0000
Received: from localhost (127.0.0.1) by 0 with SMTP; Tue, 24 Jun 2003
	00:35:38 +0000
From: Karl Putland <karl@putland.linux-site.net>
Subject: Re: [reportlab-users] pythonpoint patch
In-reply-to: <1056405762.2120.693.camel@mars.putland.int>
To: reportlab-users <reportlab-users@reportlab.com>
Message-id: <1056414938.2125.850.camel@mars.putland.int>
Organization: 
MIME-version: 1.0
X-Mailer: Ximian Evolution 1.2.4
Content-type: text/plain
References: <1056405762.2120.693.camel@mars.putland.int>
Sender: reportlab-users-admin@reportlab.com
Errors-To: reportlab-users-admin@reportlab.com
X-BeenThere: reportlab-users@reportlab.com
X-Mailman-Version: 2.0.6
Precedence: bulk
Reply-To: reportlab-users@reportlab.com
List-Help: <mailto:reportlab-users-request@reportlab.com?subject=help>
List-Post: <mailto:reportlab-users@reportlab.com>
List-Subscribe: <http://two.pairlist.net/mailman/listinfo/reportlab-users>,
	<mailto:reportlab-users-request@reportlab.com?subject=subscribe>
List-Id: Support list for users of Reportlab software
	<reportlab-users.reportlab.com>
List-Unsubscribe:
	<http://two.pairlist.net/mailman/listinfo/reportlab-users>,
	<mailto:reportlab-users-request@reportlab.com?subject=unsubscribe>
List-Archive: <http://two.pairlist.net/pipermail/reportlab-users/>
Date: Mon, 23 Jun 2003 18:35:38 -0600
X-Evolution-Source: imap://peracles@putland.linux-site.net/
Content-Transfer-Encoding: 7bit

OK...  I was tired or trying to read everything sideways.
This puts the canvas in portrait before it does the translations and
drawing so everything is right side up now.

--Karl


# diff -u pythonpoint.py.bak pythonpoint.py
--- pythonpoint.py.bak  Mon Jun 23 15:36:32 2003
+++ pythonpoint.py      Mon Jun 23 18:33:39 2003
@@ -356,6 +356,9 @@
             print filename
         #canv = canvas.Canvas(filename, pagesize = pageSize)
         outfile = getStringIO()
+        if self.notes:
+            #translate the page from landscape to portrait
+            pageSize= pageSize[1], pageSize[0]
         canv = canvas.Canvas(outfile, pagesize = pageSize)
         canv.setPageCompression(self.compression)
         canv.setPageDuration(self.pageDuration)
@@ -374,8 +377,13 @@
                 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.translate(.025*self.pageHeight, (self.pageWidth/2.0) + 5)
+                #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>

_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users
--=-xxFgxKU2/Czp2/kXz4Hk--