We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Html memory stream to a PDF stream

Can anyone help me get the desired output

if (approvalPrintOutType == ApprovalPrintOutType.Doc)

{docTemplate.Save(memoryStream, SaveFormat.Doc);}

else if (approvalPrintOutType == ApprovalPrintOutType.PDF)

{docTemplate.Save(memoryStream, SaveFormat.Html);

// I WANT TO SEND A CONVERTED PDF MEMORY STREAM HERE>>>>>

// Aspose.Pdf.Pdf objPDF = new Aspose.Pdf.Pdf();
// objPDF.BindHTML(memoryStream);
}

return memoryStream;

This worked fine for me...

MemoryStream TempMemoryStream = new MemoryStream();
docTemplate.Save(TempMemoryStream, SaveFormat.AsposePdf);
Pdf pdf = new Pdf();
pdf.BindXML(TempMemoryStream, null);
pdf.Save(memoryStream);