We are using Aspose PDF since couple of weeks now and we need to generate a PDF/A3 meeting standards zugferd/factur-x.
After generat my file with Aspose.pdf I use a pdf validator from this site Factur-X Validator which allows to check the good conformity of the file.
Unfortunatly I have 2 errors after this operation. My first return is :
1 - Missing entry /EF/F/Type
After many research I can’t find the way to enhance this field by Aspose.pdf.
Could you help me for this first request ?
My second error is an known problem with you, it concern the field /AFRelationship.
Here my second error :
2 - Wrong value for /AFRelationship for file factur-x.xml - Accepted values for /AFRelationship are: ‘/Data’, ‘/Source’, ‘/Alternative’. Current value is ‘/Unspecified’.
Apparently this field seems to be valued by your API but with the wrong value and i can’t find the field to change the value.
Could you investigated to help us to value this field ?
It’s very important for us to validate the standard zugferd/factur-x for our clients
//TODO: Set /EF/F/Type
//TODO: Set AFRelationship = Data
I see no fields in FileSpecification Object which could allow me to enhance the fields that i need.
Here a diagram which describe Factur-X struct. You can see that /AFRelatioship and /Type are necessary. We find well some fields in your FileSpecification Object but not the two i need for validate the standard.
You have been investigating the problem I have mentioned to you for 1 month now, have you been able to advance on the subject? This point is very important for our company and if this cannot be resolved quickly we will have to turn to another PDF solution.
We would like to share with you that we already have been working on implementing Zugferd/factur-x validation support in the API to meet the standards and various tasks are under the phase of investigation regarding Zugferd/factur-x compliance for File Specifications in PDF documents.
Another ticket as PDFNET-48415 has been logged in our issue tracking system for your particular scenario. We will also investigate this ticket for implementation feasibility and keep you posted with the status of feature availability. Please spare us some time.
We again apologize for the delay and inconvenience.
I allow myself to relaunch the ticket and I would like to take this opportunity to emphasize another point, when I use an European “factur-x” official file and I want to check that it has been validated correctly using the Aspose “Validate” method. She returns false with an official file. Here is a code snippet and the file in question .
The issue was logged in June 2020 and sadly, it is pending for analysis due to other tickets logged prior to it. However, we have recorded your concerns and will consider them while issue investigation. We will inform you as soon as we have some definite updates regarding its resolution. Please have patience and give us some time.
The earlier logged ticket is under the process of investigation and due to its nature of complexity, it requires more time to get fully analyzed about its feasibility. We will surely inform you as soon as we make some definite progress towards its implementation. Please spare us some time.
Regretfully, the issue is not yet fully investigated. As soon as it is completely analyzed, we will be able to share some ETA with you regarding its fix. We will surely inform you as soon as additional updates are available. Please have patience and give us some time.
We would like to share with you that the logged ticket has been resolved in Aspose.PDF for .NET 20.11 which will be available for download during the current week. Please try the following code to create ZUGFeRD - compatible document (with 20.11v):
I updated your nuget package and tested your changes. Unfortunately I still have a problem. I don’t know if I forgot something or if there are still errors but here’s my test: PDFNET-47752.zip (451.3 KB)
You can find :
-myPdf.pdf (the pdf I use)
-factur-x.xml (the xml I generated for my pdf)
-metadata.xml (the metadata generated by my sample)
-Sample.cs (my sample with your correction)
-Report.pdf (the report made by Factur-X Validator when I want to check if the file is correct)
-Works.pdf (My file working with another solution than Aspose (if you want to inspire))
I Don’t know if they have a link but I noticed that when i want to set the fileSpecification Description the value wasn’t set and stay nullable even if I force the value with my spy in Visual Studio it’s impossible to set.
I let you analyse my case and if you need more informations, please contact me.