处理如下:

import com.aspose.words.Document;
import com.aspose.words.SaveFormat;
import com.platform.custom.util.res.Path;

public class WordToPdf {

	public void execute(String docFileName, String toFileName) {
		Document doc;
		try {
			doc = new Document(Path.UPLOAD_FILES+"/"+docFileName);
			doc.save(Path.ANNOUNCE_PDF_FILES+"/"+toFileName, SaveFormat.PDF);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}

  

相关文章:

  • 2021-10-26
  • 2021-12-10
  • 2021-06-06
  • 2021-11-17
  • 2021-12-03
  • 2021-04-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2021-11-29
  • 2022-12-23
  • 2021-12-03
  • 2021-12-03
  • 2021-11-25
相关资源
相似解决方案