Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29372 > unrolled thread
| Started by | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| First post | 2012-09-17 10:47 +0200 |
| Last post | 2012-09-18 00:16 -0700 |
| Articles | 10 — 3 participants |
Back to article view | Back to comp.lang.python
reportlab and python 3 Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-17 10:47 +0200
Re: reportlab and python 3 wxjmfauth@gmail.com - 2012-09-18 00:16 -0700
Re: reportlab and python 3 Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-18 11:04 +0200
Re: reportlab and python 3 wxjmfauth@gmail.com - 2012-09-18 04:17 -0700
Re: reportlab and python 3 Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-18 15:31 +0200
Re: reportlab and python 3 wxjmfauth@gmail.com - 2012-09-18 10:10 -0700
Re: reportlab and python 3 wxjmfauth@gmail.com - 2012-09-18 10:10 -0700
Re: reportlab and python 3 Terry Reedy <tjreedy@udel.edu> - 2012-09-18 13:33 -0400
Re: reportlab and python 3 wxjmfauth@gmail.com - 2012-09-18 04:17 -0700
Re: reportlab and python 3 wxjmfauth@gmail.com - 2012-09-18 00:16 -0700
| From | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| Date | 2012-09-17 10:47 +0200 |
| Subject | reportlab and python 3 |
| Message-ID | <mailman.829.1347871673.27098.python-list@python.org> |
Reportlab is on the wall of shame. http://python3wos.appspot.com/
Is there other ways to create PDF files from python 3? There is pyPdf. I
haven't tried it yet, but it seem that it is a low level library. It
does not handle "flowables" that are automatically split across pages.
It does not handle "table headers" that are repeated automatically on
the top of every page (when the table does not fit on a page). I need a
higher level API, with features compareable to reportlab. Is there such
thing?
Thanks,
Laszlo
[toc] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2012-09-18 00:16 -0700 |
| Message-ID | <9aa9f1dd-f6b1-4de4-8606-e83a54318765@googlegroups.com> |
| In reply to | #29372 |
Le lundi 17 septembre 2012 10:48:30 UTC+2, Laszlo Nagy a écrit : > Reportlab is on the wall of shame. http://python3wos.appspot.com/ > > > > Is there other ways to create PDF files from python 3? There is pyPdf. I > > haven't tried it yet, but it seem that it is a low level library. It > > does not handle "flowables" that are automatically split across pages. > > It does not handle "table headers" that are repeated automatically on > > the top of every page (when the table does not fit on a page). I need a > > higher level API, with features compareable to reportlab. Is there such > > thing? > > > > Thanks, > > > > Laszlo A big yes and it is very easy. I assume you know how to write a plain text file with Python :-). Use your Python to generate a .tex file and let it compile with one of the pdf TeX engines. Potential problems: - It requires a TeX installation (a no problem). - Of course I requires some TeX knowledge. Learning it is not so complicate. Learn how to use TeX with a text editor and you will quickly understand what you have to program in Python. Bonus: you learn at the same time a good text editing engine. I can not figure out something more simple, versatile and powerful. jmf
[toc] | [prev] | [next] | [standalone]
| From | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| Date | 2012-09-18 11:04 +0200 |
| Message-ID | <mailman.864.1347959058.27098.python-list@python.org> |
| In reply to | #29412 |
> A big yes and it is very easy. I assume you know how
> to write a plain text file with Python :-).
>
> Use your Python to generate a .tex file and let it compile
> with one of the pdf TeX engines.
>
> Potential problems:
> - It requires a TeX installation (a no problem).
> - Of course I requires some TeX knowledge. Learning it
> is not so complicate. Learn how to use TeX with a text
> editor and you will quickly understand what you have to
> program in Python. Bonus: you learn at the same time
> a good text editing engine.
>
> I can not figure out something more simple, versatile and
> powerful.
>
> jmf
>
This is a good idea. Thank you. I wanted to learn TeX anyway. The TeX
installation is problematic. I also want to use this under MS Windows.
Yes, I know here is MikTeX for Windows. But there is significant
difference. ReportLab can be embedded into a small program created with
py2exe. LaTeX on the other side is a 150MB separate installation package
that must be installed separately by hand.
But in my particular case, it is still a good solution.
Thanks,
Laszlo
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2012-09-18 04:17 -0700 |
| Message-ID | <a0236d30-a2cf-4b81-acb3-65621a4b5123@googlegroups.com> |
| In reply to | #29418 |
Le mardi 18 septembre 2012 11:04:19 UTC+2, Laszlo Nagy a écrit : > > A big yes and it is very easy. I assume you know how > > > to write a plain text file with Python :-). > > > > > > Use your Python to generate a .tex file and let it compile > > > with one of the pdf TeX engines. > > > > > > Potential problems: > > > - It requires a TeX installation (a no problem). > > > - Of course I requires some TeX knowledge. Learning it > > > is not so complicate. Learn how to use TeX with a text > > > editor and you will quickly understand what you have to > > > program in Python. Bonus: you learn at the same time > > > a good text editing engine. > > > > > > I can not figure out something more simple, versatile and > > > powerful. > > > > > > jmf > > > > > This is a good idea. Thank you. I wanted to learn TeX anyway. The TeX > > installation is problematic. I also want to use this under MS Windows. > > Yes, I know here is MikTeX for Windows. But there is significant > > difference. ReportLab can be embedded into a small program created with > > py2exe. LaTeX on the other side is a 150MB separate installation package > > that must be installed separately by hand. > > > > But in my particular case, it is still a good solution. > > > > Thanks, > > > > Laszlo I understood, you have Python on a platform and starting from this you wish to create pdf files. Obviously, embedding "TeX" is practically a no solution, although distibuting a portable standalone TeX distribution is a perfectly viable solution, especially on Windows! To "I wanted to learn TeX anyway.": I can only warmly recommend to start with one of the two unicode compliant engines, LuaTeX or XeTeX. jmf
[toc] | [prev] | [next] | [standalone]
| From | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| Date | 2012-09-18 15:31 +0200 |
| Message-ID | <mailman.872.1347975070.27098.python-list@python.org> |
| In reply to | #29421 |
> I understood, you have Python on a platform and starting > from this you wish to create pdf files. > Obviously, embedding "TeX" is practically a no solution, > although distibuting a portable standalone TeX distribution > is a perfectly viable solution, especially on Windows! > > To "I wanted to learn TeX anyway.": > I can only warmly recommend to start with one of the two > unicode compliant engines, LuaTeX or XeTeX. All right. Which one is the better? :-) I'm totally a beginner. I would also like to use mathematical expressions but I guess they are both capable of that. Another requirement would be: easy installation under unix and windows, good multilingual support.
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2012-09-18 10:10 -0700 |
| Message-ID | <087d1d62-f676-4451-b88c-6411f06ed73d@googlegroups.com> |
| In reply to | #29430 |
Le mardi 18 septembre 2012 15:31:52 UTC+2, Laszlo Nagy a écrit : > > I understood, you have Python on a platform and starting > > > from this you wish to create pdf files. > > > Obviously, embedding "TeX" is practically a no solution, > > > although distibuting a portable standalone TeX distribution > > > is a perfectly viable solution, especially on Windows! > > > > > > To "I wanted to learn TeX anyway.": > > > I can only warmly recommend to start with one of the two > > > unicode compliant engines, LuaTeX or XeTeX. > > All right. Which one is the better? :-) I'm totally a beginner. I would > > also like to use mathematical expressions but I guess they are both > > capable of that. Another requirement would be: easy installation under > > unix and windows, good multilingual support. I basically recommend nothing. I pointed the LuaTeX or Xe(La)TeX engines because there are the unicode compliant engines. Today, most of the work target these engines. By Unicode compliance, you should not understand only the coding of characters, but everything which is related to the unicode technology (characters, unicode features, typography, font technology). "...good multilingual support. ..." Don't worry. It's much better than the future of Python ;-) FYI I'm not a expert. I have only accumulated experience, I wrote my first TeX document 20(?) years ago. Now, I use XeLaTeX from MiKTeX on Win7. Why? Answer: why not? jmf
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2012-09-18 10:10 -0700 |
| Message-ID | <mailman.884.1347988256.27098.python-list@python.org> |
| In reply to | #29430 |
Le mardi 18 septembre 2012 15:31:52 UTC+2, Laszlo Nagy a écrit : > > I understood, you have Python on a platform and starting > > > from this you wish to create pdf files. > > > Obviously, embedding "TeX" is practically a no solution, > > > although distibuting a portable standalone TeX distribution > > > is a perfectly viable solution, especially on Windows! > > > > > > To "I wanted to learn TeX anyway.": > > > I can only warmly recommend to start with one of the two > > > unicode compliant engines, LuaTeX or XeTeX. > > All right. Which one is the better? :-) I'm totally a beginner. I would > > also like to use mathematical expressions but I guess they are both > > capable of that. Another requirement would be: easy installation under > > unix and windows, good multilingual support. I basically recommend nothing. I pointed the LuaTeX or Xe(La)TeX engines because there are the unicode compliant engines. Today, most of the work target these engines. By Unicode compliance, you should not understand only the coding of characters, but everything which is related to the unicode technology (characters, unicode features, typography, font technology). "...good multilingual support. ..." Don't worry. It's much better than the future of Python ;-) FYI I'm not a expert. I have only accumulated experience, I wrote my first TeX document 20(?) years ago. Now, I use XeLaTeX from MiKTeX on Win7. Why? Answer: why not? jmf
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2012-09-18 13:33 -0400 |
| Message-ID | <mailman.886.1347989646.27098.python-list@python.org> |
| In reply to | #29421 |
On 9/18/2012 9:31 AM, Laszlo Nagy wrote: > capable of that. Another requirement would be: easy installation under > unix and windows, good multilingual support. By using 3.3, your Python string manipulations will act the same on all platforms, even when using extended plane (non-BMP) characters. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2012-09-18 04:17 -0700 |
| Message-ID | <mailman.868.1347967047.27098.python-list@python.org> |
| In reply to | #29418 |
Le mardi 18 septembre 2012 11:04:19 UTC+2, Laszlo Nagy a écrit : > > A big yes and it is very easy. I assume you know how > > > to write a plain text file with Python :-). > > > > > > Use your Python to generate a .tex file and let it compile > > > with one of the pdf TeX engines. > > > > > > Potential problems: > > > - It requires a TeX installation (a no problem). > > > - Of course I requires some TeX knowledge. Learning it > > > is not so complicate. Learn how to use TeX with a text > > > editor and you will quickly understand what you have to > > > program in Python. Bonus: you learn at the same time > > > a good text editing engine. > > > > > > I can not figure out something more simple, versatile and > > > powerful. > > > > > > jmf > > > > > This is a good idea. Thank you. I wanted to learn TeX anyway. The TeX > > installation is problematic. I also want to use this under MS Windows. > > Yes, I know here is MikTeX for Windows. But there is significant > > difference. ReportLab can be embedded into a small program created with > > py2exe. LaTeX on the other side is a 150MB separate installation package > > that must be installed separately by hand. > > > > But in my particular case, it is still a good solution. > > > > Thanks, > > > > Laszlo I understood, you have Python on a platform and starting from this you wish to create pdf files. Obviously, embedding "TeX" is practically a no solution, although distibuting a portable standalone TeX distribution is a perfectly viable solution, especially on Windows! To "I wanted to learn TeX anyway.": I can only warmly recommend to start with one of the two unicode compliant engines, LuaTeX or XeTeX. jmf
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2012-09-18 00:16 -0700 |
| Message-ID | <mailman.861.1347952571.27098.python-list@python.org> |
| In reply to | #29372 |
Le lundi 17 septembre 2012 10:48:30 UTC+2, Laszlo Nagy a écrit : > Reportlab is on the wall of shame. http://python3wos.appspot.com/ > > > > Is there other ways to create PDF files from python 3? There is pyPdf. I > > haven't tried it yet, but it seem that it is a low level library. It > > does not handle "flowables" that are automatically split across pages. > > It does not handle "table headers" that are repeated automatically on > > the top of every page (when the table does not fit on a page). I need a > > higher level API, with features compareable to reportlab. Is there such > > thing? > > > > Thanks, > > > > Laszlo A big yes and it is very easy. I assume you know how to write a plain text file with Python :-). Use your Python to generate a .tex file and let it compile with one of the pdf TeX engines. Potential problems: - It requires a TeX installation (a no problem). - Of course I requires some TeX knowledge. Learning it is not so complicate. Learn how to use TeX with a text editor and you will quickly understand what you have to program in Python. Bonus: you learn at the same time a good text editing engine. I can not figure out something more simple, versatile and powerful. jmf
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web