Search found 857 matches

by utelle
Mon Nov 05, 2018 12:17 pm
Forum: Database Related
Topic: wxsqlite3.4.2.0 how to open old encryted database
Replies: 2
Views: 882

Re: wxsqlite3.4.2.0 how to open old encryted database

I have some old database (encryted with AES256 using wxsqlite3.3.5.0.dll) which I want to access after switching to wxsqlite3.4.2.0. According to the documentation, I need to run one of the following (depend on the encryption method used) : SELECT wxsqlite3_config("cipher", "aes256cbc"); SELECT wxs...
by utelle
Fri Nov 02, 2018 11:01 pm
Forum: wxCode
Topic: Problem Printing From Adobe
Replies: 1
Views: 412

Re: Problem Printing From Adobe

Hi Bob, We have a PDF file, attached, that was created from version 0.96 of wxPdfDocument using wxWidgets 3.1.0 on Windows 10. Compiler is Visual Studio VS14. When we try to print to an HP printer we get a message box with a message "Flattening". It times out after some time with a message that it c...
by utelle
Mon Oct 29, 2018 12:05 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.3.0 released
Replies: 0
Views: 690

ANN: wxSQLite3 4.3.0 released

Version 4.3.0 of wxSQLite3 has been released. It supports version 3.25.3 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 [Nov 15, 2018] Upgrade to SQLite version 3.25.3 Adjusted encryption extension to support cipher conf...
by utelle
Sun Sep 30, 2018 6:35 am
Forum: wxCode
Topic: wxPdfDoc - Probblem with WriteXml and align=justify
Replies: 4
Views: 802

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

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

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

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

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

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

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

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

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

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

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

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