Use Spire.office to make a homemade tool for batch format conversion (PDF to Word)

Source: Internet
Author: User

Use Spire.office to make a homemade tool for batch format conversion (PDF to Word)

At the end of this article, you will be provided with a gadget to convert PDFs to Word for download.

+bit Wei Wei + quietly left in this version of a right letter said: Spire.office

I've been looking for a tool to convert some of the PDF data I've collected into Word. Recently stumbled upon a super powerful tool spire.office for. NET can do this.

and Spire.office provides C #, VB DLLs for invocation, but also provides a rich and concise sample project to learn.

As shown, Spire.office for. NET supports documents in Word, PDF, XLS, HTML, and other formats. That means you can use Spire.office for. NET Create, load, modify (Edit) document, you can convert one format document to another format. So I found the project to convert the PDF to Word.

Download Spire.office

You can download the latest spire.office in (http://www.e-iceblue.com/). or leave a message to contact me to get the full demo project shown.

Try Demo

Since the existing demo already has an example of converting PDF to Word, I can use it just by modifying some parameters.

First, the search finds the "toword-vs2012" item and opens it.

The code is simple, as follows:

PDF file

String file = @ ".. \.. \.. \.. \.. \.. \data\sample5.pdf ";

//open PDF Document

pdfdocument doc = new pdfdocument();

Doc. LoadFromFile (file);

//convert to doc file.

Doc. SaveToFile ("Sample5.doc", FileFormat. DOC);

Doc. Close ();

//launching the doc file.

System.Diagnostics. Process. Start ("Sample5.doc");

As you can see, just load a PDF file and then use savetofile a way to convert PDF to Word!

Let's create a gadget to convert PDF to Word.

+bit Wei Wei + quietly left this version of the letter said: Use PDF to Word

The interface for PDF to Word is simple, as shown in.

Here is a PDF version of one of my blog posts. My word version has been lost and I want to try this PDF to word again to get a word version.

Open the PDF to Word, load the PDF file, select the location to save to, click Start, and immediately get the Word version of the file!

Open the Look newword.doc, as shown in.

It is true that the content in Word is completely restored. Picture, text, format, color all match. Although some of the small areas of the style are somewhat out of the way, but it is easy to change over.

+bit Wei Wei + quietly left this version of a right to say: Download PDF to Word

You can download PDF to Word at (Link: http://pan.baidu.com/s/1kTL9z9P password: 3WGG). Have any questions and suggestions welcome message!

Use Spire.office to make a homemade tool for batch format conversion (PDF to Word)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.