[reportlab-users] pdf file generation

Gabe Black gabenbecca at gmail.com
Sat Dec 5 19:55:34 EST 2009


On Sat, Dec 5, 2009 at 3:48 AM, Onur Tuna <tuna.onur at yahoo.com> wrote:

> i want to make a file from a text edit. but an error occured when a new line

> exists. in pdf file the text is seen as one line. anybody to help?


There are a variety of ways you could handle it. If you are using
platypus you can replace newlines with a break, a new paragraph
flowable, etc.

If you aren't using platypus, try doing a python split on the newline
and then write a new line for each element in your array of text
lines.


More information about the reportlab-users mailing list