Search found 824 matches

by utelle
Sun Sep 30, 2018 6:35 am
Forum: wxCode
Topic: wxPdfDoc - Probblem with WriteXml and align=justify
Replies: 4
Views: 406

Re: wxPdfDoc - Probblem with WriteXml and align=justify

I will take a closer look at your solution. If I don't find any show stopper I will most likely integrate it in wxPdfDocument. I'll drop a note. Just a short update: In the meantime I implemented a generic solution to this justification problem (see wxPdfDocument github repository ). Regards, Ulrich
by utelle
Sun Sep 23, 2018 10:46 am
Forum: wxCode
Topic: wxPdfDoc - Probblem with WriteXml and align=justify
Replies: 4
Views: 406

Re: wxPdfDoc - Probblem with WriteXml and align=justify

Hi Dieter, some weeks ago I finally found some time for looking into this and implemented a solution that works for me without problems since then. Thanks for addressing this issue. I attached my solution based on wxPdfDoc 0.9.6. The new code is only used with wxPDF_ALIGN_JUSTIFY and Unicode Fonts, ...
by utelle
Sun Sep 23, 2018 10:38 am
Forum: wxCode
Topic: wxPdfDoc - Crash in wxPdfTokenizer
Replies: 1
Views: 55

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: 148

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 SQLi...
by utelle
Fri Sep 14, 2018 1:07 pm
Forum: wxCode
Topic: wxPdfFontManager not initialized [SOLVED]
Replies: 4
Views: 489

Re: wxPdfFontManager not initialized [SOLVED]

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 [SOLVED]
Replies: 4
Views: 489

Re: wxPdfFontManager not initialized [SOLVED]

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: 185

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: 92

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...
by utelle
Thu Aug 23, 2018 2:59 pm
Forum: wxCode
Topic: Rotate a wxpdfdoc page
Replies: 3
Views: 185

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 ...
by utelle
Sun Aug 19, 2018 2:53 am
Forum: wxCode
Topic: wxPdfDocument Calculating Text Height [SOLVED]
Replies: 1
Views: 575

Re: wxPdfDocument Calculating Text Height [SOLVED]

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 [SOLVED]
Replies: 3
Views: 628

Re: wxPdfDocument SetAutoPageBreak Not Working [SOLVED]

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 [SOLVED]
Replies: 2
Views: 615

Re: Getting Text Size With wxPdfDocument [SOLVED]

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: 480

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: 136

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: 10
Views: 1036

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...

Go to advanced search