Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26795

    Hello PD4ML…

    I’ve a question about the “disabled” parameter in an input tag (for example a text field). This field is renderized or painted Grayed as it is disabled, but I don’t need to do it this way, because in Google Chrome and Firefox, the HTML is displayed normally without graying out the component. This means that the PDF generated using the library differs a bit on the Style displayed in the browser.

    Do you have a solution for this?

    We have tried to replace the “disabled=’true'” and disabled=’disabled’ of the HTML String to empty, or readonly so it is not rendered this way. But in Internet Explorer, the tag generated for disabled, doesn’t have the equals.. its just “disabled”, and this text cannot be replaced manually as is very possible that a user writes it in a text field of the HTML itself.

    Thanks in advanced

    #29157

    We cannot change the “legacy behaviour”, some customer may rely on.

    A workaround would be to apply the style
    [language=css:kh8uwqqk]@media pdf {
    INPUT[disabled=”true”] {
    disabled: false;
    }
    }[/language:kh8uwqqk]
    either regular way or via pd4ml.addStyle() API call.

    #29158

    Thank you very much. It actually worked.

    I used the addStyle(String, boolean) to accomplish it.

    Problem solved.

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

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.