[Answered ]-Python xhtml2pdf table cell text display to vertical

2👍

There is another work around, where we can use css: JSFiddle

.verical-text {
    width:1px;
    font-family: monospace;
    white-space: pre-wrap; /* this is for displaying whitespaces including Firefox */
}

But, there are couple of downfall’s here:

  1. Is there has to be spaces between letters to ensure it’s displayed in vertical.
  2. The letters are not rotated, but would be in similar orientation.

I would suggest use some other tool, where you would not be restricted with css properties like:

  • PDFKit
  • PhantomJs – Write a custom nodeJs server in the backend which would do it.

Leave a comment