I am trying to create pdf using below code
public void Convert(Stream htmlInputStream, dynamic options, Stream pdfOutputStream)
Aspose.Pdf.HtmlLoadOptions htmlOptions = new Aspose.Pdf.HtmlLoadOptions(options.basePath);
var document = new Aspose.Pdf.Document(htmlInputStream, htmlOptions);
In the htmlInputStream I am sending the MemoryStream created with html received from the server using WebRequest and HttpWebResponse same as in your examples.
It is creating the PDF but it CSS reference is not applied. Also in the output the link address are visible.
BasePath => “https://localhost:44385/”;
ResourceLocation => “https://localhost:44385/Restaurants?page=500”;
Page looks like this
image.png (20.1 KB)
and output is like this
generated by aspose.pdf.pdf (555.0 KB)