Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically set required options to get valid PDF/A documents #1661

Open
zopyx opened this issue Jun 17, 2022 · 5 comments
Open

Automatically set required options to get valid PDF/A documents #1661

zopyx opened this issue Jun 17, 2022 · 5 comments
Labels
feature New feature that should be supported

Comments

@zopyx
Copy link

zopyx commented Jun 17, 2022

https://github.com/zopyx/print-css-rocks/tree/master/lessons/lesson-archive-pdf

does not validate against latest VeraPDF

Bildschirmfoto 2022-06-17 um 18 11 27

@liZe
Copy link
Member

liZe commented Jun 17, 2022

Hello @zopyx.

This first version supporting PDF/A is experimental, as explained in the warning message. For the moment, using the pdf/a-3b option doesn’t check all the rules required to get a valid document and users have the responsibility to check that they follow the rules listed by the related specifications, as explained in the documentation.

In your case, you have to:

  • set a PDF identifier (using the --pdf-identifier CLI option),
  • prevent interpolation on images (using html { image-rendering: crisp-edges }).

In the future, we may include many checks to automatically set these options or to warn users when there’s something wrong in the rendered document.

For the final 56 version, do you think that we should change the warning message to explain that?

@zopyx
Copy link
Author

zopyx commented Jun 18, 2022

I just wanted to bring this issue to your attention. I am aware that this is a beta.
Setting html { image-rendering: crisp-edges } should happen automatically. As a user, I want to generate a specific PDF variant without touching my CSS (same behavior as for all other tools).

@liZe liZe changed the title PDF/A-3B validation with VeraPDF fails Automatically set required options to get valid PDF/A documents Jun 18, 2022
@liZe liZe added the feature New feature that should be supported label Jun 18, 2022
@liZe
Copy link
Member

liZe commented Jun 18, 2022

I just wanted to bring this issue to your attention. I am aware that this is a beta.

👍

Setting html { image-rendering: crisp-edges } should happen automatically. As a user, I want to generate a specific PDF variant without touching my CSS (same behavior as for all other tools).

That would be the best solution, of course.

@dedalusMohantyMa
Copy link

Just a question out of curiosity:
Did this #1869 fix this issue here? ^^

@liZe
Copy link
Member

liZe commented Apr 25, 2024

Just a question out of curiosity:
Did this #1869 fix this issue here? ^^

It helps, but it’s not enough.

We’ve also added a PDF identifier by default for PDF/A documents, so this part is solved too.

The last main problem we have is that we must set image-rendering: crisp-edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that should be supported
Projects
None yet
Development

No branches or pull requests

3 participants