Git Product home page Git Product logo

Comments (11)

ruhijain avatar ruhijain commented on August 26, 2024

I managed to do it for now, I do encounter another problem though.

When a particular cell data has long string into it, the row height dynamically increases but it then goes out of the page crossing the footer.

Even when the bottom margin is specified, why this happens? Whats the solution?

from jspdf-autotable.

simonbengtsson avatar simonbengtsson commented on August 26, 2024

I think the issue you describe is the same as in #53? If so, it is fixed in v2.0 which I will release the coming week. Sorry for the late reply.

from jspdf-autotable.

ruhijain avatar ruhijain commented on August 26, 2024

Well, Yes it looks like the same issue. I will wait for v2.0 then. Will it be backward compatible? Just worried if i have to change my code a lot. I have used it the library at many places.

from jspdf-autotable.

simonbengtsson avatar simonbengtsson commented on August 26, 2024

There is no big API changes and your code should probably be fine. It will not be 100% backwards campatible unfortunately however. I have added better styling support which meant that I had to make some changes to the renderCell and renderHeaderCell methods.

from jspdf-autotable.

ruhijain avatar ruhijain commented on August 26, 2024

ohh okay. I guess i would have to change my code then. Anyways will wait for the update, :)

from jspdf-autotable.

ruhijain avatar ruhijain commented on August 26, 2024

Can you provide a quick fix for this. I really need some urgent fix for this issue.

Any alternative, if not the upgrade to 2.0?

from jspdf-autotable.

ruhijain avatar ruhijain commented on August 26, 2024

Trying to find some workaround on this issue. In renderCell i check for autoTableEndPosY and compare it with doc.internal.pageSize.height, if autoTableEndPosY exceeds a specific value i want to change page and move the records from then onwards to new page. I did addPage() , But how do i make it to add next all records to this new page?

from jspdf-autotable.

simonbengtsson avatar simonbengtsson commented on August 26, 2024

Unfortunately I can't see a way to do this without modifying the source so that would be your best option for now. If you do fix it, make sure you send a pull request. The 2.0 release got a bit delayed, but hopefully I can release it today.

from jspdf-autotable.

ruhijain avatar ruhijain commented on August 26, 2024

I fixed it my just doing a small change in jspdf.plugin.autotable.js :)

Btw, just curious to know, Can i put links in PDF file?

from jspdf-autotable.

simonbengtsson avatar simonbengtsson commented on August 26, 2024

Sweet! There is an annotations plugin for jspdf that makes it possible to add links. It is included in version 1.1 of jspdf, but I think you can add it to earlier versions as well.

from jspdf-autotable.

simonbengtsson avatar simonbengtsson commented on August 26, 2024

Closing as duplicate of #53

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.