File format conversion method and device, computer equipment and storage medium

文档序号:1490581 发布日期:2020-02-04 浏览:24次 中文

阅读说明:本技术 一种文件格式转换方法、装置、计算机设备和存储介质 (File format conversion method and device, computer equipment and storage medium ) 是由 张生 于 2019-09-12 设计创作,主要内容包括:本发明提供了一种文件格式转换方法、装置、计算机设备和存储介质。其中,所述方法包括接收待处理文档;对所述待处理文档进行预设处理,得到第一预设格式文档;其中,所述预设处理包括矢量化处理;将所述第一预设格式文档下发至多个客户端,通过本发明可以将所述第一预设格式文档下发至多个客户端,能够将文档格式转换为第一预设格式,同时文件数据量没有增加,进而可以快速便捷的将第一预设格式文档下发至客户端。(The invention provides a file format conversion method, a file format conversion device, computer equipment and a storage medium. The method comprises the steps of receiving a document to be processed; presetting the document to be processed to obtain a first preset format document; wherein the preset treatment comprises vectorization treatment; the first preset format document can be issued to the plurality of clients, the document format can be converted into the first preset format, and meanwhile, the data volume of the document is not increased, so that the first preset format document can be issued to the clients quickly and conveniently.)

1. A file format conversion method, comprising:

receiving a document to be processed;

presetting the document to be processed to obtain a first preset format document; wherein the preset treatment comprises vectorization treatment;

and issuing the first preset format document to a plurality of clients.

2. The method according to claim 1, wherein the preset process further includes an encryption process, and the first preset-format document further includes an encrypted-format document;

the issuing the first preset format document to a plurality of clients includes:

and the encrypted format document is sent to a plurality of clients so that the clients can decrypt the encrypted format document to obtain a second preset format document.

3. The method according to claim 1, wherein before the pre-processing the document to be processed, the method comprises:

and compressing the document to be processed.

4. The method of claim 2 wherein the encrypted format document comprises a private format document with a file suffix name of npz and the second predetermined format document comprises a private format document with a file suffix name of npg.

5. A file format conversion apparatus, comprising:

the receiving module is used for receiving the document to be processed;

the processing module is used for carrying out preset processing on the document to be processed to obtain a first preset format document; wherein the preset treatment comprises vectorization treatment;

and the issuing module is used for issuing the first preset format document to a plurality of clients.

6. The apparatus according to claim 5, wherein the predetermined process further comprises an encryption process, and the first predetermined format document further comprises an encrypted format document;

the issuing module further comprises:

and the issuing unit is used for issuing the encrypted format document to a plurality of clients so that the clients can decrypt the encrypted format document to obtain a second preset format document.

7. The apparatus of claim 5, further comprising:

and the compression module is used for compressing the document to be processed.

8. The apparatus according to claim 6, wherein the encrypted format document comprises a private format document with a file suffix name of npz, and wherein the second preset format document comprises a private format document with a file suffix name of npg.

9. An electronic device, comprising:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to: performing the method of any one of claims 1 to 4.

10. A computer readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1 to 4.

Technical Field

The present invention relates to the field of electronic document format conversion technologies, and in particular, to a file format conversion method, an apparatus, a computer device, and a storage medium.

Background

Currently, paperless conference software needs to upload microsoft office documents and Jinshan WPSoffece documents in various formats on a management end and then open a display on a client. Because the IOS system client and the Andrion system client do not support the display of Microsoft Office documents and Jinshan WPS Office documents, file conversion is required.

Disclosure of Invention

In view of the above, it is desirable to provide a file format conversion method, apparatus, computer device, and storage medium that can prevent an increase in the amount of file data in response to the above-described technical problem.

A file format conversion method, comprising: receiving a document to be processed; presetting the document to be processed to obtain a first preset format document; wherein the preset treatment comprises vectorization treatment; and issuing the first preset format document to a plurality of clients.

In one embodiment, the preset processing further includes encryption processing, and the first preset format document further includes an encrypted format document; the issuing the first preset format document to a plurality of clients includes: and the encrypted format document is sent to a plurality of clients so that the clients can decrypt the encrypted format document to obtain a second preset format document.

In one embodiment, before the pre-processing the document to be processed, the pre-processing includes: and compressing the document to be processed.

In one embodiment, the encrypted format document comprises a private format document with a file suffix name of npz, and the second pre-set format document comprises a private format document with a file suffix name of npg.

A file format conversion apparatus, comprising: the receiving module is used for receiving the document to be processed; the processing module is used for carrying out preset processing on the document to be processed to obtain a first preset format document; wherein the preset treatment comprises vectorization treatment; and the issuing module is used for issuing the first preset format document to a plurality of clients.

In one embodiment, the preset processing further includes encryption processing, and the first preset format document further includes an encrypted format document; the issuing module further comprises: and the issuing unit is used for issuing the encrypted format document to a plurality of clients so that the clients can decrypt the encrypted format document to obtain a second preset format document.

In one embodiment, the apparatus further comprises: and the compression module is used for compressing the document to be processed.

In one embodiment, the encrypted-format document includes a private-format document with a file suffix name of npz, and the second preset-format document includes a private-format document with a file suffix name of npg.

An electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: the method described in the above embodiment is performed.

A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method described in the above embodiments.

