Search found 807 matches

by utelle
Wed Jul 18, 2018 6:03 am
Forum: wxCode
Topic: Inserting pages size???
Replies: 6
Views: 89

Re: Inserting pages size???

I send 3 files, 1.pdf, 2.pdf, 3.pdf. Adding these 3 files produce test1.pdf. Then from all pages i take 2 in file test2.pdf from test1.pdf. The sizes of 2 files are same. I will send and the code... File test.zip is about 45MB. Thanks for the sample data files. Unfortunately, I have to inform you t...
by utelle
Sun Jul 15, 2018 8:13 pm
Forum: wxCode
Topic: Inserting pages size???
Replies: 6
Views: 89

Re: Inserting pages size???

Ok i will send the code and files, but not all files, there are 78. I will try it in small scale and send code and some files to see what hapends. A subset exposing the problem you observed would be enough, of course. Maybe you can pack the files into a zip archive, upload them and send a link for ...
by utelle
Sun Jul 15, 2018 5:12 pm
Forum: wxCode
Topic: Inserting pages size???
Replies: 6
Views: 89

Re: Inserting pages size???

With wxPDFDocument lib i add in a file many pdfs. Size too big, about 700MB in almost 800 pages. Ok so far. In principle, the final PDF file should only be slightly larger than the sum of the sizes of the inserted PDFs. However, it also depends a bit on the settings for wxPdfDocument (for example, ...
by utelle
Thu Jul 12, 2018 6:43 pm
Forum: wxCode
Topic: Exeption in insert page.
Replies: 4
Views: 114

Re: Exeption in insert page.

I applied a fix for the issue on importing a completely empty page.

Please download the latest wxPdfDocument from https://github.com/utelle/wxpdfdoc. With this adjusted version your application should no longer crash on importing page 39 (or 40) of your PDF document.

Regards,

Ulrich
by utelle
Thu Jul 12, 2018 2:53 pm
Forum: wxCode
Topic: Exeption in insert page.
Replies: 4
Views: 114

Re: Exeption in insert page.

Hello.File is big to upload. I send link from where download it... At page 39 crashes .. https://www.epamhellas.gr/site_files/minisi-epi-esxati-epam-hellas.pdf The reason is that the pages 39 and 40 are completely empty , no associated content, no associated resources. It seems that these empty pag...
by utelle
Wed Jul 11, 2018 7:21 pm
Forum: wxCode
Topic: wxPDF : Assert warning
Replies: 1
Views: 79

Re: wxPDF : Assert warning

We are using wx3.1 in our application. Windows OS. When saving a file as PDF using wxPDF, it is throwing the attached warning pop-up. The debug assertion seems to originate from a string formatting operation in the wxWidgets library, not wxPdfDocument. However, the call stack looks very strange, be...
by utelle
Mon Jul 09, 2018 11:37 am
Forum: wxCode
Topic: Exeption in insert page.
Replies: 4
Views: 114

Re: Exeption in insert page.

I have a pdf page to import of a pdf. But in page i there is not any pdf object, there are only white pages. How i can prevent craches in those pages? int tpl = exportPdfFile.ImportPage(i); Please provide a sample PDF file for which the import crashes. I would have to further analyze why a crash ha...
by utelle
Sun Jul 08, 2018 4:25 pm
Forum: Database Related
Topic: Is something like this possible?
Replies: 3
Views: 150

Re: Is something like this possible?

As far as I can tell your problem is related to parameterizing the select SQL statement: stmt1.Bind(1, ListBox1->GetSelection()); // I'M TRYING TO BIND THE LISTBOX recipe_name HERE Here you call method GetSelection of your listbox to bind the selected recipe name to your SQL statement. However, meth...
by utelle
Sun Jul 01, 2018 3:04 pm
Forum: wxCode
Topic: How i can insert a html page from url to pdf page?
Replies: 1
Views: 113

Re: How i can insert a html page from url to pdf page?

If i have a url how i can insert the html page in pdf page? There is some easy way without libraries, only wxPdfDocument? wxPdfDocument itself has no builtin support to convert HTML to PDF. However, wxPdfDocument supports the wxWidgets printing framework. That is, maybe you could use wxHtmlPrintout...
by utelle
Tue Jun 26, 2018 1:59 pm
Forum: wxCode
Topic: Error inport a pdf file
Replies: 1
Views: 91

Re: Error inport a pdf file

Importing a pdf file i take errors... 13:19:29: wxPdfParser::SetupDecryptor: Unknown encryption type (4). 13:19:29: wxPdfParser::SetupDecryptor: Unsupported V value. 13:19:29: wxPdfDocument::SetSourceFile: Parser creation failed. I just upload a pdf file with extension txt because server dont excep...
by utelle
Mon Jun 25, 2018 3:33 pm
Forum: wxCode
Topic: De-serializing a wxFont for a pdf file fails.
Replies: 3
Views: 122

Re: De-serializing a wxFont for a pdf file fails.

In code below i take ... wxPdfFontManagerBase::RegisterFont: Font file 'Sans 40' does not exist or is not readable. This can't work. Method RegisterFont expects the name of a font file or a wxFont object. You should use your wxFont object f to register the font. But then shows wxMessageBox("aa...
by utelle
Mon Jun 25, 2018 7:29 am
Forum: wxCode
Topic: De-serializing a wxFont for a pdf file fails.
Replies: 3
Views: 122

Re: De-serializing a wxFont for a pdf file fails.

I have serialize a font as wxString and then de-serializing with wxFromString, Have you tested and verified that you get the same font on deserializing to a wxFont instance as the one you used to serialize? i am trying to register and set font for pdf document, but nothing happens. What i am doing ...
by utelle
Thu Jun 14, 2018 10:23 pm
Forum: wxCode
Topic: Limits of import pdf page
Replies: 4
Views: 130

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

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

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

Go to advanced search