PDF/A-1 ISO 19005-1:2005 How to? Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Post by cutecode »

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 document

2. If I insert transparent image in PDF,
then all text(drawings) are visible inside the document
see 2.pdf at the bottom of the document
but I get error (As you know)

Code: Select all

ImageTransparency is set, but shouldn't be
3. If I go to this page https://pdf.online/ru/pdf-to-pdfa
And convert 2.pdf to PDF/A-1 then no errors are displeyed and all text(drawings) are visible inside the document
see 2-pdfa.pdf

could not attach the files to forum
here they are
https://dental-soft.ru/public_share.zip
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

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

Post by utelle »

cutecode wrote: Mon Nov 23, 2020 11:46 pm 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.
cutecode wrote: Mon Nov 23, 2020 11:46 pm 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 document
I see. However, I fear there isn't much I can do about it. A PDF page is like an ordinary painting canvas: what you draw last covers what you have drawn before - unless you use transparent color. If you could place the image first, and then draw the text afterwards, results might look a bit better, although the text will now partially cover the image.
cutecode wrote: Mon Nov 23, 2020 11:46 pm 2. If I insert transparent image in PDF,
then all text(drawings) are visible inside the document
see 2.pdf at the bottom of the document
but I get error (As you know)

Code: Select all

ImageTransparency is set, but shouldn't be
This is to be expected, because transparency is not allowed for PDF/A-1B conformance. There are later standards (AFAIK i.e. PDF/A-2) which allow transparency.
cutecode wrote: Mon Nov 23, 2020 11:46 pm 3. If I go to this page https://pdf.online/ru/pdf-to-pdfa
And convert 2.pdf to PDF/A-1 then no errors are displeyed and all text(drawings) are visible inside the document
see 2-pdfa.pdf
Looking at your provided samples I get the impression that this conversion service recreates the image after first rendering the original PDF to a raster image and then extracting the relevant portion of the page as a new image. wxPdfDocument can't do that for you, unfortunately.
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Post by cutecode »

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.
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

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

Post by utelle »

cutecode wrote: Tue Nov 24, 2020 12:06 pm 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.
cutecode wrote: Tue Nov 24, 2020 12:06 pm
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.
Glad to hear that you can solve the issue by this means.

In case you experience further problems with PDF/A-1B support or with wxPdfDocument in general, just drop a note.
Post Reply