Situation:
Using Aspose.Pdf.Document
First we generate the content in HTML format.
Func1:
var htmlOptions = CreateHtmlLoadOptions(marginsInInches, marginTopBotInInches, headerHeight, baseUrl, outputAreaHeight);
usin…...“zoom‑out” effect if clipping is acceptable. Scale the HTML with CSS...CSS. If you cannot change the PDF page size, wrap the whole HTML...