Re: ReportLab and Django Examples

Mike Hostetler <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAE1_9RULA_hjucj978hkYEFfE-8G3bn50cHDaG_JMg3gWKAiTw@mail.gmail.com>
I got something that works...

   fp,fname = tempfile.mkstemp()
   rml2pdf.go(rml,outputFileName=fname)
   buf = open(fname,encoding = "ISO-8859-1")

But I don't like creating the tempfile. I think rml2pdf.go should take a
StringIO

On Mon, Nov 26, 2018 at 2:13 PM Andy Robinson <[email protected]> wrote:

> On Mon, 26 Nov 2018 at 19:43, Mike Hostetler <[email protected]>
> wrote:
> >
> > I knew it waa old but that was all you had...
> > I'm using Python 3.6.6 and Django 2.1.3.
>
> Sorry, we'd never spotted it before, as all of our customer projects
> are on 2.7.  I'll try to get a corrected snippet out tomorrow..
> _______________________________________________
> reportlab-users mailing list
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>


-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.