WordPress.org

Ready to get started?Download WordPress

Forums

wp-mpdf
[resolved] CSS background path and page-break-inside issue (6 posts)

  1. shortster
    Member
    Posted 1 year ago #

    I have two issues which seem to be related.

    On a div I have a css class .section-part with the following styles in the stylesheet:

    .section-part{
    	background: url('http://localhost:8888/myproject/wp-content/wp-mpdf-themes/images/spacer.jpg') no-repeat 0 100%;
    	margin-bottom: 30px;
    	padding-bottom: 30px;
    	/* page-break-inside: avoid; */
    }

    Issue 1: The only way I can see the background image is when I use the full image path. Relative paths do not work. Am I doing something wrong?

    Issue 2: When I enable the page-break-inside: avoid; style, the last div jumps to the next page like it should, however, my background image disappears.

    http://wordpress.org/extend/plugins/wp-mpdf/

  2. fkrauthan
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry that I didn't answered here earlier. It looks like a bug within the mpdf lib. I try to update the lib this weekend. Hopefully your bug is fixed within the newest version.

  3. fkrauthan
    Member
    Plugin Author

    Posted 1 year ago #

    I've updated wp-mpdf to version 2.10.0. Hopefully your bug is fixed within the current mpdf version. I set this topic as resolved. If you still see the issue feel free to reopen it.

  4. shortster
    Member
    Posted 1 year ago #

    Thanks for the update. Unfortunately it doesn't fix the issue.

    The page-break-inside: avoid; seems te be a very unstable feature. However I really need it to keep my generated pdf's nice and organised.

    Any ideas?

  5. fkrauthan
    Member
    Plugin Author

    Posted 1 year ago #

    I think the only thing you can do is opening a bug report here: http://www.mpdf1.com/mpdf/forum/

  6. fkrauthan
    Member
    Plugin Author

    Posted 1 year ago #

    I can't do much here. Marking this ticket as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic