HTML to PDF / DOCX / RTF Java converter library Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ Image not removed via CSS due to span class implementation

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

    For the following segment of code:

    When attempting to filter this image in CSS, the following will not work:
    .b .c img{
    display: none;

    however when removing the span class, the image is filtered correctly:
    .b img {
    display: none;

    By filtering one level up, we may be unintentionally filtering other images. We are assuming this is due to the span class not being handled correctly. Please advise.



    In the current implementation of PD4ML’s HTML renderer tags are interpreted as text style modifiers. You may apply a style to them by classname or ID directly, but they do not appear in a document DOM-like structure. That makes complex CSS selectors (which rely on spans) to fail.

    The issue is going to addressed in the forthcoming versions. For the time being you may workaround the issue if you change tags to

    (if possible)

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.