Git Product home page Git Product logo

Comments (5)

simonbengtsson avatar simonbengtsson commented on September 24, 2024

It works in the example I set up here. Can you post the code you are using where it doesn't work? To set custom column widths you would have to loop over the columns extracted by the autoTableHtmlToJson function and create an array of objects on this format:

var columns = [
    {title: "ID", key: "id", width: 100},
    {title: "Name", key: "name", width: 200},
    ...
];

from jspdf-autotable.

ankur2728 avatar ankur2728 commented on September 24, 2024

Hi..i am.able to download file in IE11. Headers height is not increasing in ie 11 . It is working in chrome and firefox. As the resuly broken characters are hiding. So thinking of adjusting with custom width.

Thanks

from jspdf-autotable.

ankur2728 avatar ankur2728 commented on September 24, 2024

Nothing special in code..simple html table with no css applied..used simple code given in your samples

from jspdf-autotable.

hhurz avatar hhurz commented on September 24, 2024

Hi, I agree with ankur2728: the line height calculation of headers doesn't always work correctly. Reason: splitTextToSize() takes the current font style into account, when it decides to split a text line. The default output function for header cells (renderHeaderCell) uses a bold font style, which also needs to be set before calculating the rowHeight value.
This effect only occures if the text would fit into the cell when a normal font style is set, but does not fit when the style is set to bold. See also changes in pull request https://github.com/someatoms/jsPDF-AutoTable/pull/46

from jspdf-autotable.

simonbengtsson avatar simonbengtsson commented on September 24, 2024

This should now be fixed in version 2.0.

from jspdf-autotable.

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.