Free Support Forum - aspose.com

Rows are not in proper alignment with column headers

Hi,


I have created column structure in pdf , but when I create data rows in PDF row cells are not coming up in proper alignment with columns headers.
Is this needs to be done explicitly or Aspsoe.pdf automatically creates row cells in alignment with column headers.
I am using Aspose.pdf Version 3.1.0 in java
Is there any property at row/cell/table level to avoid this misalignment.
Ex-

COLUMN1 COLUMN2 COLUMN3
COL1 | COL2 | COL1 | COL2 | COL1 | COL2

data | data | data | data | data | data
data | data | data | data | data | data
data | data | data | data | data | data
data | data | data | data | data | data
data | data | data | data | data | data

Any help will be appreciated.

Regards,
Ankit

Hi ,


This happens when some columns contain large text such as 100 characters.I am using
table.setColumnAdjustment(ColumnAdjustmentType.AutoFitToContent) this table property

Regards,
Ankit

Hi Ankit,


Thanks for contacting support. Can you please share some code snippet which can help us in quickly replicating this issue at our end. We are really sorry for this inconvenience.