danfickle / openhtmltopdf

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)!
https://danfickle.github.io/pdf-templates/index.html
Other
1.91k stars 355 forks source link

Render images side by side #872

Open abisiaux opened 1 year ago

abisiaux commented 1 year ago

Hello,

I am not able to render a PDF with images side by side.

Example :

<table width="100%">
<tbody>
<tr>
<td style="width: 50%"><img style="max-width: 100%" src="https://i.picsum.photos/id/866/600/300.jpg?hmac=Zlb4VEJZKg8E6U7UZGt9Mq8Ly0cZsb8ZloMpw_5WB2M" /></td>
<td style="width: 50%"><img style="max-width: 100%" src="https://i.picsum.photos/id/866/600/300.jpg?hmac=Zlb4VEJZKg8E6U7UZGt9Mq8Ly0cZsb8ZloMpw_5WB2M" /></td>
</tr>
</tbody>
</table>

produces : image

testinfected commented 1 year ago

Any news on this?

abisiaux commented 1 year ago

Any news on this?

Unfortunately no, we decided to export one image per line while waiting for a fix.

testinfected commented 1 year ago

Too bad, that would be an awesome improvement