jsPDF-AutoTable icon indicating copy to clipboard operation
jsPDF-AutoTable copied to clipboard

html rowspan and colspan issue when printing dynamic tables

Open RileyDavidson-Evans opened this issue 7 years ago • 3 comments

Finding and interesting issue I'm hoping someone has a solution for !

So when attempting to print a dynamic nested table ( using colspan and rowspan ) the table seems to print in a funky way

          <thead>
            <tr>
              <th>Untergruppe = Referatsleiter/in oder RL-Stv</th>
              <th></th>
              <th></th>
              <th></th>
              <th></th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td rowspan="4">Belastungen durch Arbeitsaufgaben und Tätigkeiten</td>
              <td rowspan="2">Ganzheitlichkeit</td>
              <td rowspan="2">1,63</td>
              <td>Bei meiner Arbeit sehe ich selber am Ergebnis, ob meine Arbeit gut war, oder nicht.</td>
              <td>1,75</td>
            </tr>
            <tr>
              <td>BMeine Arbeit ist so gestaltet, dass ich die Möglichkeit habe, ein vollständiges Arbeitsprodukt/ eine vollständige Arbeitsaufgabe von Anfang bis Ende herzustellen.</td>
              <td>1,50</td>
            </tr>
            <tr>
              <td rowspan="2">Ganzheitlichkeit</td>
              <td rowspan="2">1,63</td>
              <td>Bei meiner Arbeit sehe ich selber am Ergebnis, ob meine Arbeit gut war, oder nicht.</td>
              <td>1,75</td>
            </tr>
            <tr>
              <td>BMeine Arbeit ist so gestaltet, dass ich die Möglichkeit habe, ein vollständiges Arbeitsprodukt/ eine vollständige Arbeitsaufgabe von Anfang bis Ende herzustellen.</td>
              <td>1,50</td>
            </tr>
          </tbody>
        </table>

is the html code being displayed in the first image, then what is printed in the second !

Thank you for this amazing package, lifesaver

RileyDavidson-Evans avatar Jan 28 '19 17:01 RileyDavidson-Evans

what is shown in the browser screen shot 2019-01-28 at 12 49 34 pm

RileyDavidson-Evans avatar Jan 28 '19 17:01 RileyDavidson-Evans

What is printed

screen shot 2019-01-28 at 12 49 44 pm

RileyDavidson-Evans avatar Jan 28 '19 17:01 RileyDavidson-Evans

Excited for the pr mentioned in #427!

simonbengtsson avatar Jan 29 '19 21:01 simonbengtsson