Bug Report T298789
Visible to All Users

Validation of the PDF/A-3 ZUGFeRD document fails

created 9 years ago (modified 9 years ago)

The generated PDF-Document in Article How to export a report to ZUGFeRDhttps://www.devexpress.com/Support/Center/Example/Details/T234531
does not match ZUGFeRD specicications.

There are two website to check PDF-files and both failed. It seems that there are different ways to attach files into pdf-document.
Please take the original result from project in acticle above and validate it on following websites.
https://www.din-zugferd-validation.org

returns:

GEFEG.FX Prüfung
********************
Prüf-Datum              : 28.09.2015 11:37:10
Datei-Datum             : 28.09.2015 11:36:46
Datei                   : result.pdf
Datei-Größe             : 47.397 Bytes
Referenz-Standard       : ZUGFeRD_basic,1.00

Notizen
******************************************************
ZUGFeRD (PDF-Metadaten) Typ: INVOICE
ZUGFeRD (PDF-Metadaten) Version: RC
ZUGFeRD (PDF-Metadaten) Profil: BASIC
ZUGFeRD (PDF-Metadaten) Dateiname - OK
ZUGFeRD (PDF-Metadaten) - OK

(Zeilennummer) - Fehler / Hinweise
******************************************************
(0000) Es konnte kein XML aus dem ZUGFeRD PDF extrahiert werden.

www.zugferd-checker.de

returns:
see attached document

Comments (1)
DevExpress Support Team 9 years ago

    Hello Olaf,
    Thank you for pointing this out. Please stay tuned while we are researching this issue.

    Answers approved by DevExpress Support

    created 9 years ago (modified 9 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    Additional information:

    Additional information:
    According to the ZUGFeRD validator requirements, the document attachment must have a description. We've added the PdfAttachment.Description property so a document passes the ZUGFeRD validation.
    When validating a document in earlier versions, the validation result will contain the following warning message:
    Embedded files - Desc key fehlt im file specification directory (Das file specification dictionary einer eingebetteten Datei muss den Desc key enthalten.)

    Attached is a sample that demonstrates the use of this property. Once any of the versions mentioned in the 'Fixed in builds' section is available, you are welcome to test our changes and leave your feedback.

      Show previous comments (2)
      OH OH
      Olaf Heimfarth 9 years ago

        Validation still fails. I have attached the Validation Report, Main issues in English: Desc key missing in file specification directory, XMP metadata invalid.

        OH OH
        Olaf Heimfarth 9 years ago

          According to www.checker.ferdmc.com XML file in dxSample.zip in invalid. Attached you you find a valid sample.

          Dmitry Tokmachev (DevExpress) 9 years ago

            Hi Olaf,

            The "Desc key is missing" validation message may be displayed due to the fact that the Description property value isn't set as demonstrated in the sample project attached to the answer of the current thread. Would you please check this:

            C#
            ... options.Attachments.Add(new PdfAttachment() { FilePath = "ZUGFeRD-invoice.xml", Type = "text/xml", Description = "Rechnungsdaten im ZUGFeRD-XML-Format", }); ...

            As for errors related to the XML file: the contents of this file may vary and depend on a particular end-user. I would like to thank you for sharing a correct template of such a file with us.
            Thanks,
            Dmitry

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.