I don't think you can mix markmin with fpdf (using the html to pdf functions). You will have to build your pdf in the controller picking up the text from the html.
2015-06-04 23:27 GMT+02:00 Martin Weissenboeck <mweis...@gmail.com>: > What I want to do: > > > - I want to write some pages using markmin. > - Headlines should be centered and the date should be aligned right. > - These pages contain non-ASCII-characters, therefore I need utf-8. > - There should be a qr-code on the first page. > - At the end I want to get these pages as HTML-code and as pdf. > > > I have found: > > - right-aligned text: I have written something like > t=markmin("``text``:right", extra=dict(right=lambda t: P(t, > _align="right"))) > - pyfpdf needs pdf.add_font(..., uni=True), but pdf.write_html does > not understand this font. > I have to use pdf.write_html("<font face='DejaVu'>%s</font>" % t) > - A qr in markmin creates a nice qr-picture, but the pyfpdf command > write_html does not accept it. > > > > All these steps are a little bit complicated. It seems that it is not > possible to combine all these requests in a simple way. Or has anybody a > better solution? > > Regards., Martin > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.