Home > Back-end >  When using the Jacob convert word to PDF
When using the Jacob convert word to PDF

Time:12-10

The same project package, appear different on different machines, why a computer can normal transformation, another computer on the conversion path will multiple diagonal?
Abnormal machine


The normal machine

Replacement drive or folder

CodePudding user response:

Can try to use Free Spire. Doc for Java convert
 
The import com. Spire. Doc. *;

Public class WordtoPDF {
Public static void main (String [] args) {

//load word sample document
The Document Document=new Document ();
Document. The loadFromFile (" Sample. Docx ");


//save the file
Document. SaveToFile (out/toPDF. PDF, FileFormat. PDF);

}
}
  • Related