CN111930324A - Automatic import file printing method, device, equipment and storage medium - Google Patents

Automatic import file printing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111930324A
CN111930324A CN202010802842.4A CN202010802842A CN111930324A CN 111930324 A CN111930324 A CN 111930324A CN 202010802842 A CN202010802842 A CN 202010802842A CN 111930324 A CN111930324 A CN 111930324A
Authority
CN
China
Prior art keywords
file
target
processed
printing
image
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
CN202010802842.4A
Other languages
Chinese (zh)
Other versions
CN111930324B (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.)
Shenzhen Hosonsoft Co Ltd
Original Assignee
Shenzhen Hosonsoft 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 Shenzhen Hosonsoft Co Ltd filed Critical Shenzhen Hosonsoft Co Ltd
Priority to CN202010802842.4A priority Critical patent/CN111930324B/en
Publication of CN111930324A publication Critical patent/CN111930324A/en
Application granted granted Critical
Publication of CN111930324B publication Critical patent/CN111930324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention belongs to the technical field of printing, solves the technical problems of large workload, low efficiency and high cost of manual file importing in the prior art, and provides a method, a device, equipment and a storage medium for automatically importing files for printing. The automatic import file printing method includes S1: scanning the target folder, and identifying a file to be processed in the target folder; s2: acquiring the file attribute of a file to be processed; s3: identifying a target attribute file in a file to be processed; s4: and screening out the target file from the target attribute file, and importing the target file into the target program. The invention also comprises a device, equipment and a storage medium for executing the method. According to the method and the device, the target file is automatically imported into the file queue to be processed by scanning the target folder, so that the file import efficiency is improved, the error rate is reduced, and the cost is saved.

Description

Automatic import file printing method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of printing, in particular to a method, a device, equipment and a storage medium for automatically importing a file to print.
Background
The ink-jet printing technology is that a printer controls a spray head to move according to a printing task corresponding to an image to be printed, and a nozzle of the spray head performs ink-jet printing on a printing medium in the process of moving along with the spray head to form the image or characters.
In the prior art, images to be printed are guided to a canvas from a folder for processing. In industrial printing, when batch printing is carried out, a plurality of files under the whole folder need to be printed, manual map guiding is large in workload, low in efficiency and high in error rate, and the problem that industrial printing cost is high is directly caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for automatically importing a file, so as to solve the technical problems of large workload, low efficiency, and high cost caused by a manual file importing method in industrial printing in the prior art.
The technical scheme adopted by the invention is as follows:
the invention provides a printing method for automatically importing files, which comprises the following steps:
s1: scanning a target folder, and identifying a file to be processed in the target folder;
s2: acquiring the file attribute of the file to be processed;
s3: identifying a target attribute file in the files to be processed according to the file attributes;
s4: screening out a target file from the target attribute file, and importing the target file into a target program;
preferably, the S1 includes scanning the target folder periodically or cyclically, or detecting the capacity of the target folder, and scanning the target folder when the capacity of the target folder changes.
Preferably, after said S4, comprising;
s51: receiving a feedback signal generated after the target file is processed;
s52: acquiring file information corresponding to the target file according to the feedback signal;
s53: and adding the file information to a processed queue.
Preferably, the S4 includes:
s401: acquiring the file name and modification time of a file in a target attribute file;
s402: comparing the file name and the modification time with file information of a processed file queue to obtain unprocessed files and/or processed and re-modified files in the target attribute file;
s403: and importing the unprocessed file and/or the processed and re-modified file into a file queue to be processed as the target file.
Preferably, the target property file is an image file, and after the S4, the method includes:
s411: acquiring an image processing curve corresponding to an image file and the file volume of single file import;
s412: adjusting the conversion frequency of the image processing curve to convert the image file into corresponding printing data according to the file amount;
s413: and distributing a printing mode to the image file according to the printing requirement corresponding to the printing data.
Preferably, said S411 comprises;
s4111: acquiring an original color mode of a target image file to be printed and a printing color mode of printing equipment;
s4112: converting the color mode of a target image file to be printed into a printing color mode which can be printed by the printing equipment to obtain the image file;
s4113: matching an image processing curve according to the print color pattern of the image file.
Preferably, the S4 includes:
s421: acquiring the file name and modification time of a file in a target attribute file;
s422: comparing the file name and the modification time with file information of a processed file queue to obtain a non-target file which is the same as a processed file corresponding to the file information of the processed file queue in the target attribute file;
s423: and deleting the non-target file from the target folder.
The invention also provides an automatic file importing device, which comprises:
a file scanning module: the system comprises a scanning module, a processing module and a processing module, wherein the scanning module is used for scanning a target folder and identifying a file to be processed in the target folder;
a file identification module: the file attribute of the file to be processed is obtained;
a data processing module: the file processing device is used for identifying a target attribute file in the files to be processed according to the file attributes;
a file import module: and the target file is used for screening out a target file from the target attribute file and importing the target file into a target program.
The present invention also provides a printing apparatus comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of the above.
The present invention also provides a storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of any one of the above.
In conclusion, the beneficial effects of the invention are as follows:
according to the method, the device, the equipment and the storage medium for printing the automatically imported file, the file of the target folder is automatically scanned to obtain the file to be processed in the target folder, the target file is screened out according to the file attribute, then the target file is further screened out, and the target file is imported into the file queue to be processed, so that manual screening is not needed in the whole process, the import efficiency of the file is improved, repeated import can be avoided, and the cost of industrial printing is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, without any creative effort, other drawings may be obtained according to the drawings, and these drawings are all within the protection scope of the present invention.
Fig. 1 is a schematic flow chart illustrating an automatic import file printing method in embodiment 1 of the present invention;
FIG. 2 is a schematic flowchart of a processed target document of the automatic import document printing method according to embodiment 1 of the present invention;
fig. 3 is a schematic flowchart of screening a target document in the method for printing an automatically imported document according to embodiment 1 of the present invention;
FIG. 4 is a schematic flowchart of target image file printing according to the automatic import file printing method in embodiment 1 of the present invention;
FIG. 5 is a flowchart illustrating a process of processing target image file data according to the automatic import file printing method in embodiment 1 of the present invention;
FIG. 5-1 is a logic flow diagram illustrating automatic import according to the method for printing an automatically imported file in embodiment 1 of the present invention;
FIG. 6 is a flowchart illustrating a non-target document processing of the automatic import document printing method according to embodiment 1 of the present invention;
FIG. 6-1 is a schematic diagram illustrating a principle of classified printing of a target image file of an automatic import file printing method according to embodiment 1 of the present invention;
FIG. 7 is a block diagram showing the construction of a printing apparatus according to embodiment 2 of the present invention;
fig. 8 is a schematic configuration diagram of a printing apparatus in embodiment 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. In the description of the present invention, it is to be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, are not to be construed as limiting the present invention. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In case of conflict, it is intended that the embodiments of the present invention and the individual features of the embodiments may be combined with each other within the scope of the present invention.
For convenience of discussion herein, some of the terms herein are to be interpreted as follows:
RGB mode: r represents red, G represents green, and B represents blue;
CMYK mode: c represents cyan, M represents magenta, Y represents yellow, and K represents black;
HSB mode: h represents color, S represents saturation, and B represents brightness.
Example 1:
as shown in fig. 1, embodiment 1 of the present invention discloses an automatic import file printing method, including:
s1: scanning a target folder, and identifying a file to be processed in the target folder;
specifically, a target folder and/or files under the target folder are/is automatically scanned, and newly added files and newly modified files under the target folder are obtained and serve as files to be processed;
s2: acquiring the file attribute of the file to be processed;
specifically, file attributes of one or more files to be processed are sequentially acquired;
s3: identifying a target attribute file in the files to be processed according to the file attributes;
specifically, the file attribute of each file to be processed is compared with the file attribute of the target file, and if the file attributes are the same, the file is marked as the target attribute file to be processed.
S4: screening out a target file from the target attribute file, and importing the target file into a target program;
specifically, automatically scanning files of a target folder and/or subfolders under the target folder, and acquiring newly added files and newly modified files under the target folder as files to be processed; and then sequentially acquiring the file attributes of the files to be processed, wherein the file attributes can be acquired one at a time or can be acquired and hidden at a time, then comparing the file attributes of the files to be processed with the file attributes of the target file, if the attribute file attributes are the same, marking the files to be processed as the target attribute file, screening the target file from the target attribute file, then importing the target file into a target program, and if the files are the printed target files, importing the target files into canvas for RIP (raster format) processing to obtain the print data which can be identified by the printing equipment.
Preferably, S1 through S4 are repeated until the target file is completely imported into the target program.
The embodiment of the invention is suitable for large-batch file import, can reduce errors in manual batch file import, and greatly improves the file import efficiency.
By adopting the method for automatically importing the files, the unprocessed files are obtained by continuously scanning the target file folder and/or the files under the target file folder, the target files are screened from the unprocessed files with the same attributes as the target files according to the attributes of the unprocessed files, and then the unprocessed files are automatically imported into a queue to be processed to wait for processing; the process is repeated until the target file is completely imported, so that the file import efficiency is improved, the problem of high error rate caused by manual import is solved, and the cost is saved.
In one embodiment, a preferred scheme for document scanning is provided;
the step S1 includes scanning the target folder periodically or cyclically, or detecting the capacity of the target folder, and scanning the target folder when the capacity of the target folder changes.
Specifically, the target folder is scanned at regular time, the target folder can be scanned according to the actual condition of the file queue to be processed, and a new target file to be processed is led into the file queue to be processed, so that the file processing efficiency of the file queue to be processed can be ensured, and meanwhile, resource waste is avoided; or scanning the target folder in a cyclic scanning mode, wherein the cyclic mode can be that after the target file is imported into the file queue to be processed, new scanning is carried out on the target folder; after a target file is imported into the queue of files to be processed and the file at the forefront end in the queue of files to be processed is processed, the queue of files to be processed is removed, new scanning is carried out on the target folder, and the action is repeated until all the target files of all the target folders are imported into the queue of files to be processed; however, the present invention is not limited to the scanning method described in the present embodiment.
Or, by scanning the memory of the target folder, whether the memory of the target folder changes is judged, if so, it is indicated that a new file or a processed file exists in the target folder, and then the files in the target folder are further scanned.
By scanning the memory of the target folder, the specific content of the folder is prevented from being directly scanned each time, the data processing amount is reduced, and the scanning efficiency is improved.
The processing efficiency of the file queue to be processed can be always ensured through circular scanning or timing scanning, the utilization rate of resources can be improved, and traffic jam is prevented.
In one embodiment, as shown in FIG. 2, an embodiment is provided for printing a processed document of a document by automatically importing a document printing method;
after said S4, including;
s51: receiving a feedback signal generated after the target file is processed;
s52: acquiring file information corresponding to the target file according to the feedback signal;
s53: and adding the file information to a processed queue.
Specifically, the target file is processed in the target program, and the file information of the processed target file, that is, the file name, file format, file size, and other information of the file are added to the processed queue.
The information of the processed file can be recorded as the reference of the following file, so that the same file can be prevented from being repeatedly recorded or being missed.
In one embodiment, as shown in FIG. 3, an automatic import file printing method is provided;
the S4 includes:
s401: acquiring the file name and modification time of a file in a target attribute file;
s402: comparing the file name and the modification time with file information of a processed file queue to obtain unprocessed files and/or processed and re-modified files in the target attribute file;
s403: and importing the unprocessed file and/or the processed and re-modified file into a file queue to be processed as the target file.
Specifically, a file with the same attribute as the target file is used as the target attribute file, and the file format is mainly the same, that is, the file format is one of the types of the target file, or may be a tag in other forms, such as a file with the same font, and then the file name and the modification time in the target attribute file are sequentially compared with the file in the processed file queue, and whether the file is a new file or a modified file is determined, if so, the file is imported into the file queue to be processed, and if not, the file is not processed.
The target attribute file is screened out by judging the attribute of the file, and then whether the file is the file needing to be processed is judged according to the file name and the modification time of the target attribute file, so that the file importing accuracy is improved, and repeated importing and processing are prevented.
In one embodiment, as shown in FIG. 4, an automatic import file printing method is provided;
the target property file is an image file, and after the S4, the method includes:
s411: acquiring an image processing curve corresponding to an image file and the file volume of single file import;
s412: adjusting the conversion frequency of the image processing curve to convert the image file into corresponding printing data according to the file amount;
s413: and distributing a printing mode to the image file according to the printing requirement corresponding to the printing data.
Specifically, the target image file is processed through a corresponding image processing curve to obtain printing data which can be identified by the printing equipment, and then printing is carried out according to the printing requirement of the target image file to obtain a target image on a printing medium; meanwhile, the single processing amount of the image processing curve can be controlled according to the amount of the imported files, and it can be understood that when the file import amount is large, the amount of each processing of the image processing curve can be increased, or the processing frequency of the image processing curve can be increased, for example, when the file import amount is small, the processing amount of the image processing curve is 100 times per second, and when the file import amount is large, the processing amount of the image processing curve is 200 times per second; the printing files processed by the image processing curve are deleted, so that the file replacement in the target folder is improved, and the automatic import efficiency of the files is accelerated.
The image processing curve comprises an equipment ICC curve and a linear calibration curve, and color information of each pixel point is obtained by traversing each pixel point in a target image file, for example, if the image file is an image in a CMYK mode, a CMYK value of the image is obtained; if The image file is an image in an RGB mode, RGB values of The image are obtained, then a device ICC (International Color Consortium) curve is called to convert Color information of each pixel point into a Color value in a target image file mode corresponding to The printing device, for example, when The image printed by The printing device is an image in a CMYK mode, images in other modes are converted into corresponding C, M, Y, K values, that is, C, M, Y and K are used to represent data of The target image, where C represents cyan, M represents magenta, Y represents yellow, and K represents black, and then a linear calibration curve is called to perform correction processing on The C, M, Y, K value to obtain a final printed image file.
It should be noted that: conversion tables of C, M, Y, K values obtained from images in CMYK mode and C, M, Y, K values obtained from images in RGB mode are set in both the device ICC curve and the linearization calibration curve, and the C, M, Y, K value corresponding to the actual print data is obtained and is marked as C1、Y1、M1And K1
In one embodiment, as shown in FIG. 5, an automatic import file printing method is provided;
the target attribute file is an image file, and the step S411 includes;
s4111: acquiring an original color mode of a target image file to be printed and a printing color mode of printing equipment;
s4112: converting the color mode of a target image file to be printed into a printing color mode which can be printed by the printing equipment to obtain the image file;
s4113: matching an image processing curve according to the print color pattern of the image file.
Specifically, the color mode of the image includes an HSB mode, an RGB mode, a CMYK mode, and the like; in a printer, an image file in CMYK mode is generally printed.
Matching a corresponding image processing curve according to the color mode of the image file for processing, converting image data to be printed into corresponding printing data according to the image processing curve to obtain corresponding pixel point values, ink outlet concentration and other image parameters, then storing the pixel point values in different data channels, and controlling a nozzle to perform ink jet printing according to the corresponding ink outlet concentration and the pixel point values stored in the data channels during printing. For example, if the image file is a 4-color file in RGB format, the image file is imported into image processing software, and processed by an RGB mode 4-color image processing curve, or the RGB mode image is converted into a target color mode file according to the color mode of the file printed by the printer, and then imported into the image processing software, and processed by the target color mode 4-color image processing curve, so as to obtain the value of the pixel point corresponding to the image to be printed and the ink output density of the pixel point. For example, an image file in RGB mode is converted into an image file in CMYK mode, and then processed by an image processing curve for 4 colors in CMYK mode. The image colors may be standard four and six colors; spot colors are also possible; but may also be an image in a grayscale mode, an image in a bitmap mode, and an image in a two-tone mode.
Preferably, the image of the target document can be converted into an image in Lab mode (the Lab mode is a bridge for converting from RGB mode to HSB mode and CMYK mode), and then converted into an image in CMYK mode for printing, so as to ensure the printing effect.
Then, dividing the target files into different categories according to the printing resolution of the target files, and then controlling the spray heads to perform ink jet printing; or classifying according to the imaging requirements of the target file, namely whether white ink is needed or not and whether gloss oil is needed or not; and then controlling the corresponding printing equipment or the spray head to perform ink jet printing. As shown in fig. 5-1, start to scan the target folder, obtain the first file to be processed under the target folder, determine whether the file format is the file in TIF or BMP format required by the print job, if not, returning to scan the target folder again to obtain the next file to be processed, if so, judging whether the file is the target file to be processed, mainly comparing the file name and modification time of the file with the files in the processed file queue, then the target file is imported into image processing software, and then rescanned to obtain the next file to be processed, and after the image processing software finishes processing, sending the information of the file conversion to a printer, printing by the printer according to the information, and repeating the operation to print all the image files to be printed in the target folder.
In one embodiment, as shown in FIG. 6, an embodiment of a duplicate file of a method of automatic import of a print file through a file is provided;
said S4 includes;
s421: acquiring the file name and modification time of a file in a target attribute file;
s422: comparing the file name and the modification time with file information of a processed file queue to obtain a non-target file which is the same as a processed file corresponding to the file information of the processed file queue in the target attribute file;
s423: and deleting the non-target file from the target folder.
Specifically, as shown in fig. 6-1, the printer prints a plurality of patterns under the target file, the printing requirements of each pattern are not completely the same, the automatic import file printing method of the above embodiment is adopted, all the patterns to be printed in the target folder are sequentially imported into the printing software, the import of each pattern needs to be determined, whether the pattern is a repeated image or not is checked, if the pattern is a repeated image, the pattern is not printed, and the pattern is deleted in the target file, specifically, the pattern is compared with the image records printed by the multiple rows of nozzles, if the comparison result is an unprinted pattern, the pattern is sent to the printing software, the printing software is classified according to the printing requirements of the printed patterns, the classification manner includes classifying according to the ink attributes and the pattern resolutions, writing the printing data corresponding to the pattern into the printing queue of the corresponding nozzle according to the classification information, then controlling the corresponding spray heads to perform ink jet printing according to the printing data to obtain a printing image corresponding to the graph;
dividing the spray heads into a spray head for printing white ink, a spray head for printing color ink and a spray head for printing gloss oil according to the ink attribute of the printed image; or the nozzles are divided into nozzles with different printing precisions according to the precision of the printed image.
By comparing the scanned file with the file information in the processed file queue, the deletion of the non-target file can ensure that the target file of the file in the target folder accounts for the proportion of the total storage capacity, the efficiency of scanning the target folder can be improved, the traffic jam is prevented, and the storage space of the folder is released.
By adopting the method for automatically importing files in the embodiment 1, the files in the target folder are automatically scanned to obtain the files to be processed in the target folder, the target files are screened out according to the file attributes, then the target files are further screened out, and the target files are imported into the file queue to be processed, so that manual screening is not needed in the whole process, the import efficiency of the files is improved, and repeated import is prevented;
meanwhile, all images to be printed in the target folder are sequentially imported into printing software in an automatic file importing mode, the images are classified according to requirements of the printed images and then are printed by different spray heads to obtain the printed images, and the automatic importing replaces manual importing in industrial production printing or continuous printing, so that errors of human factors can be eliminated, and meanwhile, importing efficiency and printing efficiency are improved.
Example 2
The present invention also provides a printing apparatus, as shown in fig. 7, including:
a file scanning module: the system comprises a scanning module, a processing module and a processing module, wherein the scanning module is used for scanning a target folder and identifying a file to be processed in the target folder;
a file identification module: the file attribute of the file to be processed is obtained;
a data processing module: the file processing device is used for identifying a target attribute file in the files to be processed according to the file attributes;
a file import module: and the target file is used for screening out a target file from the target attribute file and importing the target file into a target program.
By adopting the device for automatically importing files in the embodiment, unprocessed files are obtained by continuously scanning the target file folder and/or the files under the target file folder, the target files are screened from the unprocessed files with the same attributes as the target files according to the attributes of the unprocessed files, and then the unprocessed files are automatically imported into a queue to be processed to wait for processing; the process is repeated until the target file is completely imported, so that the file import efficiency is improved, the problem of high error rate caused by manual import is solved, and the cost is saved.
In one embodiment, an automatic file importing device is provided;
preferably, the file import module comprises;
a signal feedback unit: receiving a feedback signal generated after the target file is processed;
an information acquisition unit: acquiring file information corresponding to the target file according to the feedback signal;
an information adding unit: and adding the file information to a processed queue.
The information of the processed file can be recorded as the reference of the following file, so that the same file can be prevented from being repeatedly recorded or being missed.
In one embodiment, an automatic file importing device is provided;
preferably, the file import module includes:
a file screening unit: acquiring the file name and modification time of a file in a target attribute file;
a file acquisition unit: comparing the file name and the modification time with file information of a processed file queue to obtain unprocessed files and/or processed and re-modified files in the target attribute file;
a file import unit: and importing the unprocessed file and/or the processed and re-modified file into a file queue to be processed as the target file.
The target attribute file is screened out by judging the attribute of the file, and then whether the file is the file needing to be processed is judged according to the file name and the modification time of the target attribute file, so that the file importing accuracy is improved, and repeated importing and processing are prevented.
In one embodiment, an automatic file importing device is provided;
preferably, the target property file is an image file, and the file import module includes:
a processing curve unit: acquiring an image processing curve corresponding to an image file and the file volume of single file import;
a data conversion unit: adjusting the conversion frequency of the image processing curve to convert the image file into corresponding printing data according to the file amount;
a data allocation unit: and distributing a printing mode to the image file according to the printing requirement corresponding to the printing data.
In one embodiment, an automatic file importing device is provided;
preferably, the processing curve unit includes;
an image mode unit: acquiring an original color mode of a target image file to be printed and a printing color mode of printing equipment;
an image file unit: converting the color mode of a target image file to be printed into a printing color mode which can be printed by the printing equipment to obtain the image file;
a curve matching unit: matching an image processing curve according to the print color pattern of the image file.
In one embodiment, an automatic file importing device is provided;
preferably, the file import module includes:
target file unit: acquiring the file name and modification time of a file in a target attribute file;
a non-target file screening unit: comparing the file name and the modification time with file information of a processed file queue to obtain a non-target file which is the same as a processed file corresponding to the file information of the processed file queue in the target attribute file;
a file deletion unit: and deleting the non-target file from the target folder.
By comparing the scanned file with the file information in the processed file queue, the deletion of the non-target file can ensure that the target file of the file in the target folder accounts for the proportion of the total storage capacity, the efficiency of scanning the target folder can be improved, the traffic jam is prevented, and the storage space of the folder is released.
By adopting the device for automatically importing files in embodiment 2, the files in the target folder are automatically scanned to obtain the files to be processed in the target folder, the target files are screened out according to the file attributes, then the target files are further screened out, and the target files are imported into the file queue to be processed, so that manual screening is not needed in the whole process, the import efficiency of the files is improved, and repeated import is prevented;
meanwhile, all images to be printed in the target folder are sequentially imported into printing software in an automatic file importing mode, the images are classified according to requirements of the printed images and then are printed by different nozzles to obtain the printed images, and the automatic importing replaces manual importing in industrial production printing or continuous printing, so that errors of human factors can be eliminated, and meanwhile, importing efficiency and printing efficiency are improved.
Example 3:
embodiment 3 of the present invention discloses a printing apparatus, as shown in fig. 8, comprising at least one processor, at least one memory, and computer program instructions stored in the memory.
In particular, the processor may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits that may be configured to implement embodiments of the present invention.
The memory may include mass storage for data or instructions. By way of example, and not limitation, memory may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is non-volatile solid-state memory. In a particular embodiment, the memory includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor reads and executes the computer program instructions stored in the memory to implement the method for automatically importing the file in any embodiment 1.
In one example, the printing device may also include a communication interface and a bus. The processor, the memory and the communication interface are connected through a bus and complete mutual communication.
The communication interface is mainly used for realizing communication among modules, devices, units and/or equipment in the embodiment of the invention.
The bus includes hardware, software, or both that couple the components of the printing device to one another. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. A bus may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
Example 4
In addition, in combination with the automatic import file printing method in embodiment 1, an embodiment of the present invention can be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement the method for automatically importing a file according to any one of embodiments 1 above.
In summary, the embodiments of the present invention provide an automatic import file printing method, apparatus, device, and storage medium.
The method comprises the steps of continuously scanning a target folder and/or files under the target folder to obtain unprocessed files, screening the target files from the unprocessed files with the same attributes as the target files according to the attributes of the unprocessed files, then automatically importing the unprocessed files into a queue to be processed, and waiting for processing; the process is repeated until the target file is completely imported, so that the file import efficiency is improved, the problem of high error rate caused by manual import is solved, and the cost is saved.
Meanwhile, the number of the files in the file queue to be processed can be ensured to be in a reasonable range through timing scanning or circulating scanning, the file processing efficiency is ensured, and meanwhile, the flow congestion caused by excessive files is prevented; the target file is led into the queue to be processed in the detection process, the non-target file is compared with the file to be processed, the file which is not needed is automatically deleted, the storage space of the file is released, the processed file is classified according to the printing requirement, and then the processed file is printed by different printing devices, so that the printing efficiency is improved, the whole process is free of human intervention, and the production efficiency is improved.
And comparing the scanned file with the file information in the processed file queue, deleting the non-target file to ensure that the target file of the file in the target folder accounts for the total storage capacity, improving the efficiency of scanning the target folder, preventing the traffic jam and releasing the storage space of the folder.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An automatic import file printing method, characterized in that the method comprises:
s1: scanning a target folder, and identifying a file to be processed in the target folder;
s2: acquiring the file attribute of the file to be processed;
s3: identifying a target attribute file in the files to be processed according to the file attributes;
s4: and screening out a target file from the target attribute file, and importing the target file into a target program.
2. The method for printing an auto-import file according to claim 1, wherein the step S1 includes scanning the target folder periodically or cyclically, or detecting the size of the target folder, and scanning the target folder when the size of the target folder changes.
3. The automatic import file printing method according to claim 1 or 2, comprising, after the S4:
s51: receiving a feedback signal generated after the target file is processed;
s52: acquiring file information corresponding to the target file according to the feedback signal;
s53: and adding the file information to a processed queue.
4. The automatic import file printing method according to claim 3, wherein said S4 comprises:
s401: acquiring the file name and modification time of a file in a target attribute file;
s402: comparing the file name and the modification time with file information of a processed file queue to obtain unprocessed files and/or processed and re-modified files in the target attribute file;
s403: and importing the unprocessed file and/or the processed and re-modified file into a file queue to be processed as the target file.
5. The automatic import file printing method according to claim 3, wherein said target property file is an image file, and after said S4, comprises:
s411: acquiring an image processing curve corresponding to an image file and the file volume of single file import;
s412: adjusting the conversion frequency of the image processing curve to convert the image file into corresponding printing data according to the file amount;
s413: and distributing a printing mode to the image file according to the printing requirement corresponding to the printing data.
6. The automatic import file printing method according to claim 5, wherein the S411 comprises:
s4111: acquiring an original color mode of a target image file to be printed and a printing color mode of printing equipment;
s4112: converting the color mode of a target image file to be printed into a printing color mode which can be printed by the printing equipment to obtain the image file;
s4113: matching an image processing curve according to the print color pattern of the image file.
7. The automatic import file printing method according to claim 4, wherein said S4 comprises:
s421: acquiring the file name and modification time of a file in a target attribute file;
s422: comparing the file name and the modification time with file information of a processed file queue to obtain a non-target file which is the same as a processed file corresponding to the file information of the processed file queue in the target attribute file;
s423: and deleting the non-target file from the target folder.
8. An automatic file importing apparatus, comprising:
a file scanning module: the system comprises a scanning module, a processing module and a processing module, wherein the scanning module is used for scanning a target folder and identifying a file to be processed in the target folder;
a file identification module: the file attribute of the file to be processed is obtained;
a data processing module: the file processing device is used for identifying a target attribute file in the files to be processed according to the file attributes;
a file import module: and the target file is used for screening out a target file from the target attribute file and importing the target file into a target program.
9. A printing apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-7.
10. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-7.
CN202010802842.4A 2020-08-11 2020-08-11 Automatic import file printing method, device, equipment and storage medium Active CN111930324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010802842.4A CN111930324B (en) 2020-08-11 2020-08-11 Automatic import file printing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010802842.4A CN111930324B (en) 2020-08-11 2020-08-11 Automatic import file printing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111930324A true CN111930324A (en) 2020-11-13
CN111930324B CN111930324B (en) 2024-03-22

