Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Convert word to swf and read the implementation ideas and codes like Baidu Library

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "transforming word into swf to read implementation ideas and codes like Baidu library". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The copy code is as follows:

To achieve similar functions like Baidu Library requires a series of transformations. The general process is to convert word to pdf format, and then convert pdf format to swf format. The content displayed on the web page is actually in swf format.

First of all, to convert word to swf, you need to call the com component, which can be converted through office or wps, but I did not try it successfully. Finally, the conversion was successful through OpenOffice 4.0.0. OpenOffice 4.0.0 supports windows and linux operating systems, so you need to download openOffice first, which should be available on the official website. Converting word to pdf seems to be a document that only supports English titles, but not Chinese names. You can rename the file to English first, and then change the file to Chinese after conversion. You may also need to start the openoffice service, as shown above.

Verify whether the service is enabled, as shown above

The code is as follows:

The copy code is as follows:

Take the time to analyze:

It takes time to convert a 1.48m word document into pdf: it takes 1.3652579784 seconds for your computer to test it.

Secondly, to convert pdf to swf, you need to use another software. Swftools calls the cmd command through the code and goes directly to the code.

It takes 1.3119211197 seconds to convert the pdf you just converted into a swf file.

Finally, the swf file is displayed on the web page, this step requires the introduction of multiple js files and other files, the code will not be written, directly download, in my upload material

This is the end of the content of "converting word into swf to read ideas and codes like Baidu Library". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report