Converting multiple pages of a Docx into multiple PNG files
问题 I am trying to convert a .docx document into a .png file using Docx4j in java , and achieved the conversion using the piece of code below. The generated image is for the first page only, while I want to have multiple png files , one for each page of the docx document. I could not find any way to put this thing in a loop or extract the document pagewise. WordprocessingMLPackage wordMLPckg = Docx4J.load(theFile); OutputStream os = new FileOutputStream(outFile); FOSettings settings = Docx4J