Search found 795 matches

by utelle
Thu Jun 14, 2018 10:23 pm
Forum: wxCode
Topic: Limits of import pdf page
Replies: 4
Views: 92

Re: Limits of import pdf page

This means that inserting page has two different scales, scaleX and scale Y Suppose we have ... Page to be importing .. lx1,ly1 GetLeftMarging a1 GetRightMarging b1 GetTopMarging c1 pdf doc page ... lx2,ly2 GetLeftMarging a2 GetRightMarging b2 GetTopMarging c2 The area (lx1-a1-b1)X(ly1-c1-c1) must ...
by utelle
Thu Jun 14, 2018 8:30 pm
Forum: wxCode
Topic: Limits of import pdf page
Replies: 4
Views: 92

Re: Limits of import pdf page

Importing a page in pdf document and inserting a page how i can know the limits of import? You can't. That is, at least wxPdfDocument doesn't offer any methods for this. I am thinking that left and right are GetLeftMargin(); and GetTopMargin(); Is that right? No. GetLeftMargin, GetTopMargin, GetRig...
by utelle
Thu Jun 14, 2018 8:17 pm
Forum: wxCode
Topic: wxSqlite3 requires sqlite3secure.h?
Replies: 3
Views: 89

Re: wxSqlite3 requires sqlite3secure.h?

So what is the recommended way to build wxSqlite3 statically without creating encrypted database files these days then? Or is it recommended not to do that anymore? wxSQLite3 supports encrypted database files. However, you are not forced to use encryption. If you prefer unencrypted database files i...
by utelle
Wed Jun 13, 2018 6:53 am
Forum: wxCode
Topic: wxSqlite3 requires sqlite3secure.h?
Replies: 3
Views: 89

Re: wxSqlite3 requires sqlite3secure.h?

I'm trying to update my rather old version of wxsqlite3. It's stopping saying that sqlite3secure.h is required. I see the include for that file is not gated behind any if statements. Is that right? Admittedly, the file sqlite3secure.h is not part of the official SQLite3 distribution. However, since...
by utelle
Thu Jun 07, 2018 6:25 pm
Forum: wxCode
Topic: Left, right, top and bottom distances of image in pdf page.
Replies: 1
Views: 194

Re: Left, right, top and bottom distances of image in pdf page.

I have a wxPdfDocument file and inserting an image how i know right and bottom image distances in page? The pdf page is 210X297 mm, and import an image with file.InsertImage(image). Left is with GetX(), top with GetY() functions, but the others? Use methods GetLastImageBottomRightX and GetLastImage...
by utelle
Thu Jun 07, 2018 6:21 pm
Forum: wxCode
Topic: Top left image position
Replies: 3
Views: 163

Re: Top left image position

As i Just see is code ok? from top left to bottom down? It works, but is the right way? double x=aFile.GetX(); double y=aFile.GetY(); aFile.Line(x,y,aFile.GetLastImageBottomRightX(),aFile.GetLastImageBottomRightY()); When calling method Image to insert an image into the PDF document, you have to sp...
by utelle
Tue May 15, 2018 12:32 pm
Forum: wxCode
Topic: wxPdfDocument to image is it possible?
Replies: 4
Views: 141

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

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

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

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

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

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

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

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

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

Go to advanced search