Search found 3 matches

by dschmeer
Sat Sep 22, 2018 10:51 pm
Forum: wxCode
Topic: wxPdfDoc - Crash in wxPdfTokenizer
Replies: 1
Views: 5547

wxPdfDoc - Crash in wxPdfTokenizer

I observed some crashes when using wxPdfDoc from multiple threads simultaneously and importing pdf files as templates. Being able to trace the problem down to wxPdfTokenizer::NextToken(), I found a static wxString buffer there which is obviously not thread-safe. As the buffer is always cleared when ...
by dschmeer
Sat Sep 22, 2018 10:38 pm
Forum: wxCode
Topic: wxPdfDoc - Probblem with WriteXml and align=justify
Replies: 4
Views: 9100

Re: wxPdfDoc - Probblem with WriteXml and align=justify

Hello Ulrich, some weeks ago I finally found some time for looking into this and implemented a solution that works for me without problems since then. I attached my solution based on wxPdfDoc 0.9.6. The new code is only used with wxPDF_ALIGN_JUSTIFY and Unicode Fonts, otherwise the old code is used....
by dschmeer
Fri Apr 13, 2018 10:10 pm
Forum: wxCode
Topic: wxPdfDoc - Probblem with WriteXml and align=justify
Replies: 4
Views: 9100

wxPdfDoc - Probblem with WriteXml and align=justify

I use WriteXml to draw some paragraphs of text with align=justify. For the standard fonts this works fine, but for other fonts it simply draws the text left-aligned. Here is the code I use: wxPdfFontManager::GetFontManager()->RegisterSystemFonts(); wxPdfDocument pdf; pdf.SetFont("Helvetica"...