DavBfr / dart_pdf

Pdf creation module for dart/flutter
https://pub.dev/packages/pdf
Apache License 2.0
1.42k stars 632 forks source link

PDF/A 3b #1750

Open ilaurillard opened 1 month ago

ilaurillard commented 1 month ago

Would you please have a look at the catalog.dart file - there is a problem with the "/Names" part. You have an indirect/ref field and i have a "PdfDict" - these have to be merged somehow ..

greetings

grundid commented 1 month ago

@ilaurillard Thank you for your pdf/a implementation. I see you have added some code related to XRechnung/Factur-X. I'm also working on an implementation for e-invoices. Could you please make PdfaFacturxRdf more customizable? It should be possible to set the ConformanceLevel and not only fix it to "BASIC".

At the same it might be better to put this code in a separated library as it is more related to e-invoices than generic PDF generation. I could provide my schema dart code for e-invoices.

ilaurillard commented 1 month ago

@ilaurillard Thank you for your pdf/a implementation. I see you have added some code related to XRechnung/Factur-X. I'm also working on an implementation for e-invoices. Could you please make PdfaFacturxRdf more customizable? It should be possible to set the ConformanceLevel and not only fix it to "BASIC".

done

At the same it might be better to put this code in a separated library as it is more related to e-invoices than generic PDF generation. I could provide my schema dart code for e-invoices.

yes, you are right.. pdf/a and e-invoices are separate things ... this should be discussed .. @DavBfr?

@grundid for UBL invoices i wrote a class generator, that crawls the official xsd schemas an makes dart classes of the definitions, if you are interested ..

grundid commented 1 month ago

@grundid for UBL invoices i wrote a class generator, that crawls the official xsd schemas an makes dart classes of the definitions, if you are interested ..

Well, yes! Right now I've done the same thing for the ZUGFeRD specification in Germany and now I'm validating the output xml agains the schematron rules. Shall we set up a project and discuss collaboration?

DavBfr commented 1 month ago

Yes, all schema generation could be in another package.

grundid commented 1 month ago

I've created a dart package dedicated to the creation of e-invoices based on the ZUGFeRD/Factur-X specification: https://github.com/Blaulichtplaner/e_invoice_tools

@ilaurillard you can find an example with all the schema classes here: https://github.com/Blaulichtplaner/e_invoice_tools/blob/main/packages/e_invoice_data_classes/example/e_invoice_data_classes_example.dart