Hi ,
I am new to Aspose , i am using aspose word for converting html to pdf stream .using following code
public byte[] RenderPdf(string htmlText)
{
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertHtml(htmlText);
PdfSaveOptions options = new PdfSaveOptions();
options.Compliance = PdfCompliance.PdfA1b;
MemoryStream memStream = new MemoryStream();
doc.Save(memStream, options);
memStream.Position = 0;
byte[] bArrContent = memStream.ToArray();
memStream.Dispose();
return bArrContent;
}
I need to change the default pdf size and set margin to document .Is there any option for doing it .?
Thanks in advanceā¦