Converting HTML document with large embedded images to PDF. The result either sliced up images in several pages with incorrect orientation. Or Images are scaled within pagesize but text is to small to read and still wrong image orientation.
Using latest version 22.11 with the following code now.
Aspose.Pdf.HtmlLoadOptions options = new Aspose.Pdf.HtmlLoadOptions();
//options.PageInfo.Width = Aspose.Pdf.PageSize.A4.Width;
//options.PageInfo.Height = Aspose.Pdf.PageSize.A4.Height;
options.CustomLoaderOfExternalResources = new Aspose.Pdf.LoadOptions.ResourceLoadingStrategy(NoLocalFilesLoader);
options.PageLayoutOption = HtmlPageLayoutOption.ScaleToPageWidth;
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filename, options)
pdfDocument.Save(dstFilename);
Please see our source html and produced PDF here:
[Aspose](https://pixedit.sharepoint.com/:f:/g/Erhnj1kvX4hHlRpw_U89Af0B0h2-7UBbYm2e03oI4YCqqA?e=4ngfAj)
Had to use a Sharepoint link because of file size.
Expected result would be correct orientation with readable text and scaled images within page bounderies.