Thanks for you reply..

Now i removed pd4ml.adjustHtmlWidth() call. Yes you are right. I need to fill a single page horizontally and vertically with the document content. In the attached output pdf in my previous thread you can see content is not expanding to the right.

Also i couldnot understand this ByteArrayOutputStream . I could only get output pdf if i use fileoutputstream object.

I hope you understood the problem iam facing. Vertically it is coming fine. When it comes to horizontally content is not expanding 100%.

Could you please suggest me code to use ByteArrayoutputstream .

As of now this is my current code.. fos = new“C:/ouputPdf.pdf”);

PD4ML pd4ml = new PD4ML();



pd4ml.render(“file:” + inputHTMLFileName, fos );