I've been doing generating complex catalogs and books from django by
using TeX  or LaTex. Generating PDF from scratch is a pig. Its not
much different from programming in postscript. Latex or Tex make life
very easy and are very expressive. They are available on all
platforms. I've been using TeX/Latex since the 80s to generate very
complex reports from c/c++ code. trying to do it from the code would
have been just to expensive. latex handles hyphenation, heading,
footings  floats, end notes, margin notes, text flow, etc etc. Doing
that using a programming api is very difficult. The code is very
stable and well documented.

I template out the page design and then just generate the TeX markup.
>From a .tex file its easy  to generate to span off the Tex interpreter
to generate PDF, postscript, HTML or what ever else you might need.

Remember all the python documentation before 2.6  was done in Latex,
so you can just look at the Python build to get some good ideas.


http://www.latex-project.org/








On Apr 21, 10:13 am, cootetom <coote...@gmail.com> wrote:
> You are right though. In my experience, using Pisa to do HTML to PDF
> conversion isn't pixel perfect.
>
> On Apr 21, 2:29 pm, derek <gamesb...@gmail.com> wrote:
>
>
>
> > On Apr 21, 1:14 pm, Alessandro Ronchi <alessandro.ron...@soasi.com>
> > wrote:
>
> > > 2010/4/20 cootetom <coote...@gmail.com>:
>
> > > > django and and pisa are great for creating PDF's because you can
> > > > combine django's templating engine with pisa's HTML to PDF conversion.
> > > > Pisa uses the reportlab tool kit.http://pypi.python.org/pypi/pisa/
>
> > > I think I can't use PISA because I need the pdf to be precise as
> > > pixels, and HTML is not the best solution for that.
>
> > > --
> > > Alessandro Ronchi
>
> > >http://www.soasi.com
> > > SOASI - Sviluppo Software e Sistemi Open Source
>
> > > Hobby & Giochi, l'e-commerce del 
> > > divertimentohttp://hobbygiochi.comhttp://www.facebook.com/pages/Forli/Hobby-Gioch...
>
> > Well, ReportLab will give you sub-mm control; even more accurate than
> > pixels (which are really only useful for on-screen 
> > displays):http://www.reportlab.com/software/opensource/rl-toolkit/faq/#2.1.2
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to