Code Monkey home page Code Monkey logo

Comments (2)

rkusa avatar rkusa commented on September 18, 2024

Thanks for reporting!

I've tried to reproduce this error with:

for (var i = 0; i < 2; ++i) { // two tables
    var table = doc.table({
      padding: 5,
      borderWidth: 1,
      borderColor: 0xdddddd,
      backgroundColor: 0xeeeeee,
      widths: ['100%']
    })

    for (var j = 0; j < 33; ++j) {
      table.tr().td(j)
    }
  }

The last row of the first table will break to the next page and the second table is added afterwards without any problem. So I am unfortunately not able to reproduce your error :-/

Do you have anything special in your code that I code add to my simple example? Or could you provide a example yourself that reproduces this issue?

Thanks

(sorry in advance, my next answer will take about a week or so)

from pdfjs.

glutz avatar glutz commented on September 18, 2024

Thanks for your answer. During writing an exampe for this I found out,
that I included a fs.write before sending the pdf result to the client
interface. And it seems that this causes the error, not the pdf
generation, sorry. Maybe that the buffer is cleared and then
pdf.toString() fails. maybe, I had no time to check this in detail but
now it works.
Thanks Markus for ongoing support.

Am 30.10.15 um 11:55 schrieb Markus Ast:

Thanks for reporting!

I've tried to reproduce this error with:

for (var i= 0; i< 2;++i) {// two tables
var table= doc.table({
padding: 5,
borderWidth: 1,
borderColor: 0xdddddd,
backgroundColor: 0xeeeeee,
widths: ['100%']
})

 for  (var  j=  0; j<  33;++j) {
   table.tr().td(j)
 }

}

The last row of the first table will break to the next page and the
second table is added afterwards without any problem. So I am
unfortunately not able to reproduce your error :-/

Do you have anything special in your code that I code add to my simple
example? Or could you provide a example yourself that reproduces this
issue?

Thanks

(sorry in advance, my next answer will take about a week or so)


Reply to this email directly or view it on GitHub
#49 (comment).

from pdfjs.

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.