Search found 993 matches

by utelle
Wed Nov 25, 2020 7:46 am
Forum: wxCode
Topic: wxPdfDocument how to compile for code::blocs?
Replies: 2
Views: 59

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

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

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

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

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

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

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

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

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

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

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.
by utelle
Mon Nov 16, 2020 11:21 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 569

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

I'm willing to add PDF/A support to wxPdfDocument somehow, but this may take some time. I hope only on you!!! I will tackle this issue. Hopefully not in a too far future. :wink: I would recommend that you use the watch option on the wxPdfDocument GitHub repository . Then you will be automatically i...
by utelle
Mon Nov 16, 2020 11:16 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 569

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

no its my fault I rebuilded wxPdf with an old version I rebuilded it with my current sources and version become again 1.4 In fact, not surprising. It slipped my memory that extended graphics states (as used internally by wxPdfDC) also force version 1.4. And errors became the same eviceRGB may be us...
by utelle
Mon Nov 16, 2020 11:02 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 569

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

Now only this error DeviceRGB may be used only if the file has a PDF/A-1 OutputIntent that uses an RGB colour space Well, I'm at a loss. Obviously, it didn't help to remove the transparency group attributes. I guess the problem is now that the color for writing text is specified as an RGB color. Th...
by utelle
Mon Nov 16, 2020 10:42 pm
Forum: wxCode
Topic: PDF/A-1 ISO 19005-1:2005 How to?
Replies: 33
Views: 569

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

cutecode wrote:
Mon Nov 16, 2020 10:32 pm
strange
version became %PDF-1.3
3 0
Nothing to worry about. wxPdfDocument sets the PDF version depending on features used. Version 1.4 is set as soon as a graphics with transparency is added to the document. For your document this is not the case. Therefore the version remains at 1.3.