I've generated a PDF file from HTML. I hard-coded the width and height of the PDF file to be generated.
But the PDF has white spaces at the end when my content gets added.
As my content can be dynamically changed (HTML data), I need the PDF to adjust height according to the content.
How can I do that with C# or iTextSharp?