Open seurimas opened 8 years ago
Same issue here. It makes dynamic creation more complicated.
I noticed that pdfmake alters the variables it gets when calculating things. Maybe this causes it not to work? If you always create a copy of an object, does that work?
I have the same problem. @bpampuch do you have an idea for a fix or a workaround?
Pass myArray.slice(0) or JSON.parse(JSON.stringify(myObject))
Try this with the playground: http://bpampuch.github.io/pdfmake/playground.html
Notice that the second instance of each text node are not present in the document's rendering.