Hello,
I am using ASPOSE WORDS for generating PDF file from html string content.
I want to decrease the left and right margins of the generated PDF document so that I can show more content on my generated PDF document.
public void Main()
{
// Load the entire document into memory.
Document doc = new Document(stream);
stream.Close();
// … do something with the document
// Convert the document to a different format and save to stream.
MemoryStream dstStream = new MemoryStream();
doc.Save(dstStream, SaveFormat.Pdf);
dstStream.Position = 0;
File.WriteAllBytes(dataDir + "DocumentOut.pdf", dstStream.ToArray());
}
Please let me know how to do it on the above code snippet.
Regards,
Vishal