An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
Is there a way to know (hook, subscribe, listen) before rendering (Preflight) what would be the inherited CSS styles of a inner element and somehow make on-the-fly changes to the element? For instance would somehow be possible to know that the following img inherits margin-left from p that will affect the maximum width I could set to the image in order to prevent it from going beyond the page right margin?
Hi,
Is there a way to know (hook, subscribe, listen) before rendering (Preflight) what would be the inherited CSS styles of a inner element and somehow make on-the-fly changes to the element? For instance would somehow be possible to know that the following
img
inheritsmargin-left
fromp
that will affect the maximum width I could set to the image in order to prevent it from going beyond the page right margin?Best Regards, Sergio Fukaya