django-latex 0.1

Generate LaTeX/PDF files

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL v3 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Bearstech
HOMEPAGE:
bitbucket.org
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
django-latex is a Django app to parse & make PDFs with Django.

Examples:

Usage examples:

from latex import LatexDocument
ltxdoc = LatexDocument(latexstr)
print ltxdoc.packages
print ltxdoc.preamble

ltxdoc2 = LatexDocument(latexstr2)
ltxdoc3 = ltxdoc + ltxdoc2
ltxdoc3.as_latex()

# If some files have to be inclued
ltxdoc3.add_file("/home/cyberj/lolcat_1182.png", "lolcat.png")

f = open("/home/cyberj/motivational_4242.png", "rb")
ltxdoc3.add_file(f, "motivational.png")

pdf = ltxdoc3.as_pdf()


If pdflatex fails, it raises LatexDocument.LatexPdfGenerationError and clean tempdir. To preserve temporary directory give debug=True to as_pdf method.

Tests :

- cd tests
- python bootstrap
- ./bin/buildout.py -v
- ./bin/test-1.2 or ./bin/test-1.1

Last updated on May 7th, 2011

feature list requirements

#PDF generator #Latex generator #PDF parser #PDF #Latex #generator #parser

Add your review!

SUBMIT