• [SOLVED] Re: Creating PDF/A from LaTeX source and from existing PDF

    From Ceppo@21:1/5 to Jeffrey Walton on Wed Jul 10 10:40:01 2024
    On Mon, Jul 08, 2024 at 05:20:57PM GMT, Jeffrey Walton wrote:
    The pdf-linter I use to verify a pdf document is qpdf, <https://github.com/qpdf/qpdf>. It is available on most distributions, including Debian, Fedora and Red Hat.

    The command to check the document is `qpdf --check <doc>`.

    This command doesn't show me any info abouy PDF/A compliance. man says it "merely checks that the PDF file is syntactically valid".

    I will also probably have to upload under the same requirement some third-party PDF, which is not PDF/A, without access to an editable version. Is there a way to convert them to PDF/A? I know that converting from an editable version would be the correct way for this, but I have no real way to get it.

    qpdf may provide this functionality, but I have never used it.

    [1] says PDF/A conversion is out of scope for the library. However, [2] pointed me to ocrmypdf and this command produces a valid PDF/A-1b file:

    ocrmypdf --output-type pdfa-1 --tesseract-timeout=0 --skip-text \
    input.pdf output.pdf

    Another comment pointed out this relies on ghostscript, but I couldn't build a working gs command. I will try harder as soon as I have some free time. Anyway I have my conversion tool now, and I'm happy with it.

    As a short summary of this thread outcome, I can:

    - compile with `pdflatex` as usual
    - convert to PDF/A with the `ocrmypdf` command above (probably not the most
    clean way, but it works)
    - validate with veraPDF

    Thanks everyone for your help, it was higly appreciated even when it didn't work as expected!


    [1]: https://github.com/qpdf/qpdf/issues/85
    [2]: https://github.com/qpdf/qpdf/issues/85#issuecomment-1278055568


    --
    Ceppo

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEdITIc+KDsfJi9wdlzV8M+/K0eFUFAmaOSFEACgkQzV8M+/K0 eFVO0A//Q8apAkInLrgrz9jU/yPmyitwrH9KCKWdvoTqyDIje4ys3fnrh0t/0VJm uoKoaahs0Yx1uftymi7/5hKJ2yc6BXEit7qAYuN/hwumOdK2SSZD0t67eEI4FJIN MlOdQOf3/N/nY/qP/pMaUDcA3yYjOLzuNl9ZFAtajtsJIXjACPqK1DtH6zklNuzC ZhndARwzh6pNsulz1Q53Ygclh9x8bsGgdzkDvVa47Bb6vPPXWP7fM2GvJtMAHEyk 22BJlpmXQzBe55Z6nrdM7RAPOvvodHUfFUL4JLz/LsecdWf3JELU9rFH6R/IxzKe lrgTp/uq2wXJ2kLzw4VUTljLwTWTHfwgYlCl2SN5oFMHq7NBUfbpqG4Ew8s4srV+ 1LglvDnXzZaHLKBd0BGnHNbvx5iWraK51ZEdYfda/1sR/+ChdwfQZUmk117wntu9 4OWgv4d/sP4EF4NfAJkVdCEhT93WP1NVVPMdld7ca6loDw2AOjfVplr/0GUEYy9S gYFNmdApfwer0nas4hwBwNHDEerpaBdVN7hJBv/pZg2HhgpmeF6cOfSSWaqoE8FT OiwMCK18YhYeRNCHPXevTILFG2pPMp5O5PsbmX8L80VmSky9nxKAW47c147/zx6g tea7WiigSfoOTi+hfALKf8nvIzB9kwD4BJc0oGS/MPDrCl8IHAM=
    =mfS8
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)