Search found 896 matches

by utelle
Thu Nov 07, 2019 12:57 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 12
Views: 253

Re: wxpdfdoc lib directory wrong

so managed to write a cell in the first line behind it a multicell (1 line with shorter length) then rest of multicell with normal line length. Together with your hint of only writing all lines except the last one, I guess it should be possible to get the position, as then the last line will be wri...
by utelle
Thu Nov 07, 2019 12:54 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 12
Views: 253

Re: wxpdfdoc lib directory wrong

Does multicell justify just with the length of line or also the margin, whichever comes first? As it seams it only justifies the length of the line and ignoring the right margin all together and writes the one line length to it. It depends. If the width parameter of method MultiCell is set to 0, th...
by utelle
Thu Nov 07, 2019 11:02 am
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 12
Views: 253

Re: wxpdfdoc lib directory wrong

Thanks for the tipp with the template. You are welcome. Is there a way to find the position where it stopped writing by multicell? The MultiCell method sets the current position to the beginning of the next line below. And this is the intended behaviour. In Cell there is the way ln Indicates where ...
by utelle
Wed Nov 06, 2019 10:03 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 12
Views: 253

Re: wxpdfdoc lib directory wrong

Yes everything works correct now. Thanks for confirming. Would have some wxpdfdoc related questions: First is it somehow possible to add a created pdf page(index of a book) to the front of another created pdf file (the book)? With the current version of wxPdfDocument you could create the index as a...
by utelle
Tue Nov 05, 2019 2:12 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 12
Views: 253

Re: wxpdfdoc lib directory wrong

I will look into the issue within the next days. Most likely fixing it will require only minor adjustments to the build files. There were 2 issues in the wx_setup.props property file coming with wxPdfDocument : A superfluous backslash was added to the library output path The path suffix was not pro...
by utelle
Tue Nov 05, 2019 10:07 am
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 12
Views: 253

Re: wxpdfdoc lib directory wrong

Solved it by setting the additional lib directory to vc_x64_. Well, this is of course only a temporary workaround. Just for conformity it would be good if the directory would be vc_x64_lib. I will look into the issue within the next days. Most likely fixing it will require only minor adjustments to...
by utelle
Sun Nov 03, 2019 10:07 am
Forum: C++ Development
Topic: Best printing for my needs
Replies: 5
Views: 149

Re: Best printing for my needs

I'm not too familiar with wxPdfDocument, but looking through the docs, it could be an option. Of course, it heavily depends on the actual requirements. Personally, I use wxPdfDocument for almost all my reporting tasks - however, that's not a big surprise being the author of wxPdfDocument . :) But A...
by utelle
Thu Sep 26, 2019 9:11 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

utelle wrote: I will look into this issue. However, it may take some time to implement the necessary optimizations. Thank you very much. I applied a few optimizations to wxPdfDC in the hope that they will reduce the size of the resulting PDF. Could you please try the latest wxPdfDocument code and r...
by utelle
Tue Sep 24, 2019 9:05 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

I simply posted your own suggestion from here which is dated 5 SEP 2019. In that case the original post was done in the more general C++ subforum. Since many posts are posted to that subforum, the post did not stay long enough on top of the list to catch my attention. Therefore I recommended to pos...
by utelle
Tue Sep 24, 2019 8:58 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

Ok, Thanks, I'll use GitHub in the future. As you see I respond on this forum, too, and usually also in a rather timely fashion. Here's a 7z file with the three PDF files that we generated. Two use the wxPrinter class and the third uses the wxPdfPrinter class along with the wxPdfDC class. BOARD_wxp...
by utelle
Tue Sep 24, 2019 7:25 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

The correct link is here . Unfortunately the wxCode project on SourceForge is effectively dead. On the page displayed when you follow the link you will see the note: Note : As of January 2018 this project has been retired. My former wxCode projects wxSQLite3 and wxPdfDocument were moved to GitHub l...
by utelle
Tue Sep 24, 2019 7:14 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

ONEEYEMAN wrote:
Tue Sep 24, 2019 7:05 pm
Hi,
rsb wrote:
Tue Sep 24, 2019 7:00 pm
This is the wxCode forum. Isn't it?
No, this is wxWidgets forum.
You should check here.
The above link gets you a "page not found error", so I don't know to which forum you are referring.
by utelle
Tue Sep 24, 2019 7:10 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

Ulrich, Ulrich is not checking this forum frequently. Well, I check the wxWidgets forum almost daily - unless I'm out of office, or on vacation, or whatever distracts me ... I am sorry to step in. I just copy the advice from another thread in thread in the same sub-forum. Obviously the question is ...
by utelle
Tue Sep 24, 2019 7:06 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

We're getting file sizes larger than when printing using the wxPrinter class. wxPdfDC does not perform any active optimization. Therefore it can easily happen that the resulting PDF size is larger. The best results can usually be achieved if a PDF document is created directly via wxPdfDocument inst...
by utelle
Tue Sep 24, 2019 6:47 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 722

Re: PDF File Size Larger than Expected

Ulrich is not checking this forum frequently. Well, I check the wxWidgets forum almost daily - unless I'm out of office, or on vacation, or whatever distracts me ... Please either send something on wxCode forum or use GitHub and open an issue there. This is for sure a good advice. The advantage on ...