Hi Team ,
I am not able to maintain specific cell's width size .Cell's width size is changing according to the data.
I have added screenshot for you reference
table.getTableFormat().isAutoResized(false);
table.getTableFormat().setLayoutType(LayoutType.Fixed);
table.getRows().get(2).getCells().get(2).setCellWidth(500,CellWidthType.Point);
//create a document and load file
Document document = new Document();
document.loadFromFile("data/test.docx");
//get the first table
Section section = document.getSections().get(0);
Table table = section.getTables().get(0);
table.getTableFormat().isAutoResized(false);
table.getTableFormat().setLayoutType(LayoutType.Fixed);
table.getRows().get(2).getCells().get(2).setCellWidth(1000,CellWidthType.Point);
//save the file
document.saveToFile("output/outputFile6.docx", FileFormat.Docx);// Create a new Document object
Document document = new Document();
// Add a new Section to the Document
Section section = document.addSection();
// Set the top margin of the Section to 0
section.getPageSetup().getMargins().setTop(0);
// Set the left margin of the Section to 0
section.getPageSetup().getMargins().setLeft(0);
// Add a new Paragraph to the Section
Paragraph paragraph = section.addParagraph();
// Create a new DocPicture object and pass in the Document
DocPicture picture = new DocPicture(document);
// Load an image from the specified file path into the DocPicture
picture.loadImage("data/1.png");
// Set the width of the DocPicture to 75 units
picture.setWidth(75);
// Set the height of the DocPicture to 90 units
picture.setHeight(90);
// Insert the DocPicture at index 0 in the list of child objects of the Paragraph
paragraph.getChildObjects().insert(0, picture);
// Save the Document to a file with the specified file path and format
document.saveToFile("output/outputFile7.docx", FileFormat.Docx);