Search found 997 matches

by utelle
Fri Dec 04, 2020 10:06 am
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 114

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

cutecode wrote:
Fri Dec 04, 2020 9:28 am
Greate thanks for your job.
You are welcome.

I applied a fix a few minutes ago. Now an assertion should no longer occur.
by utelle
Fri Dec 04, 2020 7:40 am
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 114

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

Thank you, now it is ok. Good news. But now I have an assertion ASSERT INFO: ../src/common/unichar.cpp(52): assert ""Assert failure"" failed in FromHi8bit(): invalid multibyte character BACKTRACE: [1] wxUniChar::FromHi8bit(char) [2] wxPdfEncrypt::CreateDocumentId() [3] wxPdfDocument::PutTrailer() [...
by utelle
Thu Dec 03, 2020 9:35 pm
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 114

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

The problem was that pen and brush were not explicitly set after a new page was started, if they happened to be equal to the last pen and brush used on the previous page. Since on page start a default pen color of black is set, this resulted in the effect you observed. I have applied a quick fix to ...
by utelle
Thu Dec 03, 2020 1:33 pm
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 114

Re: wxPdfDC - DrawRectangle() uses black pen instead of mine

At first I thought I had wrong code in my drawings. But after simplifing my code I found that DrawRectangle() uses always BLACK PEN started from second page On first page pen is ok, but starting from page 2 it always black At first, I thought it might have to do with the fact that method StartPage ...
by utelle
Wed Nov 25, 2020 7:46 am
Forum: wxCode
Topic: wxPdfDocument how to compile for code::blocs?
Replies: 2
Views: 260

Re: wxPdfDocument how to compile for code::blocs?

I didn't find information on how to compile wxPdfDocument with mingw32 on Windows. The readme file coming with wxPdfDocument contains a few words about installing/compiling the library. It doesn't mention MinGW explicitly, but GCC (which is the compiler used by MinGW). For building with GCC (resp M...
by utelle
Tue Nov 24, 2020 12:44 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

Great thanks for your job!!! You are welcome. I guess that the addition of PDF/A-1B support to wxPdfDocument may be useful for other users as well. [wxPdfDocument can't do that for you, unfortunately. I can place the image on an empty place of the PDF, that's not big problem. Glad to hear that you ...
by utelle
Tue Nov 24, 2020 10:00 am
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

THANK YOU!!! No erros are displeyed now. That's good news. One thing you could try additionally would be to allow subsetting of fonts again. This should work, too. At least it did in my own experiments. The resulting PDF files are much smaller. But... Anyway, I have one little problem with displayi...
by utelle
Mon Nov 23, 2020 10:11 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

CIDFont TrueType Without CIDToGIDMap is set, but shouldn't be Obviously it is not enough to embed a complete font, but additional information is even then required - at least for TrueType fonts. Well, I have to inspect the PDF reference manuals once again, how to prepare the required TrueType font ...
by utelle
Sat Nov 21, 2020 10:36 pm
Forum: C++ Development
Topic: How to remove transparency from an image
Replies: 8
Views: 224

Re: How to remove transparency from an image

thank you ConvertAlphaToMask(); did help The method wxDC::DrawBitmap allows to disable the mask. And that is also respected by wxPdfDC. However, a wxBitmap can have both, a mask and an alpha channel. Therefore wxPdfDC uses transparency, if the bitmap has an alpha channel. If the underlying wxPdfDoc...
by utelle
Sat Nov 21, 2020 10:18 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

I found where I draw rectangle out of page bounderies. And this did help on removing the error RealOverflow14 is set, but shouldn't be Good news. 1 error left CIDFont TrueType Without CIDToGIDMap is set, but shouldn't be Obviously it is not enough to embed a complete font, but additional informatio...
by utelle
Fri Nov 20, 2020 11:34 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

I set pdfDoc->SetFontSubsetting(0); and removed those lines but the same errors CIDFontSubsetWithoutCIDSet is set, but shouldn't be CIDFontTrueTypeWithoutCIDToGIDMap is set, but shouldn't be RealOverflow14 is set, but shouldn't be Hm, the offending rectangle is still in the page content. And for th...
by utelle
Fri Nov 20, 2020 10:49 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

Regarding the message about the real value Absolute real value must be less than or equal to 32767.0 I found out that your code seems to draw a rectangle right at the beginning using very large coordinates 42.00 34.00 71769.72 71457.64 re B The values correspond to the x/y values of left resp right ...
by utelle
Fri Nov 20, 2020 10:33 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

hello. now I have these errors CIDFontSubsetWithoutCIDSet is set, but shouldn't be CIDFontTrueTypeWithoutCIDToGIDMap is set, but shouldn't be RealOverflow14 is set, but shouldn't be Well, at least the list of remaining errors is rather short. I will have to take a look at the PDF documentation to f...
by utelle
Fri Nov 20, 2020 7:47 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

The same result Absolute real value must be less than or equal to 32767.0 DeviceRGB may be used only if the file has a PDF/A-1 OutputIntent that uses an RGB colour space For the first message, I have no clue, unfortunately. The second message is not surprising, because the PDF document includes the...
by utelle
Fri Nov 20, 2020 1:47 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 791

Re: PDF/A-1 ISO 19005-1:2005 How to?

A first implementation of PDF/A-1B support is now available at the wxPdfDocument GitHub repository.