By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,551 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,551 IT Pros & Developers. It's quick & easy.

create a pdf file

P: n/a
Hello:

I found a script that convert a file to PDF format , but it was made in PHP

Do you know any script using Python?

Regards
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Dan
On 6/22/2005 1:58 PM, Alberto Vera wrote:
Hello:

I found a script that convert a file to PDF format , but it was made in PHP

Do you know any script using Python?

Regards


See http://www.reportlab.org/rl_toolkit.html
Jul 19 '05 #2

P: n/a
Alberto Vera wrote:
Hello:

I found a script that convert a file to PDF format , but it was made in PHP

Do you know any script using Python?


What do you mean by "convert a file to PDF format"? The solution
obviously depends on what the file you start with looks like. If
you want to create PDF yourself via API calls, ReportLab is what
you need. If you want to convert an existing file in a format
such as PS or MS Word, there are a lot of solutions out there,
but I don't know of any Python based, and I don't see a point in
using a Python based solution for that kind of task. The simplest
would probably be to invoke a command line tool such as ps2pdf
from your Python script.
Jul 19 '05 #3

P: n/a
Jim
If it is a plain text file (or close to it, like the Gutenburg Project
files), think about using pdfLaTeX.

Jim

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.