Dear All,
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"
according to the valgrind, this erro is generated at the line
Wt::WPainter p(&pdfImage).
I don't know, if it is a bug in Wt or not.
Could somebody show me a working example, how can I generate a pdf file
with "Hello World" text?
Thanks,
Gabor
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest