Giter Site home page Giter Site logo

Comments (4)

SebastiaanKlippert avatar SebastiaanKlippert commented on May 26, 2024

Hi,

Can you also test this with the same file but then read it from disk? (using wkhtmltopdf.NewPage())
I want to make sure it is not related to the file or any file limits in wkhtmltopdf.

In the mean time I will run a test with some large data files to very if it is an issue in the Go library.

Thanks

from go-wkhtmltopdf.

omkar-equinix avatar omkar-equinix commented on May 26, 2024

Hi,

On trying to read the same file using wkhtmltopdf.NewPage() where the argument to NewPage method is html.String() I am getting an error as argument list too long

from go-wkhtmltopdf.

SebastiaanKlippert avatar SebastiaanKlippert commented on May 26, 2024

In that case you need to save the HTML to a file and use the path to the file as argument to NewPage.

If you could try that it would be very helpful. I will investigate this in the weekend, but I am not sure if I can reproduce it.

from go-wkhtmltopdf.

SebastiaanKlippert avatar SebastiaanKlippert commented on May 26, 2024

I have not been able to reproduce this. But I just did a simple test with repeating the same HTML multiple times.
It looks like this package does not have any limits to the size of the input and it feeds everything to stdin without issues.

So any limits you encounter are most likely to be in wkhtmltopdf itself and I cannot fix that.

from go-wkhtmltopdf.

Related Issues (20)

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.