Search found 1046 matches

by utelle
Fri Dec 11, 2020 4:06 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.6.3 released
Replies: 12
Views: 6370

Re: ANN: wxSQLite3 4.6.2 released

Hi Xav' I've tried to build this last release with MinGW (Version 8.1.0 - 32 bits from MinGW-w64), but I failed. I tried with the default options with the following command line : mingw32-make config=release_x32 wxsqlite3 Here are the output I obtain: "==== Building wxsqlite3 (release_x32) ====...
by utelle
Mon Dec 07, 2020 10:45 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.6.3 released
Replies: 12
Views: 6370

ANN: wxSQLite3 4.6.3 released

Version 4.6.3 of wxSQLite3 has been released. It supports version 3.34.0 of SQLite . This version is compatible with wxWidgets 2.8.12, wxWidgets 3.0.x, and wxWidgets 3.1.x. What's new in this release Upgrade to SQLite3 Multiple Ciphers version 1.1.2 Upgrade to SQLite version 3.34.0 Added method wxSQ...
by utelle
Mon Dec 07, 2020 12:37 pm
Forum: C++ Development
Topic: memory leak reported in Visual Studio when using wxWidgets and poppler
Replies: 16
Views: 1140

Re: memory leak reported in Visual Studio when using wxWidgets and poppler

Very weird. Without finding out what's actually leaking, i think we won't make any progress. Did you try VLD? Tried VLD, one line said "No memory leaks detected", another said "Detected memory leaks" If you are using poppler and/or wxwidgets as DLLs, you probably included the VL...
by utelle
Sat Dec 05, 2020 7:50 am
Forum: Database Related
Topic: is wxSQLite3 Resultset thread safe?
Replies: 13
Views: 19003

Re: is wxSQLite3 Resultset thread safe?

how to do as below? If you need to access the same database from different threads you should open a separate database connection for each thread, then you are safe. Simply use one wxSQLite3Database instance per thread. Call its Open method on thread initialization and its Close method on thread te...
by utelle
Fri Dec 04, 2020 10:06 am
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 4685

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

cutecode wrote: Fri Dec 04, 2020 9:28 am Greate thanks for your job.
You are welcome.

I applied a fix a few minutes ago. Now an assertion should no longer occur.
by utelle
Fri Dec 04, 2020 7:40 am
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 4685

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

Thank you, now it is ok. Good news. But now I have an assertion ASSERT INFO: ../src/common/unichar.cpp(52): assert ""Assert failure"" failed in FromHi8bit(): invalid multibyte character BACKTRACE: [1] wxUniChar::FromHi8bit(char) [2] wxPdfEncrypt::CreateDocumentId() [3] wxPdfDocu...
by utelle
Thu Dec 03, 2020 9:35 pm
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 4685

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

The problem was that pen and brush were not explicitly set after a new page was started, if they happened to be equal to the last pen and brush used on the previous page. Since on page start a default pen color of black is set, this resulted in the effect you observed. I have applied a quick fix to ...
by utelle
Thu Dec 03, 2020 1:33 pm
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 4685

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

At first I thought I had wrong code in my drawings. But after simplifing my code I found that DrawRectangle() uses always BLACK PEN started from second page On first page pen is ok, but starting from page 2 it always black At first, I thought it might have to do with the fact that method StartPage ...
by utelle
Wed Nov 25, 2020 7:46 am
Forum: wxCode
Topic: wxPdfDocument how to compile for code::blocs?
Replies: 2
Views: 5708

Re: wxPdfDocument how to compile for code::blocs?

I didn't find information on how to compile wxPdfDocument with mingw32 on Windows. The readme file coming with wxPdfDocument contains a few words about installing/compiling the library. It doesn't mention MinGW explicitly, but GCC (which is the compiler used by MinGW). For building with GCC (resp M...
by utelle
Tue Nov 24, 2020 12:44 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 13848

Re: PDF/A-1 ISO 19005-1:2005 How to?

Great thanks for your job!!! You are welcome. I guess that the addition of PDF/A-1B support to wxPdfDocument may be useful for other users as well. [wxPdfDocument can't do that for you, unfortunately. I can place the image on an empty place of the PDF, that's not big problem. Glad to hear that you ...
by utelle
Tue Nov 24, 2020 10:00 am
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 13848

Re: PDF/A-1 ISO 19005-1:2005 How to?

THANK YOU!!! No erros are displeyed now. That's good news. One thing you could try additionally would be to allow subsetting of fonts again. This should work, too. At least it did in my own experiments. The resulting PDF files are much smaller. But... Anyway, I have one little problem with displayi...
by utelle
Mon Nov 23, 2020 10:11 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 13848

Re: PDF/A-1 ISO 19005-1:2005 How to?

CIDFont TrueType Without CIDToGIDMap is set, but shouldn't be Obviously it is not enough to embed a complete font, but additional information is even then required - at least for TrueType fonts. Well, I have to inspect the PDF reference manuals once again, how to prepare the required TrueType font ...
by utelle
Sat Nov 21, 2020 10:36 pm
Forum: C++ Development
Topic: How to remove transparency from an image
Replies: 8
Views: 549

Re: How to remove transparency from an image

thank you ConvertAlphaToMask(); did help The method wxDC::DrawBitmap allows to disable the mask. And that is also respected by wxPdfDC. However, a wxBitmap can have both, a mask and an alpha channel. Therefore wxPdfDC uses transparency, if the bitmap has an alpha channel. If the underlying wxPdfDoc...
by utelle
Sat Nov 21, 2020 10:18 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 13848

Re: PDF/A-1 ISO 19005-1:2005 How to?

I found where I draw rectangle out of page bounderies. And this did help on removing the error RealOverflow14 is set, but shouldn't be Good news. 1 error left CIDFont TrueType Without CIDToGIDMap is set, but shouldn't be Obviously it is not enough to embed a complete font, but additional informatio...
by utelle
Fri Nov 20, 2020 11:34 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 13848

Re: PDF/A-1 ISO 19005-1:2005 How to?

I set pdfDoc->SetFontSubsetting(0); and removed those lines but the same errors CIDFontSubsetWithoutCIDSet is set, but shouldn't be CIDFontTrueTypeWithoutCIDToGIDMap is set, but shouldn't be RealOverflow14 is set, but shouldn't be Hm, the offending rectangle is still in the page content. And for th...