Re: [web2py] Re: experimental... .pdf

2011-05-30 Thread Mariano Reingart
@mart: yes, the visual designer requires only wxpython (and pyfpdf). I'm working on html conversion enhancements and there are some advance on utf-8 support, they will be fixed soon. Best regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com Mariano

Re: [web2py] Re: experimental... .pdf

2011-05-30 Thread Jason Brower
Me thinks of an HTML version in Javascript built into web2py. Me faints. --- Jason On 05/30/2011 05:39 PM, Mariano Reingart wrote: @mart: yes, the visual designer requires only wxpython (and pyfpdf). I'm working on html conversion enhancements and there are some advance on utf-8 support, they

[web2py] Re: experimental... .pdf

2011-05-30 Thread Massimo Di Pierro
I think we just need ANY html editor... the only issue are TABLEs. On May 30, 1:06 pm, Jason Brower encomp...@gmail.com wrote: Me thinks of an HTML version in Javascript built into web2py. Me faints. --- Jason On 05/30/2011 05:39 PM, Mariano Reingart wrote: @mart: yes, the visual

[web2py] Re: experimental... .pdf

2011-05-29 Thread mart
Wow! This is really nice! so all that is need for the designer is wxPython? Mart :) On May 27, 12:08 pm, Mariano Reingart reing...@gmail.com wrote: Regarding PyFPDF: Headers should be rendered. Tables need at least a first  TH, prior any TD, who indicates column width (and it is wise to

[web2py] Re: experimental... .pdf

2011-05-29 Thread Christopher Steel
I am going try things out again when I get a chance. This stuff is just great. I love the fact that we build on a solid API so in the end we get the GUI and command line and API access for developers and the blind. It totally rocks!!! Markmin to PDF would be very interesting as well.. Chris On

[web2py] Re: experimental... .pdf

2011-05-29 Thread Massimo Di Pierro
In trunk, web2py tries to use markmin2pdflatex is installed. If not it uses pyfpdf. pyfpdf fails on some html, for example if table do not follow the pyfpdf specs. I believe Marino is working on making pyfpdf more forgiving. Massimo On May 29, 10:39 pm, Christopher Steel chris.st...@gmail.com

Re: [web2py] Re: experimental... .pdf

2011-05-29 Thread Martin Weissenboeck
Massimo, does markmin2pdflatex understand utf-8? 2011/5/30 Massimo Di Pierro massimo.dipie...@gmail.com In trunk, web2py tries to use markmin2pdflatex is installed. If not it uses pyfpdf. pyfpdf fails on some html, for example if table do not follow the pyfpdf specs. I believe Marino is

Re: [web2py] Re: experimental... .pdf

2011-05-27 Thread Mariano Reingart
Regarding PyFPDF: Headers should be rendered. Tables need at least a first TH, prior any TD, who indicates column width (and it is wise to use THEAD and TBODY when you have multiple pages), see: http://code.google.com/p/pyfpdf/wiki/WriteHTML table border=0 align=center width=50% theadtrth

[web2py] Re: experimental... .pdf

2011-05-26 Thread Mariano Reingart
Putting the following code in generic.pdf and getting report.pdf does not work? (also, per default there is a generic.pdf made by massimo that uses markmin and latex if I remember it correctly) from gluon.contrib.pyfpdf import FPDF, HTMLMixin from gluon.sanitizer import sanitize class

[web2py] Re: experimental... .pdf

2011-05-26 Thread Christopher Steel
I think report.pdf required reportlab? Massimo had an application for creating forms that used markmin and latex. This web2py app includes a plugin that implements an assortment of pdf stuff (mostly your implementation of pyfpdf and the report.pdf, was that a Google thing?. Anyway the plugin is

[web2py] Re: experimental... .pdf

2011-05-26 Thread Massimo Di Pierro
I just made a change to trunk about. the new generic.pdf uses pyfpdf and it is smart in locating files for including images. massimo On May 26, 10:44 pm, Christopher Steel chris.st...@gmail.com wrote: I think report.pdf required reportlab? Massimo had an application for creating forms that

[web2py] Re: experimental... .pdf

2011-05-26 Thread Massimo Di Pierro
There are still problems...it does not render headers and tables... On May 26, 11:06 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I just made a change to trunk about. the new generic.pdf uses pyfpdf and it is smart in locating files for including images. massimo On May 26, 10:44 

Re: [web2py] Re: experimental... .pdf

2010-10-03 Thread Michele Comitini
@Mart 1) You need to install a TeX distribution, TeX Live is probably the most complete: http://tug.org/texlive/ 2010/10/3 mart msenecal...@gmail.com: Ok, 'm really liking this! a few questions: 1) I'm not catching on where we get pdflatex... is it a plugin? where do we get it? 2) Is

[web2py] Re: experimental... .pdf

2010-10-03 Thread mart
@Michele: Thanks for that, I will make good use of it! :) @Massimo: scaling is one of those options that is more often set by the pdf viewer (because what generates the pdf usually sets the default to scaling=enabled). If I re-use that fingerboard example: When using the app, the young violinist,

[web2py] Re: experimental... .pdf

2010-10-03 Thread mdipierro
if there are errors it should return text containing the errors, else pdf. This mechanism for error reporting is temporary and does not quite work. On Oct 3, 3:02 pm, Michele Comitini michele.comit...@gmail.com wrote: @Massimo, is it text? response.headers['content-type']='text' or

[web2py] Re: experimental... .pdf

2010-10-02 Thread mdipierro
or better {{ import re from gluon.contrib.markmin.markmin2pdf import markmin2pdf def markmin_serializer(text,tag=None,attr={}): if tag==None: return re.sub('\s+',' ',text) if tag=='br': return '\n\n' if tag=='h1': return '# '+text+'\n\n' if tag=='h2': return '#'*2+' '+text+'\n\n'

[web2py] Re: experimental... .pdf

2010-10-02 Thread mart
Ok, 'm really liking this! a few questions: 1) I'm not catching on where we get pdflatex... is it a plugin? where do we get it? 2) Is this a feature that can be add to an up for users? meanin something like upload your document - then download your pdf (or email generated pdf)? should be