Search found 394 matches

by cutecode
Thu Dec 03, 2020 11:30 pm
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 4356

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

Thank you, now it is ok. 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() [4] wxPdfDocu...
by cutecode
Thu Dec 03, 2020 10:07 am
Forum: wxCode
Topic: wxPdfDC - DrawRectangle() uses black pen instead of mine
Replies: 6
Views: 4356

wxPdfDC - DrawRectangle() uses black pen instead of mine

Hello, utelle Could you help me? 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 Here is my code for (int nPage = 1; nPage <=...
by cutecode
Wed Nov 25, 2020 11:58 am
Forum: wxCode
Topic: wxPdfDocument how to compile for code::blocs?
Replies: 2
Views: 5147

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

thank you
this did help

Code: Select all

mingw32-make config=release_wxdll_win32  all
by cutecode
Wed Nov 25, 2020 12:18 am
Forum: wxCode
Topic: wxPdfDocument how to compile for code::blocs?
Replies: 2
Views: 5147

wxPdfDocument how to compile for code::blocs?

Hello
I didn't find information on how to compile wxPdfDocument with mingw32 on Windows.
Is this command right?

Code: Select all

mingw32-make -f wxpdfdoc.make BUILD=release SHARED=1 -IE:\wx\lib\gcc_dll\mswu
Thank you
by cutecode
Tue Nov 24, 2020 12:06 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 12674

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

Greate thanks for your job!!!
utelle wrote:
Tue Nov 24, 2020 10:00 am
[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.
by cutecode
Mon Nov 23, 2020 11:46 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 12674

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

THANK YOU!!! No erros are displeyed now. But... Anyway, I have one little problem with displaying images in PDF. 1. If I insert none transparent image in PDF, then all OK, no errors. but... in this case all text(drawings) are hidden by the image inside the document see 1.pdf at the bottom of the doc...
by cutecode
Sat Nov 21, 2020 7:25 pm
Forum: C++ Development
Topic: How to remove transparency from an image
Replies: 8
Views: 546

Re: How to remove transparency from an image

thank you ConvertAlphaToMask(); did help
by cutecode
Sat Nov 21, 2020 5:08 pm
Forum: C++ Development
Topic: How to remove transparency from an image
Replies: 8
Views: 546

Re: How to remove transparency from an image

I don't know whether it is tranaparent or not
My service just responed that

Code: Select all

ImageTransparency is set, but shouldn't be
I just want to write a code for any image without transparancy

I'm not an mage-alpha expert
by cutecode
Sat Nov 21, 2020 4:40 pm
Forum: C++ Development
Topic: How to remove transparency from an image
Replies: 8
Views: 546

Re: How to remove transparency from an image

if I call ClearAlpha() an assertion is called stating that this image does not have Alpha. Setting 24-bit depth did the trick, and this error does not reported. But my image has black background instead of white How to make it white? If I call image.Replace(image.GetMaskRed(), image.GetMaskGreen(), ...
by cutecode
Sat Nov 21, 2020 3:19 pm
Forum: C++ Development
Topic: How to remove transparency from an image
Replies: 8
Views: 546

How to remove transparency from an image

I have an wxImge which must be drawn on wxDC not using transparency Is this right code? image.Rescale(x0, y0, wxIMAGE_QUALITY_NEAREST); wxBitmap bmp(image); bool useMask = false pdc->DrawBitmap(bmp, x, y, useMask); The problem is, I convert this to wxPdfDocument and my service reponds ImageTranspare...
by cutecode
Sat Nov 21, 2020 1:45 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 12674

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

1 error left

Code: Select all

CIDFontTrueTypeWithoutCIDToGIDMap is set, but shouldn't be
I found where I draw rectengle out of page bounderies. And this did help on removing the error
RealOverflow14 is set, but shouldn't be

Thank you
by cutecode
Sat Nov 21, 2020 9:50 am
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 12674

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

2 errors left ))))

Code: Select all

CIDFontTrueTypeWithoutCIDToGIDMap is set, but shouldn't be
RealOverflow14 is set, but shouldn't be
by cutecode
Fri Nov 20, 2020 11:05 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 12674

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

I set
pdfDoc->SetFontSubsetting(0);

and removed those lines but the same errors

Code: Select all

CIDFontSubsetWithoutCIDSet is set, but shouldn't be
CIDFontTrueTypeWithoutCIDToGIDMap is set, but shouldn't be
RealOverflow14 is set, but shouldn't be
by cutecode
Fri Nov 20, 2020 9:39 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 12674

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

and my service responed this

Code: Select all

<ns2:message>
Absolute real value must be less than or equal to 32767.0
For all CIDFont subsets referenced within a conforming file, the font descriptor dictionary shall include a
			CIDSet stream identifyi...</ns2:message>
by cutecode
Fri Nov 20, 2020 9:34 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 12674

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

hello. now I have these errors

Code: Select all

CIDFontSubsetWithoutCIDSet is set, but shouldn't be
CIDFontTrueTypeWithoutCIDToGIDMap is set, but shouldn't be
RealOverflow14 is set, but shouldn't be