I try build document with Aspose.Words. When i add table and save document as pdf, a have extra margin in right side. Why?
My code:
var document = new Document();
_builder = new DocumentBuilder(document)
{
PageSetup =
{
Orientation = Orientation.Portrait,
PaperSize = PaperSize.A4,
RightMargin = 0,
BottomMargin = 0,
LeftMargin = 0,
TopMargin = 0
}
};
_builder.StartTable();
_builder.InsertCell();
_builder.Write("Test test test");
_builder.EndTable();
document.Save(stream, SaveFormat.Pdf);
Result (2.8 KB)