PD4ML v4 Forums PD4ML Forums Technical questions / Troubleshooting Avoid image split in v4

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33980

    PD4ML v3 has separate api method to configure whether to split images (pd4ml3.enableImgSplit(false) to avoid splitting).
    I’m trying to do the same with v4, and found that wrapper org.zefer.pd4ml.PD4ML adds styling for this purpose (also found the same solution somewhere in the internet):
    this.addStyle("IMG {page-break-inside: avoid}", true);

    So, I try to do the same using new api, but image is still got split:
    pd4ml.addStyle("IMG {page-break-inside: avoid;}", true);
    If use old-api wrapper, get the same result.

    Could you please help if I miss some additional configuration or pd4ml?

    Please see original html, java code and resulting pdf attached.

    Attachments:
    You must be logged in to view attached files.
    #33982

    html and java files are not permitted, so trying to load them as zip archive

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.