Hi There,
I am using Aspose.Words 7.0.0 to convert Word to PDF. During the implementation, I found out that PDF output doesn’t match with that shown in MS Word.
Example 1 - Please use following code:
var doc = new Aspose.Words.Document();
var db = new Aspose.Words.DocumentBuilder(doc);
db.StartTable();
var cw = db.InsertCell();
cw.CellFormat.Width = 120;
cw.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;
cw.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
cw.CellFormat.Borders[Aspose.Words.BorderType.Left].LineStyle = LineStyle.Thick;
cw.CellFormat.Borders[Aspose.Words.BorderType.Right].LineStyle = LineStyle.None;
db.Write("test1");
cw = db.InsertCell();
cw.CellFormat.Width = 120;
cw.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.Previous;
cw = db.InsertCell();
cw.CellFormat.Width = 120;
cw.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.Previous;
cw.CellFormat.Borders[Aspose.Words.BorderType.Left].LineStyle = LineStyle.None;
cw.CellFormat.Borders[Aspose.Words.BorderType.Right].LineStyle = LineStyle.Thick;
db.EndRow();
doc.Save("C:\\test.doc");
var pdfOption = new PdfOptions
{
BookmarksOutlineLevel = 9
};
doc.SaveToPdf(0, doc.PageCount, "C:\\test.pdf", pdfOption);
In PDF, the right border disappears.
Example 2 - Chart alignment. Please convert attachment to PDF and compare the result.
Please provide fixes ASAP.
Thanks,
William Ren