The release of pdfHTML 3.0.2 includes a number of bug fixes as well as useful feature additions. Among those additional feature is support for the CSS
object-fit property in converted PDF's.
object-fit property allows for precise reformatting and design of image and video objects in PDF's. Often used in company logos as well as articles, the
object-fit property is an excellent addition to pdfHTML's suite of features. More information regarding the
object-fit property can be found at this link.
object-fit in Practice:
Attached is a PDF converted with pdfHTML which contains examples of all of the 5 potential
As you can see, each
object-fit option is accounted for and displays correctly in the outputted PDF.
Below is the HTML code which was utilized for the above example.
In order to convert HTML code which contains images, it is necessary to set the Base URI to a directory which contains said images. Below is a short example which demonstrates that converter property.