Search found 905 matches

by utelle
Sun Nov 03, 2019 10:07 am
Forum: C++ Development
Topic: Best printing for my needs
Replies: 5
Views: 429

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

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

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

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

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

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

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

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

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 ...
by utelle
Sat Sep 21, 2019 4:40 pm
Forum: Announcements and Discoveries
Topic: ANN: wxPdfDocument 0.9.8 released
Replies: 0
Views: 1082

ANN: wxPdfDocument 0.9.8 released

Version 0.9.8 of wxPdfDocument has been released. This version is compatible with wxWidgets 2.8.12, 3.0.x, and 3.1.x. Sample PDF files created with wxPdfDocument can be found here . What's new in this release General changes - Added alpha transparency support for wxPdfDC (wxWidgets 3.x only) - Elimi...
by utelle
Fri Sep 06, 2019 6:19 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 1272

Re: wxPdfDc semi transparent brush

Well, you did not reveal earlier that you were using the wxPdfDC template mode.

Indeed this did not work due to missing references to the required extended graphics state information. This has been fixed in the latest commit on GitHub.
by utelle
Fri Sep 06, 2019 2:29 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 1272

Re: wxPdfDc semi transparent brush

It does not work yet. I saw the alpha value was there in SetupAlpha() in > wxpdfdocd.dll!wxPdfDCImpl::DoDrawRectangle(int x, int y, int width, int height) Zeile 791 C++ wxmsw313ud_core_vc_x64_custom.dll!wxDC::DrawRectangle(int x, int y, int width, int height) Zeile 1170 C++ but it does not show up ...
by utelle
Fri Sep 06, 2019 11:18 am
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 1272

Re: wxPdfDc semi transparent brush

Thank you! It does not work yet. I saw the alpha value was there in SetupAlpha() in > wxpdfdocd.dll!wxPdfDCImpl::DoDrawRectangle(int x, int y, int width, int height) Zeile 791 C++ wxmsw313ud_core_vc_x64_custom.dll!wxDC::DrawRectangle(int x, int y, int width, int height) Zeile 1170 C++ but it does n...
by utelle
Thu Sep 05, 2019 9:01 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 1272

Re: wxPdfDc semi transparent brush

Unfortunately, wxPdfDC currently doesn't support alpha transparency, although the underlying wxPdfDocument class does. It shouldn't be too hard to add this capability. However, it would need testing. In the meantime I have implemented the alpha transparency support for wxPdfDC. Commit a03399b on Gi...
by utelle
Thu Sep 05, 2019 7:40 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 1272

Re: wxPdfDc semi transparent brush

Sorry for the late response. This post simply dropped out of sight too fast, since I don't check the wxForum that often. In urgent cases post to the wxCode subforum, or even better open an issue on GitHub . On screen I paint a rectangle with 10% transparency using dc->SetBrush(wxColour(col.Red(), co...