#33908

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