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).

I also tried pd4ml.setHtmlWidth() for table truncation but does not solve the problem. However, pd4ml.adjustHtmlWidth(true) solved it.

I still have 2 pages instead of one in my document.

Could you please share the code source which you used for the document you generated?