Hello,
I am using ASPOSE Words to convert HTML string to PDF document.
Now when I convert my HTML to PDF, I get a ZOOMED version of the HTML document , due to which my design gets disturbed.
Please let me know as to how I can prevent this internal ZOOM of the PDF document being created.
Please find my code below:-
LoadOptions loadOptions = new LoadOptions();
loadOptions.BaseUri = MyDir;
Document doc = new Document(stream, loadOptions);
// You can close the stream now, it is no longer needed because the document is in memory.
// doc.ViewOptions.ViewType= Viewtype.
//doc.ViewOptions.ZoomPercent=-30;
//
DocumentBuilder docBuilder = new DocumentBuilder();
docBuilder.Document = doc;
PageSetup ps = docBuilder.PageSetup;
ps.RightMargin = 5;
ps.LeftMargin = 10;
//
stream.Close();
doc.Save(MyDir + strFileName);