Giter Site home page Giter Site logo

Comments (7)

benito103e avatar benito103e commented on August 20, 2024 1

Yes exactly, the initial pdf must be valid PDF/A for the Fx result to be valid.
The error "Glyph widths in font dictionary are not consistent with embedded font program widths." is already on your pdf.

from factur-x.

benito103e avatar benito103e commented on August 20, 2024

Firstly, hello @herizo21-dev,
We need explanation, context and example to reproduce your issue.
Without that, we won't be able to do anything.
Please do a pre-analysis before creating an issue.

from factur-x.

herizo21-dev avatar herizo21-dev commented on August 20, 2024

Firstly, hello @herizo21-dev, We need explanation, context and example to reproduce your issue. Without that, we won't be able to do anything. Please do a pre-analysis before creating an issue.

hello, sorry @benito103e i edited my first comment

from factur-x.

benito103e avatar benito103e commented on August 20, 2024

Which tool do you use to check pdf/A-3 validity ?
Is your PDF generated by sannypdf (I don't know this lib) valid before adding factur-x ?
Can you share a pdf example before and after ?

from factur-x.

herizo21-dev avatar herizo21-dev commented on August 20, 2024

Which tool do you use to check pdf/A-3 validity ? Is your PDF generated by sannypdf (I don't know this lib) valid before adding factur-x ? Can you share a pdf example before and after ?

https://services.fnfe-mpe.org/

i dont have before because I just get content from a html
but this is the result:
20240417-facture-Danny_Trejonm_&_Danny_Trejonm.pdf

1 - $binaryContent = $this->snappyPdf->getOutputFromHtml($htmls, [ 'margin-left' => '0', 'margin-right' => '0', 'margin-top' => '10', 'margin-bottom' => '12', 'footer-line' => false, 'page-size' => 'A4', 'dpi' => 150, 'footer-html' => $footer, 'footer-spacing' => '0', ]);

2 - $factureXxml = $this->generateInvoiceAdfXml($dataFacturX, $project); $writer = new Writer(); $facturxPdf = $writer->generate($binaryContent, $factureXxml, null, true, [], true); file_put_contents($filePath, $facturxPdf);

from factur-x.

herizo21-dev avatar herizo21-dev commented on August 20, 2024

Which tool do you use to check pdf/A-3 validity ? Is your PDF generated by sannypdf (I don't know this lib) valid before adding factur-x ? Can you share a pdf example before and after ?

Does the PDF beforehand need to already be a PDF/A-3 ?

from factur-x.

herizo21-dev avatar herizo21-dev commented on August 20, 2024

Yes exactly, the initial pdf must be valid PDF/A for the Fx result to be valid. The error "Glyph widths in font dictionary are not consistent with embedded font program widths." is already on your pdf.

Thank you very much

from factur-x.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.