Family

ID=73310760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010802842.4A Active CN111930324B (en) 2020-08-11 2020-08-11 Automatic import file printing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111930324B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732209A (en) * 2021-01-20 2021-04-30 上海海鹰机械厂 Quick batch printing and auxiliary sorting system
CN113138965A (en) * 2021-05-06 2021-07-20 中国电子科技集团公司第三十八研究所 Storage management method and device based on large file

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6383827A (en) * 1986-09-29 1988-04-14 Matsushita Electric Ind Co Ltd Automatic printing method for picture document stored in optical disk
CN1343063A (en) * 2000-09-13 2002-04-03 惠普公司 Method and device for printing by wireless communication equipment
JP2003131820A (en) * 2001-10-19 2003-05-09 Fuji Photo Film Co Ltd Print system
JP2003216406A (en) * 2002-01-28 2003-07-31 Seiko Epson Corp Image printing system, image printed matter providing method, image delivery device, image printer, and program for printer
JP2005174084A (en) * 2003-12-12 2005-06-30 Fuji Xerox Co Ltd Print processor, and print processing method and program
JP2006011883A (en) * 2004-06-28 2006-01-12 Fuji Photo Film Co Ltd Printing order receiving system
CN101241500A (en) * 2007-02-08 2008-08-13 株式会社理光 Network device, image forming device, and data searching method
JP2010218416A (en) * 2009-03-18 2010-09-30 Seiko Epson Corp Print instruction apparatus and printing system
JP2011095882A (en) * 2009-10-28 2011-05-12 Canon Inc Data processor, image forming device, control method and program
CN102201042A (en) * 2010-03-25 2011-09-28 富士施乐株式会社 Print job data management device, method and printing device
CN102446178A (en) * 2010-09-30 2012-05-09 北大方正集团有限公司 Job file submission method and device adopting same
JP2013114426A (en) * 2011-11-28 2013-06-10 Kyocera Corp Information communication device
CN104898992A (en) * 2014-03-05 2015-09-09 佳能(苏州)系统软件有限公司 Information processing device and method, and printing control system
CN105892958A (en) * 2015-02-18 2016-08-24 株式会社理光 Print control system and method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6383827A (en) * 1986-09-29 1988-04-14 Matsushita Electric Ind Co Ltd Automatic printing method for picture document stored in optical disk
CN1343063A (en) * 2000-09-13 2002-04-03 惠普公司 Method and device for printing by wireless communication equipment
JP2003131820A (en) * 2001-10-19 2003-05-09 Fuji Photo Film Co Ltd Print system
JP2003216406A (en) * 2002-01-28 2003-07-31 Seiko Epson Corp Image printing system, image printed matter providing method, image delivery device, image printer, and program for printer
JP2005174084A (en) * 2003-12-12 2005-06-30 Fuji Xerox Co Ltd Print processor, and print processing method and program
JP2006011883A (en) * 2004-06-28 2006-01-12 Fuji Photo Film Co Ltd Printing order receiving system
CN101241500A (en) * 2007-02-08 2008-08-13 株式会社理光 Network device, image forming device, and data searching method
JP2010218416A (en) * 2009-03-18 2010-09-30 Seiko Epson Corp Print instruction apparatus and printing system
JP2011095882A (en) * 2009-10-28 2011-05-12 Canon Inc Data processor, image forming device, control method and program
CN102201042A (en) * 2010-03-25 2011-09-28 富士施乐株式会社 Print job data management device, method and printing device
CN102446178A (en) * 2010-09-30 2012-05-09 北大方正集团有限公司 Job file submission method and device adopting same
JP2013114426A (en) * 2011-11-28 2013-06-10 Kyocera Corp Information communication device
CN104898992A (en) * 2014-03-05 2015-09-09 佳能(苏州)系统软件有限公司 Information processing device and method, and printing control system
CN105892958A (en) * 2015-02-18 2016-08-24 株式会社理光 Print control system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨祖彬,戴宏民等: "《绿色包装印刷工艺及材料》", 印刷工业出版社, pages: 236 - 239 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732209A (en) * 2021-01-20 2021-04-30 上海海鹰机械厂 Quick batch printing and auxiliary sorting system
CN112732209B (en) * 2021-01-20 2024-02-09 上海海鹰机械厂 Quick batch printing and auxiliary sorting system
CN113138965A (en) * 2021-05-06 2021-07-20 中国电子科技集团公司第三十八研究所 Storage management method and device based on large file
CN113138965B (en) * 2021-05-06 2023-05-02 中国电子科技集团公司第三十八研究所 Storage management method and device based on large file

