title: How to set HtmlSaveOptions to save html and resources to stream using Aspose PDF
body: <p>I am  trying to use  Aspose.PDF to load PDF from databases, convert it to HTML and render them to our web page.I want to know if we can save both the document and the resource to stream since current example in the document of Aspose.PDF saves css and images to a local path. I have tried this but the is and error that Aspose.Pdf.SaveFormat.Html is not supported.</p>
  
  <p><code>Aspose.Pdf.Document PDFDocument = new Aspose.Pdf.Document(PDFStream);
   MemoryStream HTMLStreamFromPDF = new MemoryStream();
   PDFDocument.Save(HTMLStreamFromPDF, Aspose.Pdf.SaveFormat.Html);</code></p>
  
  <p>If it can be done, how to write the parameters of CustomResourceSavingStrategy, CustomCssSavingStrategy, and CustomStrategyOfCssUrlCreation of HtmlSaveOptions. I am sorry that I am not quite familiar with delegate in C#</p>
  
  <p>Thanks!</p>