Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Sep 24, 2024 7:59 am

occurred an error in my java code

doc.saveToFile(wordFileName, FileFormat.DOCX);

this java program running on linux(ubuntu)

how can i create a new docx file using spire.pdf on linux?

badugi97
 
Posts: 1
Joined: Tue Sep 24, 2024 7:52 am

Tue Sep 24, 2024 9:33 am

Hello,

Thanks for your inquiry.
Kindly note that Spire.PDF does not support creating new Word documents. You need to use Spire.Docto create the new Word document by using the following code.
Code: Select all
Document document = new Document();

Our Spire.PDF supports converting a PDF file to Word, I used the latest version(Spire.PDF for Java: 10.9.0) and converted a PDF on Ubuntu, everything worked fine. If you also did the conversion, please provide us with your input PDF document and JDK version information for investigation, and you can upload here or send it to us via email( support@e-iceblue.com ).

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.PDF