CN102521218A - File combining method and file combining device - Google Patents

File combining method and file combining device Download PDF

Info

Publication number
CN102521218A
CN102521218A CN2011104207746A CN201110420774A CN102521218A CN 102521218 A CN102521218 A CN 102521218A CN 2011104207746 A CN2011104207746 A CN 2011104207746A CN 201110420774 A CN201110420774 A CN 201110420774A CN 102521218 A CN102521218 A CN 102521218A
Authority
CN
China
Prior art keywords
file
converted
conversion
format
performance parameter
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.)
Granted
Application number
CN2011104207746A
Other languages
Chinese (zh)
Other versions
CN102521218B (en
Inventor
侯树成
于权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Founder International Co Ltd
Founder International Beijing Co Ltd
Original Assignee
Founder International Co Ltd
Founder International Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Founder International Co Ltd, Founder International Beijing Co Ltd filed Critical Founder International Co Ltd
Priority to CN201110420774.6A priority Critical patent/CN102521218B/en
Publication of CN102521218A publication Critical patent/CN102521218A/en
Application granted granted Critical
Publication of CN102521218B publication Critical patent/CN102521218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a file combining method and a file combining device. The method includes the steps: reading one or multiple to-be-converted files in a to-be-converted file directory of current equipment; dividing all the to-be-converted files into one or multiple to-be-converted file group according the file converting number, wherein the file converting number is determined according to performance parameters of the current equipment; sequentially performing format conversion of all the to-be-converted files in each to-be-converted file group, and combining format conversion results into a target format file. By the aid of the method, the files of various formats can be converted and combined by computer equipment, errors are difficult to occur, and format conversion efficiency and combining performance are improved.

Description

File synthetic method and device
Technical field
The present invention relates to computer realm, in particular to a kind of file synthetic method and device.
Background technology
In the computer information processing field of prior art; Relating to will be in enormous quantities; Eurypalynous data file converts (for example CEB form) layout files to; Be specifically related in information management system (mis system) the information processing of types such as various information that collects and intrasystem character image is synthesized the layout files of the CEB form that can not change that can supply files, borrows, circulates uses, in above-mentioned format conversion process, because processing, File Compress, the file of multiple file type such as upload at sequence of operations; Need call various dissimilar assembly supports; Comprise OCR assembly, the synthetic assembly of layout files, a series of assemblies such as information embedding, control of authority are normal in the synthetic computer-chronograph operation of few files.But huge in the file amount, under the situation such as file type complicacy, it is slow that this format conversion building-up process will cause that conversion is synthesized, instability, and conversion makes mistakes, and problems such as machine collapse cause the use of the system that has a strong impact on.
In addition, will be in enormous quantities in existing technology, eurypalynous data file converts layout files (for example being directed against the file of PDF) to; Generally can utilize file storage location classification, the file that will be positioned under the same catalogue is once changed, if success then change next catalogue; If synthetic the interruption will occur when convert failed, system exception or inadequate resource; Program is out of service, and internal memory overflows, situation such as system crash.
Be directed against in equipment, data file in enormous quantities, eurypalynous being converted in the process of various layout files of correlation technique at present; Since the problem of equipment performance cause the file conversion combined coefficient low, be prone to make mistakes and the problem of poor performance, effective solution is not proposed at present as yet.
Summary of the invention
To in equipment, data file in enormous quantities, eurypalynous being converted in the process of various layout files of correlation technique; Since the problem of equipment performance cause the file conversion combined coefficient low, be prone to make mistakes and the problem of poor performance; Do not propose effective problem as yet at present and propose the present invention; For this reason, fundamental purpose of the present invention is to provide a kind of file synthetic method and device, to address the above problem.
To achieve these goals, according to an aspect of the present invention, a kind of file synthetic method is provided, this method comprises: read the file one or more to be converted under the file directory to be converted in the current device; According to the file conversion number all files to be converted are divided into one or more file group to be converted, wherein, the file conversion number is confirmed according to the performance parameter of current device; According to the order of sequence all files to be converted in each file group to be converted are carried out format conversion, and the format conversion result is synthesized an object format file.
Further, before file to be converted was divided into one or more file group to be converted with all according to the file conversion number, method also comprised: the pairing file conversion number of every kind of performance parameter of preset equipment, to obtain translation-profile; Performance parameter according to current device is inquired about in translation-profile, to obtain the file conversion number of corresponding current device.
Further; Translation-profile comprises the corresponding relation between one or more performance parameters and the file conversion number; Wherein, comprise in translation-profile, inquiring about: judge the whether success of performance parameter of this current equipment of inquiry in translation-profile, wherein according to the performance parameter of current device; Under the situation of successful inquiring, obtain the file conversion number of current device according to the performance parameter correspondence that inquires; Under the situation of inquiry failure; The file conversion number of this current equipment of the pairing file conversion number conduct of performance parameter that selection is lower than the performance parameter of current device, and in translation-profile, preserve the performance parameter of current device and the corresponding relation of the file conversion number that gets access to.
Further; According to the order of sequence all files to be converted in each file group to be converted are carried out format conversion; And the format conversion result is synthesized an object format file comprise: steps A; Read first file group to be converted in the file group formation to be converted, wherein, file group formation to be converted comprises all conversion file group of ordering in order; Step B extracts the image and/or the literal of all files to be converted in first file group to be converted; Step C is object format through calling transition components with image that extracts and/or text conversion, to obtain the first format conversion result; Step D after successfully obtaining the first format conversion result, extracts and changes other file group to be converted in the file group formation to be converted in order, and will obtain all form transformation results and be merged into an object format file.
Further; In that the file to be converted of all in the file group to be converted carries out format conversion with each according to the order of sequence, and the format conversion result is synthesized in the process of an object format file, method also comprises: monitoring in real time or whether regularly monitor the format conversion process of any file group to be converted unusual; Under the situation that detects the format conversion process exception; Return and execution in step A to step D, until all file group format transformation successes to be converted, wherein; Detecting the format transformation success of any file group to be converted, then jumping to next file group to be converted and carry out the format conversion process.
Further; After the file one or more to be converted in reading current device in the file directory to be converted; Method also comprises: the number N of adding up all files to be converted in the file directory to be converted according to following formula: wherein; M representes the number of the sub-folder under the file directory to be converted; N representes the number of files under the sub-folder; I representes any natural number among the m, and j representes any natural number among the n.
Further, after transformation result being synthesized an object format file, method also comprises: confirm the object format file is uploaded automatically and is saved under the preset file destination catalogue.
To achieve these goals, according to a further aspect in the invention, a kind of file synthesizer is provided, this device comprises: read module is used for reading the file one or more to be converted under the current device file directory to be converted; Divide module, be used for according to the file conversion number all files to be converted being divided into one or more file group to be converted, wherein, the file conversion number is confirmed according to the performance parameter of current device; Processing module is used for according to the order of sequence all files to be converted of each file group to be converted are carried out format conversion, and the format conversion result is synthesized an object format file.
Further, device also comprises: module is set, is used for the pairing file conversion number of every kind of performance parameter of preset equipment, to obtain translation-profile; Enquiry module is used for inquiring about at translation-profile according to the performance parameter of current device, to obtain the file conversion number of corresponding current device.
Further, device also comprises: judge module is used for judging whether the performance parameter at this current equipment of translation-profile inquiry is successful; First acquisition module is used under the situation of successful inquiring, obtains the file conversion number of current device according to the performance parameter correspondence that inquires; Second acquisition module; Be used under the situation of inquiry failure; The file conversion number of this current equipment of the pairing file conversion number conduct of performance parameter that selection is lower than the performance parameter of current device, and in translation-profile, preserve the performance parameter of current device and the corresponding relation of the file conversion number that gets access to.
Further, processing module comprises: second read module, be used for reading first file group to be converted of file group formation to be converted, and wherein, file group formation to be converted comprises all conversion file group of ordering in order; Extraction module is used for extracting the image and/or the literal of all files to be converted of first file group to be converted; Modular converter, being used for through calling transition components is object format with image that extracts and/or text conversion, to obtain the first format conversion result; Merge module, be used for after successfully obtaining the first format conversion result, extract and change other file group to be converted in the file group formation to be converted in order, and will obtain all form transformation results and be merged into an object format file.
Further, device also comprises: whether monitoring module is used for monitoring in real time or regularly monitors the format conversion process of any file group to be converted unusual; Under the situation that detects the format conversion process exception; Return and carry out the function of processing module, change successfully until all file group to be converted, wherein; Detecting the format transformation success of any file group to be converted, then jumping to next file group to be converted and carry out the format conversion process.
Through the present invention, adopt and read the file one or more to be converted under the file directory to be converted in the current device; According to the file conversion number all files to be converted are divided into one or more file group to be converted, wherein, the file conversion number is confirmed according to the performance parameter of current device; According to the order of sequence all files to be converted in each file group to be converted are carried out format conversion; And the format conversion result synthesized an object format file; Solved in equipment, data file in enormous quantities, eurypalynous being converted in the process of various layout files of related art; Since the problem of equipment performance cause the file conversion combined coefficient low, be prone to make mistakes and the problem of poor performance, and then realize that the synthetic various layout files of computer equipment conversion are difficult for makeing mistakes and improve the effect of format conversion efficient and synthetic performance.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the structural representation according to the file synthesizer of the embodiment of the invention; And
Fig. 2 is the process flow diagram according to the file synthetic method of the embodiment of the invention.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.Below with reference to accompanying drawing and combine embodiment to specify the present invention.
Fig. 1 is the structural representation according to the file synthesizer of the embodiment of the invention.
As shown in Figure 1, this document synthesizer comprises: read module 10 is used for reading the file one or more to be converted under the current device file directory to be converted; Divide module 30, be used for according to the file conversion number all files to be converted being divided into one or more file group to be converted, wherein, the file conversion number is confirmed by the performance parameter of current device; Processing module 50 is used for according to the order of sequence all files to be converted of each file group to be converted are carried out format conversion, and the format conversion result is synthesized an object format file.
The application confirms to carry out the amount distribution of convert task according to the performance parameter of machine and the quantity of file to be converted; Because processor is to be that a convert task is carried out format conversion with file group to be converted at synchronization; After the format conversion success of all files to be converted of waiting to change file group; Just begin to start format conversion to next one file group to be converted; Thereby solved in equipment data file in enormous quantities, eurypalynous is converted in the process of various layout files; Since the problem of equipment performance cause the file conversion combined coefficient low, be prone to make mistakes and the problem of poor performance, greatly improved the file aggregate velocity, good effect is arranged.
Device in the application's the foregoing description can also comprise: module 70 is set, is used for the pairing file conversion number of every kind of performance parameter of preset equipment, to obtain translation-profile; Enquiry module 90 is used for inquiring about at translation-profile according to the performance parameter of current device, to obtain the file conversion number of corresponding current device.The application's the foregoing description is realized preset translation-profile; This translation-profile has been preserved the incidence relation of a plurality of device performance parameters and its corresponding file number of transition; Be different device performance parameters and be provided with the different files number of transition; This document number of transition be every batch can convert file number; And all incidence relations are saved as translation-profile with the form of tables of data or database; Treat before convert file carries out format conversion and merge carrying out on the current device, to inquire about in translation-profile according to the current device performance parameter earlier and obtain the corresponding file number of transition, will carry out the quantity of documents of file conversion as each batch.The device performance parameters here can be memory size or processor model of computing machine etc.; Usually under strong in the processor processes ability or the situation that internal memory is bigger; The quantity of documents that each batch changed is bigger; Be the number of files that system can change according to the adjustment of the environment of current device at every turn, prevent owing to problems such as the device hardware reason cause that the file layout conversion is interrupted, failure or efficient are low.
Device in the application's the foregoing description can also comprise: judge module is used for judging whether the performance parameter at this current equipment of translation-profile inquiry is successful; First acquisition module is used under the situation of successful inquiring, obtains the file conversion number of current device according to the performance parameter correspondence that inquires; Second acquisition module; Be used under the situation of inquiry failure; The file conversion number of this current equipment of the pairing file conversion number conduct of performance parameter that selection is lower than the performance parameter of current device, and in translation-profile, preserve the performance parameter of current device and the corresponding relation of the file conversion number that gets access to.This embodiment has realized: if do not preserve the situation of the pairing file conversion number of performance parameter of current device in the translation-profile; System can read the pairing file conversion number of the performance parameter lower than the current performance parameter performance that reads (preferably with the minimum performance parameter of the current performance parameter difference that reads) automatically; And new corresponding relation is saved to translation-profile, so that when detect the equipment of this performance parameter next time, can get access to the corresponding file number of transition automatically.Simultaneously, translation-profile also can upgrade according to demand.
Processing module in the application's the foregoing description can comprise: second read module 501, be used for reading first file group to be converted of file group formation to be converted, and wherein, file group formation to be converted comprises all conversion file group of ordering in order; Extraction module 502 is used for extracting the image and/or the literal of all files to be converted of first file group to be converted; Modular converter 503, being used for through calling transition components is object format with image that extracts and/or text conversion, to obtain the first format conversion result; Merge module 504, be used for after successfully obtaining the first format conversion result, extract and change other file group to be converted in the file group formation to be converted in order, and will obtain all form transformation results and be merged into an object format file.Concrete, in the process that converse routine begins to carry out, if the user has selected use " optical character recognition reader OCR ", then equipment only can extract the image in the file to be converted, and is object format through calling the OCR assembly with the image transitions of extracting; If the user has selected use " double-deck object format file (for example CEB form or PDF) ", then equipment can extract image and the literal in the file to be converted simultaneously, and all converts them into object format.System is after carrying out format conversion to each band convert file according to the order of sequence; All form transformation results that obtain are merged into an object format file; In the concrete implementation procedure; System can call corresponding application software through the api interface of object format application software, realizes image that extracts and/or literal are carried out format conversion.In addition,, then call corresponding assembly, begin synthetic CEB file, and synthetic file destination is saved in the file destination catalogue of appointment, the synthetic daily record of record simultaneously if the user has selected " whether uploading " function.
Device in the application's the foregoing description can also comprise: monitoring module 110; Whether unusually, be used for monitoring in real time or regularly monitor the format conversion process of any file group to be converted, under the situation that detects the format conversion process exception, return and carry out the function of processing module; File group to be converted until all is changed successfully; Wherein, detecting the format transformation success of any file group to be converted, then jumping to next file group to be converted and carry out the format conversion process.The program of the monitoring module in the application's the foregoing description realizes, unusual (system exception or conversion are interrupted) occur if detect the format conversion process, and watchdog routine can be interrupted current task automatically; Start and continue the next group conversion; In the process that converse routine begins to carry out, can ignore under the conversion catalogue executed automatically and cross the file of conversion operations, final transformation result offers the user with the form of daily record; Easy and simple to handle, synthetic performance has remarkable lifting.
Adopt the application's the foregoing description, can realize analyzing the performance of obtaining current device, come to confirm to carry out the memory source of the program distribution of changing in view of the above; And the path of depositing that obtains file to be converted; And file destination deposit the path, travel through the catalogue of file to be converted, obtain the quantity of file to be converted; Again according to the configuration of quantity and current device; Draw quantifiable performance information and confirm the quantity of the file to be converted that each batch will be changed in the file layout convert task each time, promptly, draw more rational every batch and carry out the task for processing number according to the memory size or the processor model of the computing machine of carrying out convert task.Preserved every kind of every batch of number of files that allows conversion that performance parameter is corresponding in the translation-profile.Adopt the present invention, make things convenient for the user to manage file to be converted on the whole, can the old and new's composite document unification be stored in the conversion catalogue, program can be handled automatically, need not continue conversion at the unusual back of manual work wait routine on duty start-up routine simultaneously.
Fig. 2 is the process flow diagram according to the file synthetic method of the embodiment of the invention.This method as shown in Figure 2 comprises the steps:
Step S102 reads the file one or more to be converted under the file directory to be converted in the current device through the read module among Fig. 1.
Step S104 carries out according to the file conversion number that through the division module among Fig. 1 all files to be converted are divided into one or more file group to be converted, and wherein, the file conversion number is confirmed according to the performance parameter of current device.
Step S106 carries out according to the order of sequence through the processing module among Fig. 1 all files to be converted in each file group to be converted is carried out format conversion, and the format conversion result is synthesized an object format file.
The application confirms to carry out the amount distribution of convert task according to the performance parameter of machine and the quantity of file to be converted; Because processor is to be that a convert task is carried out format conversion with file group to be converted at synchronization; After the format conversion success of all files to be converted of waiting to change file group; Just begin to start format conversion to next one file group to be converted; Thereby solved in equipment data file in enormous quantities, eurypalynous is converted in the process of various layout files; Since the problem of equipment performance cause the file conversion combined coefficient low, be prone to make mistakes and the problem of poor performance, greatly improved the file aggregate velocity, good effect is arranged.
For example, the All Files under the file is being converted in the process of a CEB form or PDF file, having a large amount of tens up to a hundred files under the catalogue if run into; Because the processing power that has outnumbered current device of convert file; The probability that the transfer process of whole file is made mistakes can be very big, and the present invention has realized the granularity of each convert file is put little, realized that then slewing rate once is very fast; After file of successful conversion success; The processing environment cleaning is begun next file is changed again, add monitoring, the situation about stopping of makeing mistakes and make mistakes is basically no longer occurred.
Concrete, the application was provided with synthetic target directory earlier before conversion.For example; The convert file catalogue of user's appointment in the current device is d:/convertFile; And exist two sub-directories to be under this catalogue: d:/convertFile/A/2011/, d:/convertFile/B/2011/ have the file of these four titles as follows: A.jpg, B.jpg, c.jpg, d.txt under two catalogues.Setting the file destination catalogue of preserving composite document is: e:/distFile.
In the application's the foregoing description; Before file to be converted is divided into one or more file group to be converted with all according to the file conversion number; Method can also comprise: the pairing file conversion number of every kind of performance parameter of preset equipment, to obtain translation-profile; Performance parameter according to current device is inquired about in translation-profile, to obtain the file conversion number of corresponding current device.This embodiment has realized the distribution of convert task, and is concrete, and the performance parameter that program reads current device disposes the distribution of confirming resource in the convert task processing, confirms promptly file to be converted according to which kind of file conversion number is divided.The device performance parameters here can be memory size or processor model of computing machine etc.; Usually under strong in the processor processes ability or the situation that internal memory is bigger; The quantity of documents that each batch changed is bigger; Be the number of files that system can change according to the adjustment of the environment of current device at every turn, prevent owing to problems such as the device hardware reason cause that the file layout conversion is interrupted, failure or efficient are low.
In the application's the foregoing description; Translation-profile comprises the corresponding relation between one or more performance parameters and the file conversion number; Wherein, comprise in translation-profile, inquiring about: judge the whether success of performance parameter of this current equipment of inquiry in translation-profile, wherein according to the performance parameter of current device; Under the situation of successful inquiring, obtain the file conversion number of current device according to the performance parameter correspondence that inquires; Under the situation of inquiry failure; The file conversion number of this current equipment of the pairing file conversion number conduct of performance parameter that selection is lower than the performance parameter of current device, and in translation-profile, preserve the performance parameter of current device and the corresponding relation of the file conversion number that gets access to.This embodiment has realized the content automatic extension of translation-profile.
In the application's the foregoing description; According to the order of sequence all files to be converted in each file group to be converted are carried out format conversion; And the format conversion result is synthesized an object format file comprise: steps A; Read first file group to be converted in the file group formation to be converted, wherein, file group formation to be converted comprises all conversion file group of ordering in order; Step B extracts the image and/or the literal of all files to be converted in first file group to be converted; Step C is object format through calling transition components with image that extracts and/or text conversion, to obtain the first format conversion result; Step D after successfully obtaining the first format conversion result, extracts and changes other file group to be converted in the file group formation to be converted in order, and will obtain all form transformation results and be merged into an object format file.Concrete, in the process that converse routine begins to carry out, if the user has selected use " optical character recognition reader OCR ", then equipment only can extract the image in the file to be converted, and is object format through calling the OCR assembly with the image transitions of extracting; If the user has selected use " double-deck object format file (for example CEB form or PDF) ", then equipment can extract image and the literal in the file to be converted simultaneously, and all converts them into object format; If the user has selected " whether uploading " function, then call corresponding assembly, begin synthetic CEB file, and synthetic file destination is saved in the file destination catalogue of appointment, the synthetic daily record of record simultaneously.
In the application's the foregoing description; In that the file to be converted of all in the file group to be converted carries out format conversion with each according to the order of sequence, and the format conversion result is synthesized in the process of an object format file, method can also comprise: whether monitoring in real time or the format conversion process of regularly monitoring any file group to be converted interrupt; Under the situation that detects the interruption of format conversion process; Return and execution in step A to step D, until all file group format transformation successes to be converted, wherein; Detecting the format transformation success of any file group to be converted, then jumping to next file group to be converted and carry out the format conversion process.Realized among this embodiment in unattended transfer process; If a file to be converted goes wrong, system can not end transfer process, but start next file is changed; If success then begin again the synthetic of next group file; It is synthetic that the log continued of failing then begins next group, repeats above step and be all over to synthetic, so just improved efficient and the synthetic performance changed.Enforcement monitoring wherein provides two kinds of more effective user experiences for the user especially with regularly monitoring; Implement monitor procedure and make that the efficient of conversion is higher; Regularly monitoring is applicable to that the less situation of translation exception better appears in equipment performance, can not take too much device resource because of monitoring function.
Method of the present invention is through to the complete monitoring of file building-up process, carries out the distribution of file grouping and task amount according to the performance and the quantity of documents of machine, improved the file aggregate velocity greatly, and goodish effect is arranged.For synthetic the makeing mistakes or system unusual that other X factor causes, watchdog routine can be interrupted current task automatically, and it is synthetic to continue next group.Final transformation result offers the user with the form of daily record, guarantees that the synthetic performance of file when in enormous quantities file conversion unmanned has significant lifting.
Preferably; Among above-mentioned each embodiment; After the file one or more to be converted in reading current device in the file directory to be converted; Method also comprises: the number N of adding up all files to be converted in the file directory to be converted according to following formula:
Figure BDA0000120789000000071
wherein; M representes the number of the sub-folder under the file directory to be converted; N representes the number of files under the sub-folder, and i representes any natural number among the m, and j representes any natural number among the n.
Concrete, this embodiment has realized adding up the method for number of files to be synthesized, owing to can have sub-directory in the file directory to be converted, therefore can adopt above-mentioned algorithm to obtain final number of files to be converted, and net result is file number but not the catalogue number under the catalogue.For example, working as m=2, during n=4, all is an iteration to the file traversal of each sub-directory, and final number of files to be converted is 8, combines the current device performance parameter to obtain each batch this document number then and wants the convert file number.System's scan conversion catalogue in transfer process is obtained the conversion number and is judged whether treated file.
Preferably, in the foregoing description, after transformation result being synthesized an object format file, confirm the object format file is uploaded automatically and is saved under the preset file destination catalogue.Preserve the file after successfully synthesizing under the file destination catalogue; With the convert file catalogue is d:/convertFile; And having two sub-directories under this catalogue is among the embodiment of example; After the successful conversion file, program can generate the subpath portion of closing under the synthetic catalogue of appointment automatically, and convert file result's the path of depositing is e:/distFile/A/2011/A 2011.CEB and e:/distFile/B/2011/B 2011.CEB.Thereby the information filing and the file that make things convenient for information management system upload to the visit of file behind the FTP.。
Need to prove; Can in computer system, carry out in the step shown in the process flow diagram of accompanying drawing such as a computer executable instructions; And; Though logical order has been shown in process flow diagram, in some cases, can have carried out step shown or that describe with the order that is different from here.
From above description, can find out that the present invention has realized following technique effect: improved the file aggregate velocity greatly, good effect is arranged.Make mistakes or system unusual for conversion, can interrupt current task automatically, and continue the next group conversion, up to all file conversion successes.Final transformation result offers the user with the form of daily record, and is easy and simple to handle, and synthetic performance has remarkable lifting.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the memory storage and carry out, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a file synthetic method is characterized in that, comprising:
Read the file one or more to be converted under the file directory to be converted in the current device;
According to the file conversion number all files to be converted are divided into one or more file group to be converted, wherein, said file conversion number is confirmed according to the performance parameter of said current device;
According to the order of sequence all files to be converted in each file group to be converted are carried out format conversion, and the format conversion result is synthesized an object format file.
2. method according to claim 1 is characterized in that, before file to be converted was divided into one or more file group to be converted with all according to the file conversion number, said method also comprised:
The pairing file conversion number of every kind of performance parameter of preset equipment is to obtain translation-profile;
Performance parameter according to said current device is inquired about in said translation-profile, to obtain the file conversion number of corresponding said current device.
3. method according to claim 2; It is characterized in that; Said translation-profile comprises the corresponding relation between one or more performance parameters and the file conversion number, wherein, comprises inquiring about in said translation-profile according to the performance parameter of said current device:
Whether this current equipment is inquired about in judgement in said translation-profile performance parameter is successful, wherein,
Under the situation of successful inquiring, obtain the file conversion number of said current device according to the performance parameter correspondence that inquires;
Under the situation of inquiry failure; The file conversion number of this current equipment of the pairing file conversion number conduct of performance parameter that selection is lower than the performance parameter of said current device, and in said translation-profile, preserve the performance parameter of current device and the corresponding relation of the file conversion number that gets access to.
4. according to any described method among the claim 1-3, it is characterized in that, according to the order of sequence all files to be converted in each file group to be converted carried out format conversion, and the format conversion result is synthesized an object format file comprise:
Steps A reads first file group to be converted in the file group formation to be converted, and wherein, said file group formation to be converted comprises all conversion file group of ordering in order;
Step B extracts the image and/or the literal of all files to be converted in said first file group to be converted;
Step C is an object format through calling said image and/or the text conversion that transition components will extract, to obtain the first format conversion result;
Step D after successfully obtaining the said first format conversion result, extracts and changes other file group to be converted in the said file group formation to be converted in order, and will obtain all form transformation results and be merged into an object format file.
5. method according to claim 4 is characterized in that, in that the file to be converted of all in the file group to be converted carries out format conversion with each according to the order of sequence, and the format conversion result is synthesized in the process of an object format file, and said method also comprises:
Whether the format conversion process that any file group to be converted is monitored in monitoring in real time or timing is unusual; Under the situation that detects said format conversion process exception; Return and execution in step A to step D, until all file group format transformation successes to be converted, wherein; Detecting the format transformation success of any file group to be converted, then jumping to next file group to be converted and carry out the format conversion process.
6. method according to claim 5 is characterized in that, after the file one or more to be converted in reading current device in the file directory to be converted, said method also comprises:
Add up the number N of all files to be converted in the said file directory to be converted according to following formula:
N = Σ i = 1 m Σ j = 1 n Fj ,
Wherein, m representes the number of the sub-folder under the said file directory to be converted, and n representes the number of files under the sub-folder, and i representes any natural number among the m, and j representes any natural number among the n.
7. method according to claim 1 is characterized in that, after transformation result being synthesized an object format file, said method also comprises: confirm said object format file is uploaded automatically and is saved under the preset file destination catalogue.
8. a file synthesizer is characterized in that, comprising:
Read module is used for reading the file one or more to be converted under the current device file directory to be converted;
Divide module, be used for according to the file conversion number all files to be converted being divided into one or more file group to be converted, wherein, said file conversion number is confirmed according to the performance parameter of said current device;
Processing module is used for according to the order of sequence all files to be converted of each file group to be converted are carried out format conversion, and the format conversion result is synthesized an object format file.
9. device according to claim 8 is characterized in that, said device also comprises:
Module is set, is used for the pairing file conversion number of every kind of performance parameter of preset equipment, to obtain translation-profile;
Enquiry module is used for inquiring about at said translation-profile according to the performance parameter of said current device, to obtain the file conversion number of corresponding said current device.
10. device according to claim 8 is characterized in that, said device also comprises:
Judge module is used for judging whether the performance parameter at said this current equipment of translation-profile inquiry is successful;
First acquisition module is used under the situation of successful inquiring, obtains the file conversion number of said current device according to the performance parameter correspondence that inquires;
Second acquisition module; Be used under the situation of inquiry failure; The file conversion number of this current equipment of the pairing file conversion number conduct of performance parameter that selection is lower than the performance parameter of said current device, and in said translation-profile, preserve the performance parameter of current device and the corresponding relation of the file conversion number that gets access to.
11. any described device according to Claim 8-10 is characterized in that said processing module comprises:
Second read module is used for reading first file group to be converted of file group formation to be converted, and wherein, said file group formation to be converted comprises all conversion file group of ordering in order;
Extraction module is used for extracting the image and/or the literal of all files to be converted of said first file group to be converted;
Modular converter, being used for through calling said image and/or the text conversion that transition components will extract is object format, to obtain the first format conversion result;
Merge module, be used for after successfully obtaining the said first format conversion result, extracting and change other file group to be converted in the said file group formation to be converted in order, and will obtain all form transformation results and be merged into an object format file.
12. device according to claim 11 is characterized in that, said device also comprises:
Monitoring module; Whether unusually, be used for monitoring in real time or regularly monitor the format conversion process of any file group to be converted, under the situation that detects said format conversion process exception, return and carry out the function of said processing module; File group to be converted until all is changed successfully; Wherein, detecting the format transformation success of any file group to be converted, then jumping to next file group to be converted and carry out the format conversion process.
CN201110420774.6A 2011-12-15 2011-12-15 File combining method and file combining device Active CN102521218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110420774.6A CN102521218B (en) 2011-12-15 2011-12-15 File combining method and file combining device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110420774.6A CN102521218B (en) 2011-12-15 2011-12-15 File combining method and file combining device

Publications (2)

Publication Number Publication Date
CN102521218A true CN102521218A (en) 2012-06-27
CN102521218B CN102521218B (en) 2014-07-23

Family

ID=46292147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110420774.6A Active CN102521218B (en) 2011-12-15 2011-12-15 File combining method and file combining device

Country Status (1)

Country Link
CN (1) CN102521218B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007963A (en) * 2014-05-06 2014-08-27 北京金山网络科技有限公司 Method and device for generating skin file capable of being read by browser
CN104217396A (en) * 2014-09-11 2014-12-17 广西桂能软件有限公司 DWG (drawing) file format conversion method
CN107798132A (en) * 2017-11-20 2018-03-13 福建亿榕信息技术有限公司 Distributed document turns version and processing method, system and computer-readable recording medium
CN107832272A (en) * 2017-11-02 2018-03-23 山东浪潮云服务信息科技有限公司 Multi-format document automatic conversion insertion stream-oriented file method based on domestic CPU
CN108989704A (en) * 2018-07-27 2018-12-11 阿里巴巴集团控股有限公司 Image generating method and device, terminal device
CN109697189A (en) * 2018-12-14 2019-04-30 北京锐安科技有限公司 A kind of processing method of data file, device, storage medium and electronic equipment
CN111310415A (en) * 2018-11-23 2020-06-19 珠海金山办公软件有限公司 Document conversion method and device, computer storage medium and terminal
CN111897778A (en) * 2020-07-13 2020-11-06 苏宁金融科技(南京)有限公司 Computer file merging method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932864A (en) * 2006-10-10 2007-03-21 北京金润方舟软件科技有限公司 Apparatus and method for producing electronic construction files
CN1940981A (en) * 2006-08-14 2007-04-04 北京金润方舟软件科技有限公司 Producer, production, applied system and method for electronic label
US20070094588A1 (en) * 2005-10-25 2007-04-26 Research In Motion Limited Image stitching for mobile electronic devices
CN101140563A (en) * 2007-10-24 2008-03-12 北大方正集团有限公司 Combination method and apparatus capable of transplant document format file
CN102082830A (en) * 2011-01-18 2011-06-01 浙江大学 Unstable network-oriented distributed file storage method based on quality perception

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094588A1 (en) * 2005-10-25 2007-04-26 Research In Motion Limited Image stitching for mobile electronic devices
CN1940981A (en) * 2006-08-14 2007-04-04 北京金润方舟软件科技有限公司 Producer, production, applied system and method for electronic label
CN1932864A (en) * 2006-10-10 2007-03-21 北京金润方舟软件科技有限公司 Apparatus and method for producing electronic construction files
CN101140563A (en) * 2007-10-24 2008-03-12 北大方正集团有限公司 Combination method and apparatus capable of transplant document format file
CN102082830A (en) * 2011-01-18 2011-06-01 浙江大学 Unstable network-oriented distributed file storage method based on quality perception

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007963A (en) * 2014-05-06 2014-08-27 北京金山网络科技有限公司 Method and device for generating skin file capable of being read by browser
CN104007963B (en) * 2014-05-06 2017-11-07 北京猎豹网络科技有限公司 The method and apparatus for generating the skin file of browser readable
CN104217396A (en) * 2014-09-11 2014-12-17 广西桂能软件有限公司 DWG (drawing) file format conversion method
CN107832272A (en) * 2017-11-02 2018-03-23 山东浪潮云服务信息科技有限公司 Multi-format document automatic conversion insertion stream-oriented file method based on domestic CPU
CN107798132A (en) * 2017-11-20 2018-03-13 福建亿榕信息技术有限公司 Distributed document turns version and processing method, system and computer-readable recording medium
CN108989704A (en) * 2018-07-27 2018-12-11 阿里巴巴集团控股有限公司 Image generating method and device, terminal device
CN108989704B (en) * 2018-07-27 2021-03-12 创新先进技术有限公司 Image generation method and device and terminal equipment
CN111310415A (en) * 2018-11-23 2020-06-19 珠海金山办公软件有限公司 Document conversion method and device, computer storage medium and terminal
CN109697189A (en) * 2018-12-14 2019-04-30 北京锐安科技有限公司 A kind of processing method of data file, device, storage medium and electronic equipment
CN111897778A (en) * 2020-07-13 2020-11-06 苏宁金融科技(南京)有限公司 Computer file merging method, device and system
CN111897778B (en) * 2020-07-13 2023-10-13 苏宁金融科技(南京)有限公司 Computer file merging method, device and system

Also Published As

Publication number Publication date
CN102521218B (en) 2014-07-23

Similar Documents

Publication Publication Date Title
CN102521218A (en) File combining method and file combining device
CN102637214B (en) Method and system for synchronizing general data among database services
CN100547583C (en) Database automatically and the method that dynamically provides
CN102375837B (en) Data acquiring system and method
CN103034658A (en) Method and system for querying data and exporting report
CN102811260B (en) File cloud synchronizing system and method
CN102368261A (en) Expandable running maintenance report generation method
CN103649946A (en) Transmitting filesystem changes over a network
CN101937474A (en) Mass data query method and device
CN109241514A (en) Data automatically imported method, device, computer equipment and storage medium
CN103246549B (en) A kind of method and system of data conversion storage
CN100517332C (en) Web page content block intelligent intercepting method
CN102222112B (en) Resource management device and resource management method
CN105550179A (en) Webpage collection method and browser plug-in
CN101364897A (en) System for historical data archiving and implementing method
CN102521232A (en) Distributed acquisition and processing system and method of internet metadata
CN109271410A (en) Extracting method, device and the computer readable storage medium of bank receipt
CN102932476B (en) Network storage synchro system
CN102624770A (en) Information extraction method and extraction information network storage management system based on cloud calculation
CN103607731A (en) Method and device for processing measurement reports
CN101242298B (en) A network performance management interface method and system
CN108874856A (en) A kind of page generates system, method and server
CN105095225A (en) Method and apparatus for obtaining file data
CN104537078B (en) A kind of directory index optimization method based on sliding block
CN107885460A (en) A kind of data access method of cluster

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant