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.

Fri Aug 01, 2025 9:36 am

Using spire.pdf 13.7.14 on windows vb.net application.

Opening a word document convert it to pdf, then adding text on certain position (up, down, left, right, up left, up right, down left, down right ) works fine.
When I try to convert that pdf back to word document I get an error or even nothing!

doc.SaveToFile(theDoc, Spire.Doc.FileFormat.Docx) 'ERROR
doc.SaveToFile(theDoc.Replace(".docx", "10.docx"), Spire.Doc.FileFormat.Docx2010) 'no file
doc.SaveToFile(theDoc.Replace(".docx", "13.docx"), Spire.Doc.FileFormat.Docx2013) 'ERROR
doc.SaveToFile(theDoc.Replace(".docx", "16.docx"), Spire.Doc.FileFormat.Docx2016) 'no file
doc.SaveToFile(theDoc.Replace(".docx", "19.docx"), Spire.Doc.FileFormat.Docx2019) 'no file

Attached is the error

Thank you

nikolakn
 
Posts: 4
Joined: Fri Aug 01, 2025 9:15 am
Location: Greece

Fri Aug 01, 2025 10:32 am

Hello,

Thank you for your inquiry.

Please note that Spire.Doc is designed for Word-to-PDF conversion, whereas Spire.PDF should be used for PDF-to-Word conversion. The current latest versions are Spire.Doc version: 13.7.14 and Spire.PDF version: 11.7.14. To convert PDF to Word using Spire.PDF, you may refer to the following code:
Code: Select all
PdfToWordConverter converter=new PdfToWordConverter("in.pdf");
converter.SaveToDocx("res.docx");

Are you currently using this method for your PDF-to-Word conversion? If not, we recommend trying this method.

If the issue persists even after you use the above method, please provide us with your code, your word files and your pdf files.This information will help us investigate your issue more accurately and offer an effective solution. You may upload the files as attachments or send them directly to my email: [email protected]. Thanks in advance.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 341
Joined: Mon Apr 14, 2025 3:33 am

Return to Spire.PDF

cron