Export to pdf problem

(11 posts) (2 voices)

Tags:

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.

    Thanks
    Chadwick

  2. chadwickhung, Member

    Seems like the picture above can't can shown.
    here it is:
    https://drive.google.com/open?id=0BzOyPXPtZ6QASDJ1Tmw4cTVQMzg

    Thanks
    Chadwick

  3. myDBR Team, Key Master

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

    tr { page-break-inside: avoid }

    See:
    https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2367

    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,
    Chadwick

  7. myDBR Team, Key Master

    Did you put:

    td {page-break-inside:avoid;}

    or

    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;
    }

    Thanks

  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.

    Thanks
    Chadwick

  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


Reply

You must log in to post.