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

command line extension proposal #1365

Open
archive-uk opened this issue Jul 31, 2023 · 2 comments
Open

command line extension proposal #1365

archive-uk opened this issue Jul 31, 2023 · 2 comments
Labels
feature New functionality to be developed
Milestone

Comments

@archive-uk
Copy link

archive-uk commented Jul 31, 2023

Default situation:

VeraPDF allows you to specify the path to a user-defined profile via the "-p" command line switch. The mentioned feature works like charm and we routinely use it for a long time (typically in a situation where we know that we are validating e.g. PDFA/1B and need to tolerate some minor deviation from the standard).

Our motivation:

However, the mentioned functionality does not cover the situation, when the PDF/A flavour is not known in advance (we need to use built-in automatic flavour detection) and we need to apply tolerance as in the above case.

The suggestion of solution:

As a possible solution, it seems to extend the command line with a one new switch (for example "-ps" as "profile set") whose argument would be a directory with a complete set of locally modified profile set, which would take precedence over the built-in.

Would you be willing to add such an option in one of the future releases of VeraPDF ?

@bdoubrov
Copy link
Contributor

bdoubrov commented Aug 2, 2023

@archive-uk thanks for the suggestion. We'll add this new switch to our roadmap to the next release

@bdoubrov bdoubrov added the feature New functionality to be developed label Aug 2, 2023
@bdoubrov bdoubrov added this to the 1.26 milestone Aug 2, 2023
@MaximPlusov MaximPlusov modified the milestones: 1.26, 1.28 Mar 14, 2024
@bdoubrov
Copy link
Contributor

bdoubrov commented Oct 4, 2024

Hi @archive-uk we are still struggling adding this functionality into the veraPDF CLI, as it seems to be a custom logic that should rather be implemented as a script:

  • first retrieve the coformance claim from the document metadata
  • then choose an appropriate custom profile

The first item can already be done using veraPDF feature extraction.

I understand, this is not very convenient, as it requires parsing XMP metadata. So, we can add a feature type we extract from PDF, namely, the list of all conformance claims in the document. We can also provide you with a sample script that would implement the logic you need.

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

No branches or pull requests

3 participants