Support » Plugin: TablePress » landscape pdf with datatable buttons extension

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi Lukas,

    thanks for your post, and sorry for the trouble.

    I don’t think that you will need to go through all these steps. Instead, you could try this “Custom Command” on the table’s “Edit” screen:

    "buttons": [ { "extend": "pdf", "orientation": "landscape" } ]
    

    This should add PDF button that will show the table in landscape mode.

    Regards,
    Tobias

    Hi Tobias,

    thank you very much, works!

    Alone, my table is too wide and cut off at the right hand side.

    Is there a way to scale it to fit to page width?

    Also, white-space:nowrap for columns isn’t working, e.g. phone numbers with spaces cause squeezed columns in the PDF.

    Am I expecting too much?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    do you mean that the PDF is not looking as desired? Unfortunately, I’m not aware of ways to influence this 🙁 The CSS is likely not working, because the external JavaScript library that is behind this directly takes the content of the table and puts it into the PDF, and CSS code is not applied there.

    Regards,
    Tobias

    thanks, that’s what I guessed.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sorry for not having better news here.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.