CN106844453B - Electronic file format conversion method - Google Patents
Electronic file format conversion method Download PDFInfo
- Publication number
- CN106844453B CN106844453B CN201611180782.7A CN201611180782A CN106844453B CN 106844453 B CN106844453 B CN 106844453B CN 201611180782 A CN201611180782 A CN 201611180782A CN 106844453 B CN106844453 B CN 106844453B
- Authority
- CN
- China
- Prior art keywords
- electronic file
- conversion
- format
- file
- gui
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Document Processing Apparatus (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to the field of electronic file format conversion, in particular to an electronic file format conversion method. The invention breaks the secondary development limit of the matched PC end software capable of editing the electronic file, so that the conversion of the electronic file capable of being manually read can be processed in batch. The technical scheme breaks the limitation of the platform, and the electronic file can be converted into an expected format matched with the electronic file through the platform and processed no matter a mobile phone or a computer with different operating systems.
Description
Technical Field
The invention relates to the field of electronic file bidirectional conversion, in particular to an electronic file format conversion method.
Background
At present, when format conversion of an electronic document is performed, a corresponding professional document editing tool (for example, Microsoft Office corresponds to Word file format) needs to be used to manually perform conversion and storage of the file. However, the document editing tool for conversion does not necessarily provide a secondary development interface, or the secondary development interface does not provide a file conversion function, so that the conversion operation can be completed only on a computer manually by a human.
If the remote desktop is connected to the computer provided with the document editing tool for file viewing in order to omit the file conversion process, the file viewing can only be realized, the converted file cannot be actually acquired at the terminal, and the remote desktop is not satisfactory in safety, access speed and interface friendliness.
Technical scheme
Aiming at the problems in the prior art, the invention provides an electronic file format conversion method.
The specific technical scheme is as follows:
an electronic file format conversion method, comprising:
uploading at least one electronic file to an API server and specifying a target conversion format for the electronic file, the API server receiving the electronic file and adding the electronic file to a conversion queue;
the GUI automatic conversion server establishes communication connection with the API server, calls a conversion task in the conversion queue, judges the format of an electronic file corresponding to the conversion task and the target conversion format, and searches an adaptive GUI script in an automatic script library;
and executing the GUI script, outputting a conversion result, and storing the result and recording the converted file path by the API server.
Preferably, after the target conversion format of the electronic file is specified, whether the electronic file can be converted into the target conversion format is judged, and when the electronic file can be converted, the API server receives the electronic file and adds the electronic file into a conversion queue;
and outputting prompt information when the format conversion cannot be carried out.
Preferably, the format of the converted electronic file is automatically matched according to the electronic file before conversion.
Preferably, the API server is provided with a plurality of network service APTs issuing http-based protocols in REST form;
and uploading the electronic files in batch and appointing the target conversion format through the network service API.
Preferably, the step after the API server stores the conversion result and records the converted file path further includes:
the GUI automated transition server calls up and executes the next transition task in the transition queue.
Preferably, after receiving the electronic files, the API server numbers each of the electronic files;
the step after the API server stores the conversion result and records the converted file path includes:
and the user inquires the conversion condition and the file path of each electronic file in the API server according to the serial number.
Preferably, the conversion queue is a first-in first-out queue.
Preferably, the step before uploading the electronic file comprises:
inputting the GUI script by utilizing a GUI script creating tool so as to simulate the operation of an operation terminal;
the content entered by the GUI script creation tool includes: window handle, menu name, button name, input box position, input content, mouse click position, mouse and keyboard click sequence and interval.
Preferably, in the step of executing the GUI script, the GUI server automatically starts a file editor, clicks a menu, and inputs parameters under the control of a script program, and then stores the converted electronic file in a preset location and names the electronic file.
Preferably, the step after the API server stores the conversion result and records the converted file path further includes:
and the GUI server adds, modifies and deletes the GUI script.
The beneficial effects of the above technical scheme are:
the technical scheme breaks the secondary development limit of the matched PC end software capable of editing the electronic file, so that the conversion of the electronic file capable of being manually read can be processed in batch. The technical scheme breaks the limitation of the platform, and the electronic file can be converted into an expected format matched with the electronic file through the platform and processed no matter a mobile phone or a computer with different operating systems.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a method for converting an electronic file format according to the present invention.
Detailed Description
In the following embodiments, the technical features may be combined with each other without conflict.
The following further describes embodiments of the present invention with reference to the drawings:
an electronic file format conversion method, as shown in fig. 1, includes:
uploading at least one electronic file to an API server and specifying a target conversion format of the electronic file, the API server receiving the electronic file and adding the electronic file to a conversion queue;
the GUI automatic conversion server establishes communication connection with the API server, calls a conversion task in the conversion queue, judges the format of an electronic file corresponding to the conversion task and a target conversion format, and searches an adaptive GUI script in an automatic script library;
and executing the GUI script, outputting a conversion result, and storing the conversion result and recording the converted file path by the API server.
The method of the embodiment is based on the automatic file format conversion service of the Windows graphical user interface, the method of the embodiment can realize a universal electronic file conversion method, as long as the electronic file has a corresponding document editing tool and is issued to a network service, the cross-platform file conversion can be realized, and thus a corresponding platform (such as a mobile phone) can open a file format which is not supported by the corresponding platform.
It should be noted that the electronic document in this embodiment may be an electronic document mainly containing images, texts and audios, such as an Office file, a pdf file, a squareness ceb file, a picture file, a three-dimensional model file, a video file, an audio file, and the like, which are available for human reading. The electronic document may also be encoded by a standard specified by a professional organization or manufacturer and have accompanying editing software based on a PC platform.
In a preferred embodiment of the present invention, after the target conversion format of the electronic file is specified, it is determined whether the electronic file can be converted into the target conversion format, and when the electronic file can be converted, the API server receives the electronic file and adds the electronic file to a conversion queue;
and outputting prompt information when the format conversion cannot be carried out.
In this embodiment, when determining whether an electronic file can be converted into a target format, the file conversion target format is limited, the target file may be all target type files that can be converted by PC-side editing software that is matched with the electronic file before conversion, and generally refers to files of the same type and different formats, for example, files of Office corresponding to PDF, which are determined by file editing software but detected and identified by the platform and selected by a user, the input electronic file and the conversion target file are both specified by the user, and if there is no corresponding conversion capability, a prompt is given to the user.
In a preferred embodiment of the present invention, the format of the converted electronic file is automatically matched according to the electronic file before conversion.
The electronic file in this embodiment is directly converted, but the output format is automatically matched according to the input electronic file.
In a preferred embodiment, using web services technology, a http protocol-based web service API is published in a form of REST (Representational State Transfer) on a server or a server cluster, and is responsible for providing user input and output of the whole set of system, the API server receives files to be converted and adds them into a queue, first, the API server provides several APIs (Application Programming interfaces), a user can upload electronic files in batch or individually, and specifies a target conversion format, the API server creates a unique file number for each file and records it to a disk and a database, and then returns the file number to the user for subsequent download and query by the user.
In a preferred embodiment, on a GUI automation conversion server or a GUI automation conversion server cluster, actions of a keyboard and a mouse are simulated by a program, so as to realize operations such as opening a corresponding file editor, clicking a menu, selecting a conversion function, printing, inputting parameters, and the like. The embodiment breaks the secondary development limit of the matched PC end software capable of editing the electronic document, does not need manual intervention in the whole process, and can achieve the same effect as manual click input. The GUI automatic conversion server obtains the tasks in the queue, obtains an electronic file information list recorded by the service API from the database, finds the corresponding electronic file in the disk and forms a first-in first-out task processing queue. And begins processing each task in sequence.
The GUI automatic conversion server calls a GUI (Graphical User Interface) script corresponding to the task, when a new task in the queue is processed, firstly judges the format of the electronic file and the target conversion format, and then finds the corresponding GUI script from the automatic script library.
And starting to execute the corresponding conversion automation script, wherein the GUI automation conversion server automatically starts a file editor, clicks a menu, inputs parameters and the like under the control of a script program, and finally stores the electronic file to a specified position and names the electronic file according to a fixed format.
The GUI automation conversion server informs the API server that the conversion is completed, when one task in the queue is completed, the record in the database of the API server is updated, and the conversion result, the converted file path and the like are recorded in the database of the API server. At this point, the user can query and download the converted file.
The API server is used for providing the converted file query and download API, and the server provides a plurality of API, so that a user can query the conversion condition of each file by using the file number and obtain the download address of the converted file. After the conversion is completed, the next conversion task can be executed, namely, the next task is processed according to the conversion task queue.
In this embodiment, the GUI automation conversion server may manage the GUI script, for example, add, modify, delete, and the like to the GUI script.
Further, the GUI script creating tool may enter a series of mouse and keyboard actions through codes or actual operations, the recorded contents include a window handle, a menu name, a button name, an input box position, input contents, a mouse click position, a mouse and keyboard click sequence and interval, etc., and save the recorded contents in a file form using a specific code, i.e., a GUI script file.
In conclusion, the technical scheme breaks through the secondary development limit of the matched PC end software capable of editing the electronic file, so that the conversion of the electronic file capable of being manually read can be processed in batch. The technical scheme breaks the limitation of the platform, and the electronic file can be converted into an expected format matched with the electronic file through the platform and processed no matter a mobile phone or a computer with different operating systems.
While the specification concludes with claims defining exemplary embodiments of particular structures for practicing the invention, it is believed that other modifications will be made in the spirit of the invention. While the above invention sets forth presently preferred embodiments, these are not intended as limitations.
Various alterations and modifications will no doubt become apparent to those skilled in the art after having read the above description. Therefore, the appended claims should be construed to cover all such variations and modifications as fall within the true spirit and scope of the invention. Any and all equivalent ranges and contents within the scope of the claims should be considered to be within the intent and scope of the present invention.
Claims (8)
1. An electronic file format conversion method, comprising:
uploading at least one electronic file to an API server, designating a target conversion format of the electronic file, judging whether the electronic file can be converted to the target conversion format, and when the electronic file can be converted, receiving the electronic file by the API server and adding the electronic file into a conversion queue; when the conversion can not be carried out, outputting prompt information; the conversion queue is a first-in first-out queue;
the GUI automatic conversion server establishes communication connection with the API server, calls a conversion task in the conversion queue, judges the format of an electronic file corresponding to the conversion task and the target conversion format, and searches an adaptive GUI script in an automatic script library;
and executing the GUI script, outputting a conversion result, and storing the conversion result and recording the converted file path by the API server.
2. The electronic file format converting method according to claim 1, wherein the format of the converted electronic file is matched according to the format of the electronic file before conversion.
3. The electronic file format conversion method according to claim 1, wherein the API server is provided with a plurality of http protocol-based web services APT issued in the form of REST;
and uploading the electronic files in batch and appointing the target conversion format through the network service API.
4. The electronic file format converting method according to claim 3, wherein the step after the API server stores the conversion result and records the converted file path further comprises:
the GUI automated transition server calls up and executes the next transition task in the transition queue.
5. The electronic file format conversion method according to claim 1, wherein the API server, after receiving the electronic file, numbers each of the electronic files;
the step after the API server stores the conversion result and records the converted file path includes:
and the user inquires the conversion condition and the file path of each electronic file in the API server according to the serial number.
6. The electronic file format conversion method according to claim 1, wherein the step before uploading the electronic file comprises:
inputting the GUI script by utilizing a GUI script creating tool so as to simulate the operation of an operation terminal;
the content entered by the GUI script creation tool includes: window handle, menu name, button name, input box position, input content, mouse click position, mouse and keyboard click sequence and interval.
7. The method for converting an electronic file format according to claim 1, wherein in the step of executing the GUI script, the GUI server automatically starts a file editor, clicks a menu, inputs parameters, and then stores the converted electronic file in a preset location and names the electronic file under the control of a script program.
8. The electronic file format converting method according to claim 1, wherein the step after the API server stores the conversion result and records the converted file path further comprises:
and the GUI server adds, modifies and deletes the GUI script.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611180782.7A CN106844453B (en) | 2016-12-20 | 2016-12-20 | Electronic file format conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611180782.7A CN106844453B (en) | 2016-12-20 | 2016-12-20 | Electronic file format conversion method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106844453A CN106844453A (en) | 2017-06-13 |
CN106844453B true CN106844453B (en) | 2020-09-08 |
Family
ID=59139672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611180782.7A Active CN106844453B (en) | 2016-12-20 | 2016-12-20 | Electronic file format conversion method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106844453B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107798132B (en) * | 2017-11-20 | 2021-06-29 | 福建亿榕信息技术有限公司 | Distributed file transferring and processing method, system and computer readable storage medium |
CN110889261A (en) * | 2018-09-06 | 2020-03-17 | 陕西国博政通信息科技有限公司 | Method for automating electronic official document service processing |
CN109657211A (en) * | 2018-12-11 | 2019-04-19 | 万兴科技股份有限公司 | The method, apparatus and intelligent terminal of line format conversion |
CN111274769A (en) * | 2020-01-09 | 2020-06-12 | 山东汇贸电子口岸有限公司 | Method and model for automatically generating license file in cross-file format |
CN111813973A (en) * | 2020-05-18 | 2020-10-23 | 冠群信息技术(南京)有限公司 | License conversion method and system |
CN112464621A (en) * | 2020-11-30 | 2021-03-09 | 北京航星机器制造有限公司 | Python-based application software format conversion implementation method and device |
CN112287265B (en) * | 2020-12-24 | 2021-05-07 | 深圳市蓝凌软件股份有限公司 | Asynchronous event driven based file conversion method and system |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1342290A (en) * | 1998-10-02 | 2002-03-27 | 国际商业机器公司 | Conversational browser and conversational systems |
CN1953564A (en) * | 2006-11-22 | 2007-04-25 | Ut斯达康通讯有限公司 | A test system and method for set top box |
CN101620564A (en) * | 2008-06-30 | 2010-01-06 | 福建升腾资讯有限公司 | Method for automatically testing recording playback mode of terminal system |
CN101901111A (en) * | 2010-07-30 | 2010-12-01 | 中兴通讯股份有限公司 | Method and device for realizing automatic operation on mobile terminal |
CN102394771A (en) * | 2011-10-26 | 2012-03-28 | 广州杰赛科技股份有限公司 | Socket type embedded log acquisition system and method |
CN102819492A (en) * | 2012-08-02 | 2012-12-12 | 中山大学 | Keyword driven automatic testing frame on basis of Android |
CN102880596A (en) * | 2012-09-13 | 2013-01-16 | 苏州阔地网络科技有限公司 | Method and system for converting document format |
CN103002490A (en) * | 2011-09-08 | 2013-03-27 | ***通信集团公司 | Service simulation testing system and realizing method thereof |
CN103116586A (en) * | 2011-11-17 | 2013-05-22 | 中国电信股份有限公司 | Document reading achieving method, terminal, document conversion server and processing system |
CN104035937A (en) * | 2013-03-07 | 2014-09-10 | 方正国际软件(北京)有限公司 | Extensible system and method for electronic document online browsing |
CN105005642A (en) * | 2015-06-25 | 2015-10-28 | 北京航空航天大学 | Three-dimensional model batch format conversion and weight reduction method |
CN105095077A (en) * | 2015-07-17 | 2015-11-25 | 北京奇虎科技有限公司 | Automated testing method and device for user interfaces |
CN105335278A (en) * | 2014-06-16 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Testing method and device |
CN105700748A (en) * | 2016-01-13 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Touch control processing method and device |
CN105740435A (en) * | 2016-01-28 | 2016-07-06 | 安徽四创电子股份有限公司 | On-line preview design method of document on the basis of distribution |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060132447A1 (en) * | 2004-12-16 | 2006-06-22 | Conrad Richard H | Method and apparatus for automatically transforming functions of computer keyboard keys and pointing devices by detection of hand location |
CN102184265A (en) * | 2011-06-17 | 2011-09-14 | 上海高清数字科技产业有限公司 | Electronic newspaper data conversion method |
-
2016
- 2016-12-20 CN CN201611180782.7A patent/CN106844453B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1342290A (en) * | 1998-10-02 | 2002-03-27 | 国际商业机器公司 | Conversational browser and conversational systems |
CN1953564A (en) * | 2006-11-22 | 2007-04-25 | Ut斯达康通讯有限公司 | A test system and method for set top box |
CN101620564A (en) * | 2008-06-30 | 2010-01-06 | 福建升腾资讯有限公司 | Method for automatically testing recording playback mode of terminal system |
CN101901111A (en) * | 2010-07-30 | 2010-12-01 | 中兴通讯股份有限公司 | Method and device for realizing automatic operation on mobile terminal |
CN103002490A (en) * | 2011-09-08 | 2013-03-27 | ***通信集团公司 | Service simulation testing system and realizing method thereof |
CN102394771A (en) * | 2011-10-26 | 2012-03-28 | 广州杰赛科技股份有限公司 | Socket type embedded log acquisition system and method |
CN103116586A (en) * | 2011-11-17 | 2013-05-22 | 中国电信股份有限公司 | Document reading achieving method, terminal, document conversion server and processing system |
CN102819492A (en) * | 2012-08-02 | 2012-12-12 | 中山大学 | Keyword driven automatic testing frame on basis of Android |
CN102880596A (en) * | 2012-09-13 | 2013-01-16 | 苏州阔地网络科技有限公司 | Method and system for converting document format |
CN104035937A (en) * | 2013-03-07 | 2014-09-10 | 方正国际软件(北京)有限公司 | Extensible system and method for electronic document online browsing |
CN105335278A (en) * | 2014-06-16 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Testing method and device |
CN105005642A (en) * | 2015-06-25 | 2015-10-28 | 北京航空航天大学 | Three-dimensional model batch format conversion and weight reduction method |
CN105095077A (en) * | 2015-07-17 | 2015-11-25 | 北京奇虎科技有限公司 | Automated testing method and device for user interfaces |
CN105700748A (en) * | 2016-01-13 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Touch control processing method and device |
CN105740435A (en) * | 2016-01-28 | 2016-07-06 | 安徽四创电子股份有限公司 | On-line preview design method of document on the basis of distribution |
Also Published As
Publication number | Publication date |
---|---|
CN106844453A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106844453B (en) | Electronic file format conversion method | |
CN108304676B (en) | Automatic reconstruction method for three-dimensional model of assembly body, terminal device and storage medium | |
WO2020026778A1 (en) | Api adapter creation device, api adapter creation method, and api adapter creation program | |
US20160248843A1 (en) | Data upload method using shortcut | |
EP2223209A1 (en) | Improved user interface | |
EP3552376B1 (en) | Card-based information management method and system | |
US10375149B2 (en) | Application registration and interaction | |
US20140181940A1 (en) | File management method and system and storage mediums | |
WO2022000888A1 (en) | Apparatus and method for executing customized artificial intelligence production line, and device and medium | |
EP3242197A1 (en) | Desktop sharing method and mobile terminal | |
CN107846344B (en) | Method and device for pushing messages in batch in instant messaging tool and electronic equipment | |
CN111580712B (en) | Desktop customization method, device, equipment, system and storage medium | |
US11775140B2 (en) | Generating a customized organizational structure for uploading content to a cloud-based storage system | |
CN116450202A (en) | Page configuration method, page configuration device, computer equipment and computer readable storage medium | |
KR102523032B1 (en) | Computer-implemented systems and methods for managing an electronic document | |
CN105187562A (en) | System and method for operating remote file | |
US20180349932A1 (en) | Methods and systems for determining persona of participants by the participant use of a software product | |
CN113590564B (en) | Data storage method, device, electronic equipment and storage medium | |
JPH06348625A (en) | Automatic execution system for personal computer communication | |
CN114579123A (en) | Display frame, page display method, electronic device and storage medium | |
CN109088977B (en) | Control method and control device for automatically installing mobile terminal application | |
CN111026466A (en) | File processing method and device, computer readable storage medium and electronic equipment | |
US20160162587A1 (en) | Process for providing a computer service and computer system for implementing the process | |
JP7339221B2 (en) | Information processing program, information processing method and information processing system | |
US10983657B1 (en) | Systems and methods for providing a client-side configurable graphical control element framework |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |