Xpdf/pdftohtml/Java Execute Command Line

Source: Internet
Author: User

Compile tohtml in Ubuntu 11.04 this morning. Although some errors are prompted, I found that the executable file "pdftohtml" already exists under/usr/bin. I'm so excited. In the afternoon, I conducted a test with a skeptical attitude. I could convert it into HTML, and there was no first garbled Chinese characters. Didn't I set up a library? So strange, I think it should be because ubuntu11.04 has done a lot of work for us. If we test on the company's centos, what will happen? In this test, run the command directly under the command line, and then open eclipse for code testing. Import a project that runs in XP, modify the file path, and find that the converted file does not appear after execution, no error is reported, so strange ~~ Ask Google's eldest brother and find a useful Java file for Executing command line commands. The previous failure was related to the cache being cleared in a timely manner. Is the outputstream errorstream in Linux very small?

Next, let's share this file with you. It's exactly two. Let's take a look at the specific code, so I won't analyze it ......

1. http://www.koders.com/java/fidE74E642685BBC1DC815063846EAB0BC63566E554.aspx

2. http://www.koders.com/java/fid9D5417A6EB61980981EC75B4D15448438CAEBC25.aspx

Related Article

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.