Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Feb 05, 2024 6:01 pm

I have a routine process that requires me to convert ~100 PDFs to DOCX, then after a business workflow does it thing, convert them back to PDF. Looking at your products, it appears that I will need Spire.PDF for the PDF to DOCX and Spire.Doc for the DOCX to PDF. Is that correct? Before I go down the road of requesting trials, I need to know what licenses will need to be purchased if it all works out. If there is a different product that will cover both conversion processes, please let me know.

Thanks in advance,
Andy

spearscaiv
 
Posts: 1
Joined: Mon Feb 05, 2024 5:55 pm

Tue Feb 06, 2024 3:01 am

Hello,

Thank you for your inquiry.
Yes, converting PDF files to DOCX files is a function of Spire.PDF and converting DOCX files to PDF files is a function of Spire.Doc. Below is is sample code that implements both functions.
Code: Select all
// ---Convert PDF files to DOCX files---
PdfToWordConverter converter = new PdfToWordConverter("input.pdf");
MemoryStream stream = new MemoryStream();
converter.SaveToDocx(stream);
//converter.SaveToDocx("result.docx");

// ---Convert DOCX files to PDF files---
Document document = new Document();
document.LoadFromFile("input.docx", FileFormat.Auto);
document.SaveToFile("result.pdf", FileFormat.PDF);

In addition, if you want to buy our license, you need to buy Spire.PDF and Spire.Doc the two components of the license. However, we also have a Spire.Office component which contains all of our individual components, including Spire.PDF and Spire.Doc, so its license is valid for both components.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc

cron