Giter Site home page Giter Site logo

Comments (7)

stumpylog avatar stumpylog commented on May 24, 2024 1

On 7.10.1, using --form 'pdfa=PDF/A-1a' --form 'pdfua=true' results in a A1 file. leaving off pdfua also results in an A1 file. Setting pdfua=false is also an A1 file. So 7.10.1 is always returning an A1 file from this route when requested.

from gotenberg.

stumpylog avatar stumpylog commented on May 24, 2024

The resulting file:
result.pdf

from gotenberg.

gulien avatar gulien commented on May 24, 2024

Thanks for testing the edge release!
Gotenberg still call LibreOffice in the same manner as before, so I guess something happened upstream. A new LibreOffice version that introduced a bug?

from gotenberg.

gulien avatar gulien commented on May 24, 2024

LibreOffice versions:

  • 7.10.1 = LibreOffice 7.5.8.2 50(Build:2)
  • edge = LibreOffice 7.6.4.1 60(Build:1)

from gotenberg.

gulien avatar gulien commented on May 24, 2024

The 7.6 release notes:

Export to PDF v.1.7 by default. core commit e624e (Michael Stahl, allotropia)
Tagged PDF is now produced by default, for improved accessibility. (To further improve your PDF's accessibility, the PDF/UA option is available in the export dialog and will trigger the Accessibility Check tool). tdf#39667 (Samuel Mehrbrodt, allotropia)
Exporting as a hybrid PDF now stores the original ODF document as a PDF compatible file attachment. core commit e052f (TomaΕΎ Vajngerl, Collabora)
Fix glyph size mismatch and overlap when printing of variable fonts. tdf#156151 (Khaled Hosny, TDF)
Fix missing or incorrect overline color when exporting to PDF. tdf#48707 (Khaled Hosny, TDF)
Fix position of CJK emphasis marks when exporting to PDF. tdf#115321 (Khaled Hosny, TDF)
Fix blank text for the default instance of CFF2 variable fonts when exporting to PDF. tdf#155161 (Khaled Hosny, TDF)
Fix underline position of Liberation fonts when exporting to PDF. tdf#154235 (Khaled Hosny, TDF)

I don't see any changes here nor in the linked commits that could explain our issue.

@stumpylog could you try to set pdfua to true with Gotenberg 7.10.1 to check if it returns PDF/A-1b instead of PDF/A-1a?

from gotenberg.

gulien avatar gulien commented on May 24, 2024

Looks like an upstream bug, thanks πŸ‘

from gotenberg.

gulien avatar gulien commented on May 24, 2024

So it's actually not a bug: https://git.libreoffice.org/core/+/c4b12d06698402984b3ffdbd2c139f261fa35ca1%5E%21.
Long story short, LibreOffice stated that it was producing PDF/A-1a PDF, which was true for simple documents, but most of the time it was actually producing PDF/A-1b. Because of some metadata, some validators were still seeing those as PDF/A-1a compliant, where in fact it was not the case.

See also https://bugs.documentfoundation.org/show_bug.cgi?id=153472.

I guess I have to update the "valid" PDF/A versions handled by Gotenberg.

from gotenberg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.