Hi Jason,
Hope you are doing good. I am creating a PDF file using docx4j API and the contents of one column are overflowing into another column if the value is large. I have attached a sample of the file. Looking forward for your help.
Shashank
It is currently Sat Feb 22, 2025 7:44 pm
OpenDoPEIntegrity odi = new OpenDoPEIntegrity();
odi.process(wordMLPackage);
org.docx4j.XmlUtils.transform(doc, xslt, transformParameters, result);
LoadFromZipNG loader = new LoadFromZipNG();
try {
tmpPkg = (WordprocessingMLPackage)loader.get(docxInputStream);
} catch (Exception e) {
throw new Docx4JException("Error reading docx file (is this a valid docx?)");
}
// ByteBuffer myImage ...
byte[] bytes = myImage.array();
BinaryPartAbstractImage imagePart = BinaryPartAbstractImage
.createImagePart(wordMLPackage, bytes);
int docPrId = 1;
int cNvPrId = 2;
Inline inline = imagePart.createImageInline(image_ID,
image_description, docPrId, cNvPrId, true);
Total posts 10142 • Total topics 2852 • Total members 2083