PDF button

PDF button

ClaudioGSClaudioGS Posts: 29Questions: 1Answers: 0

I have the following code for the pdf button,
How can you configure the font size and column width to fill the entire page width.
Please can you help me,

Thanks in advance from Valparaíso Chile

Replies

  • ClaudioGSClaudioGS Posts: 29Questions: 1Answers: 0

    I have the following code for the pdf button,
    How can you configure the font size and column width to fill the entire page width.
    Please can you help me,

    Thanks in advance from Valparaíso Chile
    document.addEventListener("DOMContentLoaded", function(){
    const buttons = [{
    extend: 'pdfHtml5',
    download: 'open',
    footer: true,
    className: "bg-transparent border border-none",
    text: '<span class="badge bg-btn-pdf"><box-icon type="solid" name="file-pdf"></box-icon><br/>Pdf</span>',
    exportOptions: {
    columns: [0, ':visible']
    }
    }
    ]
    const dom = "<'row'<'col-md-3'l><'col-md-5 text-center'B><'col-md-4'f>>" +
    "<'row'<'col-md-12'tr>>" +
    "<'row'<'col-md-5'i><'col-md-7'p>>";

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    This thread should help, it's asking the same thing.

    Colin

Sign In or Register to comment.