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