According to the file format conversion method, the file format conversion device, the computer equipment and the storage medium, the document to be processed is subjected to preset processing to obtain a first preset format document; wherein the preset treatment comprises vectorization treatment; the first preset format document is issued to the plurality of clients, the document format can be converted into the first preset format, the data volume of the document is not increased, and the first preset format document can be issued to the clients quickly and conveniently.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:

fig. 1 is a flowchart illustrating a file format conversion method according to an embodiment.

Fig. 2 is a block diagram of a file format conversion apparatus according to an embodiment.

Fig. 3 shows a block diagram of an electronic device in accordance with an embodiment of the disclosure.

Fig. 4 shows a block diagram of an electronic device in accordance with an embodiment of the disclosure.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The file format conversion method provided by the application can be applied to the following application environments. Wherein, the terminal communicates with the server through the network. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server can be implemented by an independent server or a server cluster formed by a plurality of servers.

In an embodiment, as shown in fig. 1, a file format conversion method is provided, which specifically includes the following steps:

and S110, receiving the document to be processed.

The document to be processed may be a text document such as a microsoft Office document or a jinshan WPS Office document, for example, a Word document, an Excel document, a PDF document or a Visio document, and the document format may be DOC, DOCX, XLS, PDF, VSD, or the like.

In this implementation manner, the file format conversion method may be applied to a paperless conference system, where the paperless conference system includes a management end and a plurality of clients, the management end is used by a conference host, and the plurality of clients are used by the other plurality of participants.

In the preparation stage of the conference, the conference host can upload the document to be processed to the management end. In the implementation mode, a conference host can read, label, modify and edit the text document on the management side.

In this implementation, the file format conversion method may be executed by the management terminal or the server connected to the paperless system.

S120, performing preset processing on the document to be processed to obtain a first preset format document; wherein the preset processing comprises vectorization processing.

The preset processing is used to process the document to be processed from an original format to a first preset format document, for example, the document may be a PDF format document, and correspondingly, the preset processing may be vectorization processing.

Specifically, the PDF format document obtained by vectorization has the characteristics of high fidelity and high compression, the data volume of the document before and after conversion is basically consistent, and the data volume of the document to be processed cannot be expanded.

S130, issuing the first preset format document to a plurality of clients.

In this implementation manner, the operation of issuing the first preset format document to the plurality of clients may be initiated by the management end, and when the conference host sends a file issuing instruction to the management end, the management end sends the converted first preset format document to each client.

Because the PDF format document obtained by vectorization has the characteristics of high fidelity and high compression, and the data size of the file is basically consistent before and after conversion, the transmission speed of the information sent to the client by the management end is not influenced, and the feeling of stagnation of the participants is not given.

In the embodiment, a first preset format document is obtained by performing preset processing on the document to be processed; wherein the preset treatment comprises vectorization treatment; the first preset format document is issued to the plurality of clients, the document format can be converted into the first preset format, the data volume of the document is not increased, and the first preset format document can be issued to the clients quickly and conveniently.

In a possible implementation manner, the preset processing further includes encryption processing, and the first preset format document further includes an encrypted format document; the issuing the first preset format document to a plurality of clients includes: and the encrypted format document is sent to a plurality of clients so that the clients can decrypt the encrypted format document to obtain a second preset format document.

The encrypted document may be obtained through various encryption processes, and the specific encryption processing method is not limited in this embodiment.

Correspondingly, when the client receives the encrypted format document, the encrypted format document can be decrypted to obtain a second preset format document.

In this implementation manner, the second preset format document includes a PDF format document.

In a possible implementation manner, before performing the preset processing on the document to be processed, the method includes: and compressing the document to be processed. This has the advantage that the amount of file data of the document to be processed can be reduced.

In one possible implementation, the encrypted-format document includes a private-format document with a file suffix name of npz, and the second preset-format document includes a private-format document with a file suffix name of npg.

It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 2, there is provided a file format conversion apparatus including: a receiving module 201, a processing module 202 and a sending module 203.

The receiving module 201 is configured to receive a document to be processed;

the processing module 202 is configured to perform preset processing on the document to be processed to obtain a document in a first preset format; wherein the preset treatment comprises vectorization treatment;

the issuing module 203 is configured to issue the first preset format document to multiple clients.

In a possible implementation manner, the preset processing further includes encryption processing, and the first preset format document further includes an encrypted format document; the issuing module further comprises: and the issuing unit is used for issuing the encrypted format document to a plurality of clients so that the clients can decrypt the encrypted format document to obtain a second preset format document.

In one possible implementation, the apparatus further includes: and the compression module is used for compressing the document to be processed.

In one possible implementation, the encrypted-format document includes a private-format document with a file suffix name of npz, and the second preset-format document includes a private-format document with a file suffix name of npg.

Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the above-mentioned method. The computer readable storage medium may be a non-volatile computer readable storage medium.

An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured as the above method.

The electronic device may be provided as a terminal, server, or other form of device.

Fig. 3 is a block diagram illustrating an electronic device 800 according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like terminal.

Referring to fig. 3, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.

The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.

In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the electronic device 800 to perform the above-described methods.

Fig. 4 is a block diagram illustrating an electronic device 1900 according to an example embodiment. For example, the electronic device 1900 may be provided as a server. Referring to fig. 4, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.

The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.

In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above-described methods.

The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.

The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.

The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.

The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).

Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.

These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:天气数据转换方法和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!