pdfjs icon indicating copy to clipboard operation
pdfjs copied to clipboard

Error: The table already has a header, add additional rows to the existing table header instead

Open yanickrochon opened this issue 2 years ago • 3 comments

I have asked this question on Stackoverflow but, with no answer after 24 hours, I have little hope to get one, now.

So, how do one "add additional rows to the existing table header" exactly since doc.table().header() already returns a row, and calling doc.table().header() multiple times throws this error?

yanickrochon avatar Dec 15 '21 18:12 yanickrochon

The error is indeed misleading, since as you correctly said, the header already returns a row. I think it makes sense to lift this restriction an allow multiple .header() calls as long as there has been now .row() call yet.

rkusa avatar Dec 17 '21 09:12 rkusa

@rkusa @yanickrochon I stumbled over this issue, too, but as far as I see, there is no change within the library. Since I need the availability I still searching for an workaround. Anyone could help?

InTerestedOWL avatar Jan 26 '22 09:01 InTerestedOWL

@rkusa any update on this issue?

yanickrochon avatar May 31 '22 17:05 yanickrochon