[Libreoffice-bugs] [Bug 66580] exported PDF is invalid because of forbidden custom keys in the trailer

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jan 2 12:20:36 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=66580

--- Comment #12 from Alexis de Lattre <alexis at via.ecp.fr> ---
It is very very strange that a project such as LibreOffice that promote the
OpenDocument standard and interoperability in general doesn't respect the PDF
standard ! Adding proprietary keys in the PDF trailer that only LibreOffice can
read is certainly a bad practice. Using the "Embedded Files" feature of the PDF
standard is clearly the way to go !

It could be the occasion to add support for Embedded Files in the LibreOffice
PDF export. Embedded Files in PDF is starting to be a widely used feature with
electronic invoicing standards such as Factur-X/ZUGFeRD that use the Embedded
Files feature of the PDF standard to add an XML file in a PDF invoice (to allow
automatic processing of the invoice), and the possibility to add other document
as attachments of the PDF (documents that justify the invoice, for example a
signed acceptance form).

For instance, I recently developed a LibreOffice extension to be able to
generate Factur-X invoices from LibreOffice Calc (cf
https://github.com/akretion/factur-x-libreoffice-extension). This extension
contains a Python macro that post-processes the PDF file generated by
LibreOffice to add the XML file as attachment to the PDF. The code of this
macro would be much simpler if the PDF export feature of LibreOffice had native
support for Embedded Files. And generating structured electronic invoices (with
Factur-X, ZUGFeRD or other standards) is starting to be compulsory in some
countries (for example, it is now compulsory in France when you invoice the
public sector).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200102/7afad3ac/attachment.htm>


More information about the Libreoffice-bugs mailing list