Document doc = new Document("C:\\Temp\\in.doc"); LayoutCollector layoutCollector = new LayoutCollector(doc); doc.updatePageLayout(); DocumentPageSplitter splitter = new DocumentPageSplitter(layoutCollector); Document pageDoc = splitter.GetDocumentOfPage(5); pageDoc.save("C:\\Temp\\out.doc");
第一个doc文件有要求吗,不是随意的吗
|