Thanks for the response!
Some background. We generate a lot of pdf from our application. I saw that
after about 4000-5000 files this phenomena appeared. So I did create a test
loop just to hunt the bug. In this case the 4651 first files are OK and then
suddenly all files are corrupt with the same pattern. What I do is that I
create a pdfDC and then send graphics (line and polygons) and texts to that
DC and when the drawing is complete I do a SaveAsFile on the corresponding
pdfDocument. I have spend a lot of time to make sure that font objects are
reused all the time. Are there any known problems with font hanling?
Some details: For each new font I use
wxPdfFontManager::GetFontManager()->RegisterFont(*_font); (where _font is a
normal font that I use for drawing on the screen)
then I create a wxpdfFont and set that font to the pdfDocument in this way
_pdf->GetPdfDocument()->AddFont(_pdffont->GetFamily());
and I also set (when changed) the font to the DC with the method SetFont()
Regards,
Sven-Eric
> --
> Please read
http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to
wx-users+u...@googlegroups.com
> or visit
http://groups.google.com/group/wx-users
>
--
View this message in context:
http://old.nabble.com/wxPdfdocument-tp34100806p34105695.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.