[Tutor] PDF and Python
Aztech Guy
aztech1200 at yahoo.com
Sat Dec 11 15:18:30 CET 2004
Hi,
If you only want to convert text files, this tool I
wrote may be even easier than using ReportLab:
http://sourceforge.net/projects/xtopdf
It is based on ReportLab. You can use it both as a
standalone command-line tool, to convert a single text
file to PDF. Run PDFWriter.py.
You can easily modify the code to convert more than
one file, or just write a shell script / .BAT/.CMD
file to call it in a loop).
You can also use it progammatically from your Python
programs. Both procedural and object-oriented versions
are available. Look at WritePDF.py and PDFWriter.py.
Look at PDFBook.py for an example of usage of this
tool to create a simple PDF book from a set of text
files representing chapters.
HTH
Az
--- Jason Child <jasonchild at cnsp.com> wrote:
> Hey there. Does anyone know of a way to output PDFs
> with python? I have some
> data that I have processed from a series of
> textfiles that I would like to
> provide PDF format reports for..
>
> Jason Christopher Child
>
> Computer Network Services Professionals
> Tech Support
> 505-986-1669
> 1-877-321-9165
> jasonchild at cnsp.com
>
> VOZ Online
> VOIP Install Tech
> 505-428-7500
> 1-877-428-7550
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Tutor
mailing list