VBScript PDF Conversion Tool. 1

Source: Internet
Author: User
Tags constant definition

Reason

A large number of sci-fi novels were written from VeryCD one day, but they were in Txt format. In order to be able to enjoy it on the IPad, we had to convert it into PDF. I wrote a VBScript because I didn't have any tools.

 

The script should have the following capabilities:

1. Convert the document into PDF format;

2. Support single document and batch conversion;

3. Right-click menu is supported;

4. Supports the code format;

5. configurable;

 

Here, Word is used to help implement the conversion function, and Word also supports setting the format, so that you can support code keyword coloring according to the configuration.

A little salt.

 

The script is divided into several modules:

1. Constant definition;

2. Global variable definition;

3. Auxiliary Function: Hash;

4. Auxiliary Function: path;

5. Auxiliary Functions: Reading configuration files;

6. Registry;

7. document formatting;

8. Main function;

 

Basic Principles:

1. register the script to the right-click menu;

2. Determine the behavior based on the running parameters: Registration, conversion of a single file, and conversion of directory files;

3. Use Word to save the document as PDF for conversion;

4. Set the font of the Word document to color the keywords;

 

 

 

 

 

 

 

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.