PDF Export - Font Size

(4 posts) (2 voices)

Tags:

  1. Dev, Member

    I am using the below query to increase the font size on pdf. But it has effect on report but on pdf.

    select 'dbr.css', 'button, textarea, input, table, body {font-size:1.0em}';

  2. myDBR Team, Key Master

    The "font-size:1.0em" sets the font size to the browsers default, it does not specifically make text bigger.

    If you want to increase the font size in the PDF document, use the zoom_scale export option, or define the wkhtmltopdf's zoom option to be used as default in your wkhtmltopdf command.

    --
    myDBR Team

  3. Dev, Member

    My report results are pretty long. It has a 10+ columns. So I am using landscape mode and used the

    select 'dbr.export.options', 'orientation', 'landscape';
    select 'dbr.export.options', 'zoom_scale', 150; command.

    But while exporting it seems to break the rest of the columns. Like it only prints first 5 columns in all the pages.

  4. myDBR Team, Key Master

    If you increase the font size and have many columns, you may end up running out of space in the page. You need to find a balance between the settings.

    --
    myDBR Team


Reply

You must log in to post.