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

Free Support Forum - aspose.com

Inverted top and bottom table borders

Hi,

I have a problem with the last version of Aspose.PDF (5.3.0.0) and this code:

Dim oPDF As New Aspose.Pdf.Pdf
Dim oSection As Aspose.Pdf.Section = oPDF.Sections.Add()
Dim oFooter As New Aspose.Pdf.HeaderFooter(oSection)

Dim oTableau As New Aspose.Pdf.Table
oSection.Paragraphs.Add(oTableau)

Dim oBorderInfo As New Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All)
oBorderInfo.Top.Color = New Aspose.Pdf.Color(“Blue”)
oBorderInfo.Bottom.Color = New Aspose.Pdf.Color(“Yellow”)
oBorderInfo.Left.Color = New Aspose.Pdf.Color(“Red”)
oBorderInfo.Right.Color = New Aspose.Pdf.Color(“Black”)
oTableau.Border = oBorderInfo

Dim oRow As Aspose.Pdf.Row = oTableau.Rows.Add()
Dim oCell As Aspose.Pdf.Cell = oRow.Cells.Add()
Dim oText As New Aspose.Pdf.Text()
oText.Segments.Add(“Test”)
oCell.Paragraphs.Add(oText)

oPDF.Save(filepath)

The generated pdf have the top and bottom table borders inverted, when i try this code with an old Aspose.pdf version (4.5.0.0) the result is ok

Have you any idea?

Hello Ludovic,

Thanks for using our products.

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNET-28314. We will investigate this issue in details and will keep you updated on the status of a correction. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We apologize for your inconvenience.

Hello Ludovic,


Thanks for your patience.

I am pleased to share that the issue reported earlier has been fixed in latest release version of Aspose.Pdf for .NET 6.7.0. Please try using it and in case you encounter any issue or you have any further query, please feel free to contact.

Please note that since the release of Aspose.Pdf for .NET 6.0.0, Aspose.Pdf for .NET and Aspose.Pdf.Kit for .NET are merged as a single product. Please visit the following links for information on