Skip to main content

Ralsina.Me — Roberto Alsina's website

rst2pdf 0.12 released!

It's my plea­sure to an­nounce the re­lease of rst2pdf ver­sion 0.12, avail­able at http://­code.­google.­com/p/rst2pdf/­down­load­s/list

Rst2pdf is a tool to gen­er­ate PDF files di­rect­ly from re­struc­tured text sources via re­port­lab.

Rst2pdf aims to sup­port the full re­struc­tured text fea­ture set, and is very close to that goal, while al­so in­clud­ing some of the more ex­per­i­men­tal fea­tures, like a source code di­rec­tive with syn­tax high­light­ing and math no­ta­tion sup­port with La­TeX-­like syn­tax.

It sup­ports em­bed­ding ar­bi­trary fonts, both True Type and PS Type 1, both raster and vec­tor im­ages (in­clud­ing SVG and PDF), page tran­si­tion ef­fect­s, mul­ti­ple, flex­i­ble page lay­out­s, cas­cad­ing styles, and much, much more.

This ver­sion in­cludes many bug­fix­es and MANY new fea­tures com­pared to the pre­vi­ous 0.11 ver­sion, in­clud­ing but not lim­it­ed to bet­ter styling, in­te­gra­tion with sphinx, a very raw, pre­lim­i­nar graph­i­cal fron­tend called bookrest, kern­ing sup­port (via wor­dax­e), and a much more pow­er­ful ta­ble im­ple­men­ta­tion.

In fac­t, this re­lease has so much new code it needs tester­s! I would con­sid­er it be­ta qual­i­ty, and may (prob­a­bly will) have some rough spot­s.

You can find more in­for­ma­tion about rst2pdf in its home page ( http://rst2pdf.­google­code.­com), and ask any­thing you want in the rst2pdf-dis­cuss mail­ing list (http://­group­s.­google.­com/­group/rst2pdf-dis­cuss)

A list of im­prove­ments and changes in this ver­sion is just too long, but is avail­able at the changel­og

I hope you en­joy this pro­gram!


In oth­er news, Google just found me two nice things re­lat­ed to rst2pdf:

  1. A tu­­to­ri­al to use sphinx and rst2pdf for ja­­pa­­nese texts: http://d.hate­­na.ne.jp/MiCHiLU/20091009/1255065687

  2. It looks like a rst2pdf 0.11 bi­­na­ry for win­­dows is shipped by pythonxy here: http://­­code.­­google.­­com/p/pythonxy/­­down­load­­s/de­­tail?­­name=rst2pdf-0.11_py26.exe I will link to that!

I love when peo­ple do things like these :-)

Bookrest: the stylesheet editor in action

As usu­al, a video show­ing it:

The cur­rent sta­tus is that the in­fra­struc­ture re­quired for the stylesheet ed­i­tor is in place:

  • I fig­ured out how to turn the StyleSheet ob­­ject back in­­­to a JSON stylesheet.

  • The changes are done and merged back in­­­to the same file.

  • There is UI for 3 of the 6 re­quired pieces. The mis­s­ing ones are text styles, em­bed­d­ed fonts, and con­­fig op­­tions (like, break sub­­sec­­tions to odd pages)

  • The UI for the whole app is pret­­ty rough, I am in full make-it-­­func­­tion­al mode right now. It will be rethought lat­er on.


Contents © 2000-2023 Roberto Alsina