Search found 789 matches

by utelle
Tue May 15, 2018 12:32 pm
Forum: wxCode
Topic: wxPdfDocument to image is it possible?
Replies: 4
Views: 71

Re: wxPdfDocument to image is it possible?

Actually I need images of every page, not an individual image with precise coordinates. What library would you recommend? Will wxPdfDC satisfy my needs? No, wxPdfDC is just a wxWidgets drawing context, not able to manipulate existing PDF files at all. Maybe you could use PDFedit for this purpose. R...
by utelle
Mon May 14, 2018 9:12 pm
Forum: wxCode
Topic: wxPdfDocument to image is it possible?
Replies: 4
Views: 71

Re: wxPdfDocument to image is it possible?

I scoped to insert images to wxPdfDocument, and now I need to extract those images back from PDF file. Is it possible? I looked at API docs and didn't find any function for it. There is no pre-defined function for this purpose. Keep in mind that wxPdfDocument is meant for generating PDF documents, ...
by utelle
Fri Apr 27, 2018 11:15 am
Forum: Database Related
Topic: Need help with adding variables to Queries
Replies: 8
Views: 308

Re: Need help with adding variables to Queries

In setting up the wxGrid, I want to get a count of the number of entries in a Table and then build the number of Grid rows shown accordingly. I'm used to working with PHP and MariaDB and the solution to this with wx* is elusive. Partially, SQLite is to "blame". When issuing a SELECT query...
by utelle
Fri Apr 27, 2018 10:22 am
Forum: Database Related
Topic: Need help with adding variables to Queries
Replies: 8
Views: 308

Re: Need help with adding variables to Queries

Thank you for the heads up. Your example code is very much appreciated. I left Qt to use wxSQLite3 with Code::Blocks. The learning curve is a little steeper this way, but I favor this to using a hybrid C++. Thanks. I see you used ExecuteUpdate for the INSERT statement and ExecuteQuery for the SELEC...
by utelle
Fri Apr 27, 2018 6:52 am
Forum: Database Related
Topic: Need help with adding variables to Queries
Replies: 8
Views: 308

Re: Need help with adding variables to Queries

I got this partially sorted out. db->Open("zyx.db"); db->ExecuteQuery("INSERT INTO recipe_names(recipe, weight_type) VALUES('" + var1 + "', '" + wt + "');"); wxSQLite3ResultSet Res2 = db->ExecuteQuery("SELECT recipe_id FROM recipe_names WHERE recipe = '&...
by utelle
Tue Apr 24, 2018 2:56 pm
Forum: wxCode
Topic: wxPdfDocument - How to make a precise copy of PDF file?
Replies: 4
Views: 301

Re: wxPdfDocument - How to make a precise copy of PDF file?

All I need is to insert an Image in a PDF file. And I don't know size and orientation of pages in this document After calling ImportPage you can use GetTemplateSize to determine the width and height of the imported page, and from width and height you can deduce the page orientation. I didn't find a...
by utelle
Tue Apr 24, 2018 1:08 pm
Forum: wxCode
Topic: wxPdfDocument - How to make a precise copy of PDF file?
Replies: 4
Views: 301

Re: wxPdfDocument - How to make a precise copy of PDF file?

I use this code to import and save PDF file int tpl; wxPdfDocument pdf; int pages = pdf.SetSourceFile(szInFile); for (int i=1; i<=pages; i++) { pdf.AddPage(); tpl = pdf.ImportPage(i); pdf.UseTemplate(tpl); } pdf.SaveAsFile(szOutFile); but size of output file is not the same as original, and page or...
by utelle
Fri Apr 20, 2018 5:48 pm
Forum: wxCode
Topic: compiling wxpdfdocument on linux
Replies: 4
Views: 186

Re: compiling wxpdfdocument on linux

The build system of wxPdfDocument uses libtool.

If you link against libwxcode_gtk3u_pdfdoc-3.0.la, all should work, since this libtool file contains references to all required dependencies like wxWidgets libraries and fontconfig library.

Regards,

Ulrich
by utelle
Sat Apr 14, 2018 2:07 pm
Forum: wxCode
Topic: wxPdfDoc - Probblem with WriteXml and align=justify
Replies: 1
Views: 103

Re: 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. Has anyone an idea why this is and what I can do to fix this? I used your code sample to investigate the issue. Unfortunately, I have...
by utelle
Sat Apr 14, 2018 7:40 am
Forum: wxCode
Topic: wxPdfDocument - find possition for free space at the bottom
Replies: 5
Views: 160

Re: wxPdfDocument - find possition for free space at the bottom

I know how to load PDF file and move to last page. I need to insert an image at the very end of a PDF document. Is it possible to find "Y-possition" of the last inserted text/image? As you know wxPdfDocument allows to extract pages from existing PDF documents and to include them in new PD...
by utelle
Wed Apr 11, 2018 12:35 pm
Forum: wxCode
Topic: wxPdfDocument - convert pixels to millimeters
Replies: 2
Views: 150

Re: wxPdfDocument - convert pixels to millimeters

in function wxPdfDocument::Image ( const wxString & file, double x, double y, double w = 0, double h = 0, x,y,w,h - are pixels No, that is simply not true. The position, height, and width of the image are given in user units, that is, the unit system selected on creating the wxPdfDocument class...
by utelle
Tue Apr 10, 2018 9:49 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.0.3 released
Replies: 0
Views: 246

ANN: wxSQLite3 4.0.3 released

Version 4.0.3 of wxSQLite3 has been released. It supports version 3.23.1 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 This release is a major update of wxSQLite3 . From now on the cipher for database encryption can be ...
by utelle
Wed Mar 28, 2018 3:02 pm
Forum: Announcements and Discoveries
Topic: Multi-cipher support at runtime for wxSQLite3
Replies: 0
Views: 100

Multi-cipher support at runtime for wxSQLite3

Up to wxSQLite3 version 3.5.9 it had to be decided at compile time, which encryption cipher should be used in the SQLite3 encryption extension. One could choose among the following 2 cipher schemes: ⋅ AES 128 Bit CBC (Default) ⋅ AES 256 Bit CBC These encryption schemes were added...
by utelle
Fri Mar 23, 2018 8:05 am
Forum: Database Related
Topic: Temp tables encrypted?
Replies: 2
Views: 325

Re: Temp tables encrypted?

does wxSQLLite3 encryption have the same limitations as the official sqllite encryption extension, which states that it does not encrypt temp tables? Yes. wxSQLite3 has the same limitations as listed at the bottom of the SEE documentation page . The reason is that this is a limitation of the SQLite...
by utelle
Fri Feb 23, 2018 8:05 am
Forum: wxCode
Topic: WxSqlite3 - Same action two different results [SOLVED]
Replies: 2
Views: 222

Re: WxSqlite3 - Same action two different results [SOLVED]

The problem is this, I have a single row loaded in the table. One method returns the data correctly, but the other method returns a wrong row and a good one For simplicity I made this script, I count the times it enters the loop and I show them on the screen, as I have only one row the correct resu...

Go to advanced search