create a pdf file

A

Alberto Vera

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
 
M

Magnus Lycka

Alberto said:
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.
 
J

Jim

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

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,301
Members
47,945
Latest member
LaverneBas

Latest Threads

Top