Okay
  Public Ticket #1256418
PDF export from portrait to landscape
Closed

Comments

  • Ranjita started the conversation

    Is it possible to change the orientation of a PDF export from portrait to landscape? I have a wide table that is now running out of the page limits and I’m missing half of my data on a portrait style pdf export.

  • [deleted] replied

    Hi Ranjita,
    Thank you for the purchase.

    In file../wp-content/plugins/wpdatatables/source/class.wpdatatable.php and around line 2800 you can find

    'orientation' => 'portrait',
    

    and replace it with

    'orientation' => 'landscape',


  • Ranjita replied

    I tried but that doesn't work for me

  • [deleted] replied

    Hi Ranjita,

    Please provide me a temporary WP-admin login for your site, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check PRIVATE so nobody can see it except us.

  • Ranjita replied

    Also i have one more problem when i print tables, the data of the table is not visible correctly because table is large.

    So please confirm what should i do so that the data would be fill in the view accordigly

  • Ranjita replied

    Is there any hook you provide for alternation of data in the table?

  • Ranjita replied

    Just provide me your email address i will send wp-admin details over there

  • [deleted] replied

    Hi Ranjita,

    You can provide credentials here, just check PRIVATE checkbox so nobody except us can see it. Practice is to send credentials in the ticket and not via email.

    You can find a loot of filters & action at this link of our documentation - Link. I am not really sure what hood do you need, so you can explain me in more details what you are trying to achieve.

    Regarding exporting tools (PDF, Print, CSV, Excel). These features are native features of DataTables library that we are using and they are very limited and not so customizable. You can change orientation of exported PDF file, but if your tables are very big and large it will not work very well.