Also Published As

Publication number Publication date
CN111930324B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US20060001690A1 (en) Image reproduction
US9044952B2 (en) Recording apparatus and recording system
US7581798B2 (en) Printing device, program for controlling printing device, method of controlling printing device, printing data creating device, program for controlling printing data and method of creating printing data
CN110515566B (en) Industrial ink-jet printing preview method, device, equipment and storage medium
CN111930324B (en) Automatic import file printing method, device, equipment and storage medium
US8538086B2 (en) Image inspection apparatus, image inspection method, and computer program product
CN114889329B (en) Printer ink quantity adjusting method, device, equipment and storage medium
JP2014124822A (en) Print controller, and program
US20180147833A1 (en) Printing control apparatus, printing control method, and medium storing printing control program
US20120314260A1 (en) Image processing device and image processing method
JP2013084071A (en) Form recognition method and form recognition device
CN111098601B (en) Recording control device, recording device, and recording control method
JPH11238130A (en) Removal of non-text information from color image
JP2010221463A (en) Serial printer
JP2009202437A (en) Printing controlling apparatus, printing controlling method and printing controlling program
US20180174271A1 (en) Image processing apparatus, image processing method, and storage medium
CN115686388A (en) Cloud platform printing method, device, equipment and storage medium
JP2010042634A (en) Printed image inspecting device and printing method
CN113320291B (en) Data processing method, device, equipment and medium for printing color uniform image
CN111845099B (en) Method, device, equipment and medium for setting white ink quantity of printer
JP2012111183A (en) Recording apparatus, and recording method
CN115071286A (en) Automatic adjustment method, device and equipment for emergence template and storage medium
JP2021154683A (en) Specifying method of attribute of ink set, specifying device of attribute of ink set and computer program
CN114103439B (en) Method, device and equipment for printing images with differentiated precision and storage medium
US7140710B2 (en) Dot management for an imaging apparatus

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 a201-a301, building a, Sino German European Industrial Demonstration Park, Hangcheng Avenue, guxing community, Xixiang street, Bao'an District, Shenzhen, Guangdong

Applicant after: Shenzhen Hansen Software Co.,Ltd.

Address before: 1701, 1703, building C6, Hengfeng Industrial City, 739 Zhoushi Road, Hezhou community, Hangcheng street, Bao'an District, Shenzhen, Guangdong 518000

Applicant before: SHENZHEN HOSONSOFT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant