In multiple Images scenario if the images are applied float property either left or right the text beside image wraps properly but the text above the image does not take the full width and leaves an empty white space in the pdf. This scenario works fine with HTML or the web browser but the generated pdf differs from the HTML.
-PFA
Snapshots and the HTML as well as the generated PDF file
- HTML-snapshot.png 121.4 kB
- PDF-snapshot.png 113.6 kB
- document.html 7.9 kB
- document.pdf 142.1 kB
I believe this issue is caused by a limitation of Prince affecting "concave" float layouts, where a wide float is pushed down the page by a narrow float. In this situation Prince will reserve enough space for the wide float all the way down. We hope to fix this issue in the future.
Thanks for your helpful demo, I have tried to simplify it even some more. Such demos are very helpful to developers!
Announcement: repos for tests/utils
- 4306.htm 3.5 kB
Mike:
What is a reasonable ETA on this. We are basically stuck and cannot add images properly until we have a fix.
Regards,
John
We will investigate and get back to you shortly.
We plan to include a fix for this concave float layout issue in Prince 14, which we plan to release before the end of this year. However we can't yet give an ETA for when it will be available in a latest build, hopefully we will have a better idea of the timing in the months to come.