Search found 897 matches

by utelle
Sun Sep 23, 2018 10:38 am
Forum: wxCode
Topic: wxPdfDoc - Crash in wxPdfTokenizer
Replies: 1
Views: 343

Re: wxPdfDoc - Crash in wxPdfTokenizer

I observed some crashes when using wxPdfDoc from multiple threads simultaneously and importing pdf files as templates. Thanks for reporting this issue. Being able to trace the problem down to wxPdfTokenizer::NextToken(), I found a static wxString buffer there which is obviously not thread-safe. As ...
by utelle
Fri Sep 21, 2018 3:35 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.1.1 released
Replies: 0
Views: 1158

ANN: wxSQLite3 4.1.1 released

Version 4.1.1 of wxSQLite3 has been released. It supports version 3.25.2 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 SQLite version 3.25.2 What's new in release 4.1.0 Upgrade to SQLite version 3.25.1 Added ...
by utelle
Fri Sep 14, 2018 1:07 pm
Forum: wxCode
Topic: wxPdfFontManager not initialized
Replies: 4
Views: 1748

Re: wxPdfFontManager not initialized

After many tests I found out that it works fine in MSW wxWidgets 3.1.0 but fails in 3.1.1. This is very strange, because I use wxPdfDocument myself together with wxWidgets 3.1.1 without any problems. I did not have time to figure out the specific problem and just reverted back to 3.1.0. I do use wx...
by utelle
Tue Sep 04, 2018 8:28 pm
Forum: wxCode
Topic: wxPdfFontManager not initialized
Replies: 4
Views: 1748

Re: wxPdfFontManager not initialized

Hi, I have a similar error as this one: https://forums.wxwidgets.org/viewtopic.php?t=39815 The ms_fontManager ist nullptr because wxPdfDocumentModule::OnInit() is not called. This is how I want to use it: wxPdfDocument pdfDcmt; wxFont defaultFont(wxFontInfo(10).Family(wxFONTFAMILY_DEFAULT).Underlin...
by utelle
Tue Aug 28, 2018 8:13 am
Forum: wxCode
Topic: Rotate a wxpdfdoc page
Replies: 3
Views: 611

Re: Rotate a wxpdfdoc page

Hello, i am looking is for editing with easy way, without add page, making a new pdf. I'd like to emphasize again that wxPdfDocument primarily serves the purpose to generate new PDF documents. It is not a tool for manipulating existing PDF documents, although simple tasks can be fulfilled with the ...
by utelle
Tue Aug 28, 2018 8:05 am
Forum: wxCode
Topic: Problem inserting a certain pdf file.
Replies: 1
Views: 390

Re: Problem inserting a certain pdf file.

Hello. In certain pdf file that i upload there is problem inserting the page. ../src/common/mstream.cpp(196): assert "buffer" failed in CopyTo(): must have buffer to CopyTo int tpl = pdfile.ImportPage(1); IMHO the PDF file is somewhat crippled, because it contains an absolutely empty page content s...
by utelle
Thu Aug 23, 2018 2:59 pm
Forum: wxCode
Topic: Rotate a wxpdfdoc page
Replies: 3
Views: 611

Re: Rotate a wxpdfdoc page

We find in sites online services to rotate a page in a pdf. With wxPDFDoc lib there is an easy way to rotate a page from pdf? Why don't you study the samples coming with wxPdfDocument? Most likely you would find answers to many of your questions. Sample tutorial1 shows how to add pages of different...
by utelle
Sun Aug 19, 2018 2:53 am
Forum: wxCode
Topic: wxPdfDocument Calculating Text Height
Replies: 1
Views: 1700

Re: wxPdfDocument Calculating Text Height

I see a GetStringWidth but I do not see one for height? Am I missing it? The method you are seeking for is GetFontSize . This method returns the size of the currently selected font in points, where 1 point equals 1/72 inch. It is not necessary to calculate the text height of a text string, because ...
by utelle
Sat Aug 18, 2018 9:15 pm
Forum: wxCode
Topic: wxPdfDocument SetAutoPageBreak Not Working
Replies: 3
Views: 1806

Re: wxPdfDocument SetAutoPageBreak Not Working

I am trying to figure out the SetAutoPageBreak but it seems that I am not using it properly. Even though the loop goes to 250, the pdf document is only one page This is not surprising, because you used method Text of wxPdfDocument to output your text strings to PDF. The signature of this method is ...
by utelle
Thu Aug 16, 2018 9:55 pm
Forum: wxCode
Topic: Getting Text Size With wxPdfDocument
Replies: 2
Views: 1785

Re: Getting Text Size With wxPdfDocument

Hello, I am trying to use GetStringWidth() in wxPdfDocument and I was expecting the line drawn to be the same length as the text. Does anyone know what I am doing wrong? Yes. You are using the Line method incorrectly. You have to specify the start point and the end point of the line. However, you u...
by utelle
Tue Jul 31, 2018 10:06 pm
Forum: Announcements and Discoveries
Topic: ANN: wxChartDir 1.0.0 released
Replies: 0
Views: 1445

ANN: wxChartDir 1.0.0 released

Version 1.0.0 of wxChartDir has been released. This version is compatible with wxWidgets 3.0.x, and wxWidgets 3.1.x. What is wxChartDir wxChartDir provides components for the integration and use of the commercial C++ library ChartDirector , a universal chart component developed by Advanced Software ...
by utelle
Thu Jul 26, 2018 11:50 am
Forum: wxCode
Topic: wxSqlite3 and Creating Virtual tables...
Replies: 3
Views: 580

Re: wxSqlite3 and Creating Virtual tables...

What is the best way to create a table that say consists of 3 columns: Name char, Price real, Qty real I don't see where this could be done using wxSqlite3 unless I'm missing something. (I probably am, ;) ) If you are actually referring to SQLite's virtual tables based on the virtual table mechanis...
by utelle
Mon Jul 23, 2018 12:21 pm
Forum: wxCode
Topic: wxSQLIte3 from sources...
Replies: 13
Views: 2569

Re: wxSQLIte3 from sources...

Now it seems much better. But i have a little problem... Something i don’t make with right way. I send the last C::B file. I don't know and haven't used Code::Blocks myself. So most likely I will be of little help to solve C::B issues. /usr/bin/ld: obj/Debug/wxsqlite3/sqlite3secure/src/sqlite3secur...
by utelle
Sun Jul 22, 2018 7:04 pm
Forum: wxCode
Topic: wxSQLIte3 from sources...
Replies: 13
Views: 2569

Re: wxSQLIte3 from sources...

Hello, now i have some time to try wxSqlite3 from sources. I am taking an error in try to compile minimal in Linux Mint... /home/a/repo/wxsqlite3/sqlite3secure/src/chacha20poly1305.c|85|error: unknown type name ‘size_t’| Obviously you try to compile the source files in wxsqlite3/sqlite3secure/src s...
by utelle
Thu Jul 19, 2018 9:07 pm
Forum: wxCode
Topic: Wrong chars on double pdf files
Replies: 2
Views: 536

Re: Wrong chars on double pdf files

If i try to add 2 times a pdf file, the result is wrong. I just send the 1.pdf file and the result in 2.pdf in zip 12.zip file. You could call this a bug in wxPdfDocument . wxPdfDocument keeps a list of PDF parsers for each PDF document, for which method SetSourceFile is invoked. However, it was no...