Export to pdf problem

(11 posts) (2 voices)


No tags yet.

  1. chadwickhung, Member

    Recently, my users reported that the pdf export from our report server is very weird (but it has been working fine for a years).

    First, the bottom part of some content are overlapped to the following page.

    Secondary, the exported header logo can only be shown from time to time for the same report

    Have been struggling on this for a while, I tried to install different version of wkhtmltopdf 0.12.2 to 0.12.4 but none of them solves the issue. Appreciate if you can share me some insight.


  2. chadwickhung, Member

    Seems like the picture above can't can shown.
    here it is:


  3. myDBR Team, Key Master

    Sounds like a bug in your wkhtmltopdf version. You could try following:

    tr { page-break-inside: avoid }


    Let us know if this helps for you.
    myDBR Team

  4. chadwickhung, Member

    Thanks. Which file should I put in the style?

  5. myDBR Team, Key Master

    You can put it into user/userstyle.css to make it effective in all reports.

    myDBR Team

  6. chadwickhung, Member

    Thanks a lot. it works if I put select 'dbr.css', ' tr{page-break-inside:avoid} '; inside the report code.

    But If I put td {page-break-inside:avoid; } in user/userstyle.css, seems like it has no effect, is my syntax correct?

    Best regards,

  7. myDBR Team, Key Master

    Did you put:

    td {page-break-inside:avoid;}


    tr {page-break-inside:avoid;}

    into user/userstyle.css?

    myDBR Team

  8. chadwickhung, Member

    It's TR, sorry for my typo. This whole userstyle.css is like this:

    /* Change to display: block if you wish to show filter and export elements by default */
    tr {page-break-inside:avoid; }

    div.search {
    display: none;

    div.bigfont {
    font-size: 14px;


  9. myDBR Team, Key Master

    Did it fix the issue with the CSS rule in userstyle.css?

    myDBR Team

  10. chadwickhung, Member

    It only works if I put this in the report
    select 'dbr.css', ' tr{page-break-inside:avoid} ';

    But the CSS rule in userstyle.css is not working.


  11. myDBR Team, Key Master

    The result should be the same regardless where you put the CSS definition. You can also run the updater as the rule is now default in the latest build.

    myDBR Team


You must log in to post.