Hey,

2011/6/30 tusi <t...@enzim.hu>:
> I would like to make a pdf file, using WPdfImage. I try the simple code,
> found in the documentation:
>
> Wt::WPdfImage pdfImage(Wt::WLength(4, Wt::WLength::Centimeter),
> Wt::WLength(3, Wt::WLength::Centimeter));
>  {
>   Wt::WPainter p(&pdfImage);
> //   chart->paint(p);
>  }
>  std::ofstream f("chart.pdf", std::ios::out | std::ios::binary);
>  pdfImage.write(f);
>
>
> However, I get the following error during the run:
>
> "Error during event handling: WPdfImage error: error_no=102B,
> detail_no=0"
>

It will work correctly with the latest git. Alternatively, you can
disable pango from your Wt build. The bug was triggered by not
enabling UTF-8 encoding for libharu, which is needed for true type
font rendering.

Regards,
koen

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to