ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
202 stars 113 forks source link

Example code for mustang project don't pass the validator #404

Closed LucasFerryPro closed 1 month ago

LucasFerryPro commented 3 months ago

Hello there, i try to use the interface methode for zugferd, but when i try the validator it send me that:

<?xml version="1.0" encoding="UTF-8"?>

<validation filename="RE050689_pL_PDFA.pdf" datetime="2024-07-08 15:56:01">
  <pdf>ValidationResult [flavour=3u, totalAssertions=6206, assertions=[TestAssertion [ruleId=RuleId [specification=ISO 19005-3:2012, clause=6.2.11.4, testNumber=1], status=failed, message=The font programs for all fonts used for rendering within a conforming file shall be embedded within that file, as defined in ISO 32000-1:2008, 9.9., location=Location [level=CosDocument, context=root/document[0]/pages[0](10 0 obj PDPage)/contentStream[0](14 0 obj PDContentStream)/operators[9]/font[0](Helvetica)], locationContext=null, errorMessage=The font program is not embedded], TestAssertion [ruleId=RuleId [specification=ISO 19005-3:2012, clause=6.2.11.4, testNumber=1], status=failed, message=The font programs for all fonts used for rendering within a conforming file shall be embedded within that file, as defined in ISO 32000-1:2008, 9.9., location=Location [level=CosDocument, context=root/document[0]/pages[1](11 0 obj PDPage)/contentStream[0](18 0 obj PDContentStream)/operators[252]/font[0](Helvetica-Bold)], locationContext=null, errorMessage=The font program is not embedded]], isCompliant=false]
    <info>
      <signature>Mustang</signature>
      <duration unit="ms">816</duration>
    </info>
    <summary status="invalid"/>
  </pdf>  
  <xml>
    <info>
      <version>2</version>
      <profile>urn:cen.eu:en16931:2017</profile>
      <validator version="2.11.0"/>
      <rules>
        <fired>22</fired>
        <failed>4</failed>
      </rules>
      <duration unit="ms">2420</duration>
    </info>
    <messages>
      <notice type="27" location="/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext[1]" criterion="ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID">Business process MUST be provided. [ID PEPPOL-EN16931-R001] from /xslt/XR_30/XRechnung-CII-validation.xslt)</notice>  
      <notice type="27" location="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction[1]/ram:ApplicableHeaderTradeAgreement[1]/ram:SellerTradeParty[1]" criterion="ram:URIUniversalCommunication/ram:URIID">Seller electronic address MUST be provided [ID PEPPOL-EN16931-R020] from /xslt/XR_30/XRechnung-CII-validation.xslt)</notice>  
      <notice type="27" location="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction[1]/ram:ApplicableHeaderTradeAgreement[1]/ram:BuyerTradeParty[1]" criterion="ram:URIUniversalCommunication/ram:URIID">Buyer electronic address MUST be provided [ID PEPPOL-EN16931-R010] from /xslt/XR_30/XRechnung-CII-validation.xslt)</notice>  
      <notice type="27" location="/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext[1]" criterion="ram:GuidelineSpecifiedDocumentContextParameter/ram:ID = $XR-CIUS-ID or ram:GuidelineSpecifiedDocumentContextParameter/ram:ID = $XR-EXTENSION-ID">[BR-DE-21] Das Element "Specification identifier" (BT-24) soll syntaktisch der Kennung des Standards XRechnung entsprechen. [ID BR-DE-21] from /xslt/XR_30/XRechnung-CII-validation.xslt)</notice> 
    </messages>
    <summary status="valid"/>
  </xml>
  <messages></messages>
  <summary status="invalid"/>
</validation>

Someone could help me ?

jstaerk commented 3 months ago

Hello,

Your pdf/a seems invalid, do you pass valid PDF/A-1? Does your input pass e.g. VeraPDF? Can you try with https://www.mustangproject.org/files/MustangGnuaccountingBeispielRE-20171118_506blanko.pdf ?

kind regards Jochen