HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › PD4ML v3 to v4 migration: How to have the same rendering ? › Reply To: PD4ML v3 to v4 migration: How to have the same rendering ?
I tried to embed the TTF to my document following the link https://pd4ml.tech/pdf-fonts/ but still have the same size (10 Ko).
Try to invoke pd4ml.setLogLevel(255) and inspect the log output for possible font reading/embedding errors.
I also tried pd4ml.setHtmlWidth() for table truncation but does not solve the problem. However, pd4ml.adjustHtmlWidth(true) solved it.
adjustHtmlWidth() is an automated version of setHtmlWidth(). Just try to increase setHtmlWidth() parameter in small amounts until you achieved acceptable scale factor and layout.
You may also run PD4ML in GUI mode and experiment with htmlWidth parameter by a resizing the app window:
#running-pd4ml-as-a-gui-application