CN109255416A - Bar code printing method, apparatus and control device - Google Patents
Bar code printing method, apparatus and control device Download PDFInfo
- Publication number
- CN109255416A CN109255416A CN201811079733.3A CN201811079733A CN109255416A CN 109255416 A CN109255416 A CN 109255416A CN 201811079733 A CN201811079733 A CN 201811079733A CN 109255416 A CN109255416 A CN 109255416A
- Authority
- CN
- China
- Prior art keywords
- file
- bar code
- picture
- printed
- picture format
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J29/00—Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
- B41J29/38—Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The present invention provides a kind of bar code printing method, apparatus and control devices, are related to the technical field of computer, comprising: obtain the corresponding picture format file of file to be printed;Bar code picture is converted by the audit information of file to be printed;Audit information includes at least following one: task serial number, task level of confidentiality or the file name of file to be printed;Bar code picture is added to picture format file, to generate output file;Print out file.After obtaining the corresponding picture format file of file to be printed, the bar code picture that audit information converts can be added to picture format file, obtain and print out file, the efficiency of confidential document recycling and classification after printing can be improved.
Description
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of bar code printing method, apparatus and control device.
Background technique
Bar code is also referred to as bar code, is the multiple secret notes and blank for not waiting width, arranges according to certain coding rule,
To express the graphical identifier of a group information.Common bar code is that the secret note to be differed greatly by reflectivity and informal voucher are lined up
Pattern of parallel lines.Bar code can mark the producing country of article, manufacturing firm, product name, the date of manufacture, book classification number,
Many information such as mail start-stop place, classification, date, thus in commodity circulation, taking care of books, postal management, banking system etc.
Many fields are widely used.
Currently, user increasingly pays close attention to the audit of confidential document, in a timing after confidential document is printed
It is interior to need to be recovered, it is close to prevent stopping leak.But for the confidential document after printing, generally require and manually recycled, it searches
It recycles the date and filing position carries out classification recycling, needs to consume long time and the efficiency for recycling and classifying is very low.
The problem low with classification effectiveness is recycled for the confidential document after above-mentioned printing in the prior art, is not yet proposed at present
Effective solution.
Summary of the invention
In view of this, being beaten the purpose of the present invention is to provide a kind of bar code printing method, apparatus and control device with increasing
The efficiency of confidential document recycling and classification after print.
In a first aspect, the embodiment of the invention provides a kind of bar code printing methods, comprising: it is corresponding to obtain file to be printed
Picture format file;Bar code picture is converted by the audit information of file to be printed;Audit information includes at least following one: to
Task serial number, task level of confidentiality or the file name of mimeograph documents;Bar code picture is added to picture format file, it is defeated to generate
File out;Print out file.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein obtains
Take the corresponding picture format file of file to be printed, comprising: obtain file to be printed, and convert file to be printed to corresponding
Picture format file;Or, receiving the corresponding picture format file of file to be printed.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the invention provides first party
The possible embodiment of second of face, wherein convert bar code picture for the audit information of mimeograph documents, comprising: obtain and examine
Count the corresponding character string of information;Bar code picture is converted by character string.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the third of first aspect
Possible embodiment, wherein convert bar code picture for character string, comprising: will by Qt Development Framework and Zint static library
Character string is converted into bar code picture.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the invention provides first party
The 4th kind of possible embodiment in face, wherein bar code picture is added to picture format file, to generate output file, packet
It includes: determining the bar code paste position of picture format file;Bar code picture is affixed into bar code paste position, to generate output text
Part.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the invention provides first party
The 5th kind of possible embodiment in face, wherein printout file, comprising: directly printout file;Or, will output text
Part is converted into the output file of layout, and prints the output file of layout.
Second aspect, the embodiment of the present invention also provide a kind of bar code printing device, comprising: obtain module, for obtain to
The corresponding picture format file of mimeograph documents;
Bar code module, for converting bar code picture for the audit information of file to be printed;Audit information include at least with
It is one of lower: task serial number, task level of confidentiality or the file name of file to be printed;Adding module, for adding bar code picture
To picture format file, to generate output file;Print module, for printing out file.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein also
Include: acquisition module, is also used to obtain file to be printed, and convert corresponding picture format file for file to be printed;Or,
Receive the corresponding picture format file of file to be printed.
In conjunction with the possible embodiment of the first of second aspect or second aspect, the embodiment of the invention provides second party
The possible embodiment of second of face, wherein further include: character string module, for obtaining the corresponding character string of audit information;
Bar code conversion module, for converting bar code picture for character string.
The third aspect, the embodiment of the present invention also provide a kind of bar code printing control device, wherein and device includes processor,
Memory, bus and communication interface, processor, communication interface and memory are connected by bus;Memory is for storing program;
Processor executes first aspect and its each possible embodiment for calling program stored in memory by bus
One of provide method.
The embodiment of the present invention bring it is following the utility model has the advantages that
Bar code printing method, apparatus provided in an embodiment of the present invention and control device, obtaining, file to be printed is corresponding
After picture format file, the bar code picture that audit information converts can be added to picture format file, obtain and print out
The efficiency of confidential document recycling and classification after printing can be improved in file.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be with
Deduce from specification or unambiguously determine, or by implement the disclosure above-mentioned technology it can be learnt that.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of bar code printing method provided in an embodiment of the present invention;
Fig. 2 is the flow chart that a kind of audit information provided in an embodiment of the present invention converts bar code picture approach;
Fig. 3 is the flow chart of another bar code printing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of bar code printing device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of bar code printing control device provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, user increasingly pays close attention to the audit of confidential document, in a timing after confidential document is printed
It is interior to need to be recovered, it is close to prevent stopping leak.But for the confidential document after printing, generally require and manually recycled, it searches
It recycles the date and filing position carries out classification recycling, needs to consume long time and the efficiency for recycling and classifying is very low.
Based on this, a kind of bar code printing method, apparatus provided in an embodiment of the present invention and control device are corresponding obtaining file to be printed
Picture format file after, by audit information convert bar code picture be added to picture format file, obtain and print out text
Part can increase the efficiency of confidential document recycling and classification after printing.
For convenient for understanding the present embodiment, first to a kind of bar code printing method disclosed in the embodiment of the present invention into
Row is discussed in detail.
Embodiment 1
The embodiment of the present invention 1 provides a kind of bar code printing method, a kind of stream of bar code printing method shown in Figure 1
Cheng Tu includes the following steps:
Step S102 obtains the corresponding picture format file of file to be printed.
File to be printed is generally confidential document, and picture format is corresponding with file to be printed, can be common picture
Format, such as: jpg (Joint Photographic Experts GROUP, joint photographic experts group), png (Portable
Network Graphics, portable network figure), bmp (Bitmap, bitmap file) etc..Obtain picture format file
Method, which can be, to be directly obtained, and can also convert picture format file for file to be printed by format conversion software.
The audit information of file to be printed is converted bar code picture by step S104.
Audit information at least may include following one: task serial number, task level of confidentiality or the filename of file to be printed
Claim.Audit information refers to the information that needs to use in the audit process that confidential document recycles and classifies, and audit information can be with
Include: number, number of pages, submitter or the output people of file to be printed, is recycled and divided with can be convenient by audit information
Class prevents hidden danger of divulging a secret.Bar code picture is generally bar code, and being also possible to two dimensional code or two-dimensional bar etc. may include information
And the picture of recognition allowing device identification.
Bar code picture is added to picture format file, to generate output file by step S106.
Addition, which refers to, pastes bar code picture on picture format file, and the position of stickup can be with sets itself, bar code figure
The size of piece can be modified according to paste position, as long as can be identified with recognition allowing device.The picture of bar code picture will be added
Formatted file is known as output file.
Step S108 prints out file.
Output file is exactly the confidential document containing audit information, can be identified by identification device after printing, reads and examines
Information is counted, determines the time of recycling and classification.
The above method provided in an embodiment of the present invention can be with after obtaining the corresponding picture format file of file to be printed
The bar code picture that audit information converts is added to picture format file, file is obtained and print out, after printing can be improved
The efficiency of confidential document recycling and classification.
Above-mentioned picture format file, can be by directly obtaining picture format file, also by can be by layout
File to be printed is converted into picture format acquisition.For example, can execute according to the following steps: obtaining file to be printed, and will be to
Mimeograph documents are converted into corresponding picture format file;Or, receiving the corresponding picture format file of file to be printed.
It receives the corresponding picture format file of file to be printed and refers to file to be printed inherently picture format file, or
Person's file to be printed includes the copy of picture format, can obtain the corresponding figure of file to be printed by direct received mode
Piece formatted file, without carrying out file to be printed format conversion;File to be printed is obtained, and converts correspondence for file to be printed
Picture format file refer to that file to be printed is not picture format file, also not including has the copy of picture format.One
As for file to be printed common format be doc (document, document), pdf (portable document format,
Portable document format) or ps (postscript) format.
For converting the picture file of png format for the file to be printed of ps format, the cupsd under Linux environment
Print service can export the file to be printed of ps format, and under linux and Qt Development Framework, system can not be directly to ps format
File is arbitrarily changed, and picture type conversion may be implemented using ImageMagick photo handling software and image content closes
At converting picture format file for the file to be printed of ps format by ImageMagick photo handling software.Selection uses
The conversion function of picture is realized in the convert order of ImageMagick software library, and ps formatted file is converted to corresponding number of pages
Png picture.For example, can be executed by following steps: png picture is converted by ps formatted file using convert order, it is right
The code answered are as follows: convert-density 150-alphaset-channel A-evaluate set 100%1.ps
1.png
The above method provided in an embodiment of the present invention, picture format file can by directly obtaining picture format file,
It is obtained also by the file to be printed of layout can be converted to picture format.
Bar code picture is converted by the audit information of mimeograph documents, audit information is expressed in the form of character string, referring to fig. 2
Shown in a kind of audit information conversion bar code picture approach flow chart, include the following steps:
Step S202 obtains the corresponding character string of audit information.
For character string by number, letter, a string of characters forming of underscore, the character in character string can correspond to other letters
Breath.Character string may include audit information, comprising: task serial number, task level of confidentiality, file name, number, number of pages, submitter,
Export people etc..Character string customized can also be manually entered.
Character string is converted bar code picture by step S204.
Bar code picture is converted by character string by Qt Development Framework and Zint static library.Qt is that cross-platform C++ figure is used
Family interface application Development Framework.Zint static library is that a coding generates Open-Source Tools, is developed, is supported based on C language
Code 128, Data Matrix, USPS OneCode, EAN-128, UPC/EAN, ITF, QR Code, Code 16k,
The various code systems such as PDF417, MicroPDF417, LOGMARS, Maxicode, GS1DataBar, Aztec, using BSD and GPLv3
Authorization.For converting bar code for character string, it can be executed by following steps:
(1) Zint source code and libpng source code are compiled, libZint.a static library is generated, is used in printout module
LIBS+=is loaded.(2) include zint.h, the generation of bar code picture under QT is carried out using following code.It can be by following
Code executes:
Struct zint_symbol*my_symbol=ZBarcode_Create ();
My_symbol- > symbology=BARCODE_CODE11;
Char*testvalue=" ./test.png ";
Strcpy (my_symbol- > outfile, testvalue);
ZBarcode_Encode (my_symbol, (unsigned char*) " 12345678 ", 0);
ZBarcode_Print (my_symbol, 0);
ZBarcode_Delete(my_symbol);
In addition, BARCODE_CODE11/BARCODE_PDF417/BARCODE_QRCODE can specify the bar code class of generation
Type also can choose that is, other than generating bar code and generate other kinds of bar code, such as two dimensional code or two-dimensional bar.
The above method provided in an embodiment of the present invention can convert bar code picture for the audit information of mimeograph documents, examine
Meter information is expressed in the form of character string.
Bar code picture is added to picture format file, to generate output file, is needed in the specified of picture format file
Bar code picture is pasted in position, for example, can be executed by following steps:
(1) the bar code paste position of picture format file is determined.
Bar code paste position can be any position of picture format file, in general, can select blank position as
Bar code paste position.If selecting non-blank-white position as bar code paste position, bar code identification difficulty or nothing may result in
Method identification.The size of paste position can be with manual setting, as long as guaranteeing that the bar code after pasting can be identified.
(2) bar code picture is affixed into bar code paste position, to generate output file.
Bar code paste functionality is realized in the composite order that ImageMagick software library can be used, by bar code picture
For pasting in the picture file of png format, it can be executed by following steps:
Bar code picture generated above is pasted using composite order in PNG picture designated position.It can be by following
Code executes: composite test.png-density 150-resize 100%-gravity north-geometry+0
+0 1.png 1.png。
The above method provided in an embodiment of the present invention pastes bar code picture in the designated position of picture format file, by item
Code picture is added to picture format file, to generate output file.
File is printed out, the output file of picture format can be directly printed, also by can be by the defeated of picture format
The output file that file is converted into layout out is being printed.For example, can execute according to the following steps: directly printing defeated
File out;Or, converting output file to the output file of layout, and print the output file of layout.
If printer supports printing picture format, file can be directly printed out;If printer is not supported to print
Picture format, it is necessary to convert mimeograph documents to the output file of the layout of printer support.It is beaten with the cupsd of Linux
Print service, output file is for png file, needing the output file by png format to be converted into ps format can just be beaten
Print can carry out the conversion of format by ImageMagick photo handling software, and convert order, which can be used, to be pasted
The file synthesis of bar code picture is ps file, is sent to printer and is exported.It can be executed by following code: convert
1.png+compress 1.ps。
The above method provided in an embodiment of the present invention prints out file, can directly print the output text of picture format
Part is being printed also by the output file that can convert the output file of picture format to layout.
A kind of bar code printing method provided in this embodiment, after obtaining the corresponding picture format file of file to be printed,
The bar code picture that audit information converts can be added to picture format file, obtain and print out file.Picture format text
Part can be by directly obtaining picture format file, also by can convert picture format for the file to be printed of layout
It obtains.Bar code picture is converted by the audit information of mimeograph documents, audit information is expressed in the form of character string.In picture format
Bar code picture is pasted in the designated position of file, bar code picture is added to picture format file, to generate output file.It prints defeated
File out can directly print the output file of picture format, beat also by that can convert the output file of picture format to
The output file of grid printing formula is being printed.The efficiency of confidential document recycling and classification after printing can be improved.
Embodiment 2
The embodiment of the present invention 2 provides a kind of bar code printing method, the stream of another bar code printing method shown in Figure 3
Cheng Tu includes the following steps:
Step S302 receives the print command that user sends.
Print command includes whether to need to print the information of bar code.
Step S304 judges whether to need to print bar code, if so, executing step S306;If not, executing step
S314。
Judge whether to need to print bar code according to print command.If necessary to print bar code, printed after just first printing bar code;
If you do not need to printing bar code, just directly prints.
Step S306 calls convert order that ps file is converted to png picture.
The conversion that picture is realized using the convert order of ImageMagick software library, the file of ps format is converted to
The picture of png format.
Step S308 calls the library Zint to generate bar code picture.
Bar code picture is converted by character string by Qt Development Framework and Zint static library.
Step S310 calls composite order to paste the bar code picture of generation on png picture.
Bar code paste functionality is realized using the composite order of ImageMagick software library
Step S312 calls convert to convert png picture as ps file.
Ps file is converted using the convert order of ImageMagick software library by the png picture after stickup.
Step S314 sends ps file and to printer and prints.
Printer is sent by ps file to print.
A kind of bar code printing method provided in this embodiment, judges whether to need to print bar code according to print command, if
It is no, directly print;If so, bar code is pasted png lattice after converting the mimeograph documents of ps format in the picture of png format
The mimeograph documents that ps format is re-converted on the picture of formula are printed, and confidential document recycling and classification after printing can be increased
Efficiency.
Embodiment 3
The embodiment of the present invention provides a kind of bar code printing device, a kind of structure of bar code printing device shown in Figure 4
Schematic diagram, including module 41, bar code module 42, adding module 43, print module 44 are obtained, the function of above-mentioned each module is as follows:
Module 41 is obtained, for obtaining the corresponding picture format file of file to be printed;
Bar code module 42, for converting bar code picture for the audit information of file to be printed;Audit information includes at least
Following one: task serial number, task level of confidentiality or the file name of file to be printed;
Adding module 43, for bar code picture to be added to picture format file, to generate output file;
Print module 44, for printing out file.
Above-mentioned apparatus further include: obtain module, be also used to obtain file to be printed, and convert correspondence for file to be printed
Picture format file;Or, receiving the corresponding picture format file of file to be printed.
Above-mentioned apparatus further include:
Character string module, for obtaining the corresponding character string of audit information.
Bar code conversion module, for converting bar code picture for character string.
It is apparent to those skilled in the art that for convenience and simplicity of description, the bar code of foregoing description
The specific work process of printing equipment, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Bar code printing device provided in an embodiment of the present invention has identical with bar code printing method provided by the above embodiment
Technical characteristic reach identical technical effect so also can solve identical technical problem.
Embodiment 4
Referring to a kind of structural schematic diagram of bar code printing control device of Fig. 5, the embodiment of the invention also provides a kind of
Code print control unit 100, comprising: processor 50, memory 51, bus 52 and communication interface 53, processor 50, communication interface
53 and memory 51 connected by bus 52;Processor 50 is used to execute the executable module stored in memory 51, such as counts
Calculation machine program.
Wherein, memory 51 may include high-speed random access memory (RAM, Random Access Memory),
It may further include nonvolatile storage (non-volatile memory), for example, at least a magnetic disk storage.Pass through at least one
A communication interface 53 (can be wired or wireless) realizes the communication link between the system network element and at least one other network element
It connects, internet, wide area network, local network, Metropolitan Area Network (MAN) etc. can be used.
Bus 52 can be isa bus, pci bus or eisa bus etc..It is total that bus can be divided into address bus, data
Line, control bus etc..Only to be indicated with a four-headed arrow in Fig. 5, it is not intended that an only bus or one convenient for indicating
The bus of seed type.
Wherein, memory 51 is for storing program, and processor 50 executes program after receiving and executing instruction, and aforementioned
Method performed by the device that the stream process that inventive embodiments any embodiment discloses defines can be applied in processor 50, or
Person is realized by processor 50.
Processor 50 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 50 or the instruction of software form.Above-mentioned
Processor 50 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 51, and processor 50 reads the information in memory 51, in conjunction with
Its hardware completes the step of above method.
It carries out carrying bar code printing method, apparatus provided by the embodiment of the present invention and the computer program of control device produces
Product, the computer readable storage medium including storing the executable non-volatile program code of processor, said program code
Including instruction can be used for executing previous methods method as described in the examples, specific implementation can be found in embodiment of the method, herein
It repeats no more.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of bar code printing method characterized by comprising
Obtain the corresponding picture format file of file to be printed;
Bar code picture is converted by the audit information of the file to be printed;The audit information includes at least following one: institute
State task serial number, task level of confidentiality or the file name of file to be printed;
The bar code picture is added to the picture format file, to generate output file;
Print the output file.
2. the method according to claim 1, wherein obtaining the corresponding picture format file of file to be printed, packet
It includes:
File to be printed is obtained, and converts corresponding picture format file for the file to be printed;Or,
Receive the corresponding picture format file of the file to be printed.
3. method according to claim 1 or 2, which is characterized in that convert item for the audit information of the mimeograph documents
Code picture, comprising:
Obtain the corresponding character string of the audit information;
Bar code picture is converted by the character string.
4. according to the method described in claim 3, it is characterized in that, converting bar code picture for the character string, comprising:
Bar code picture is converted by the character string by Qt Development Framework and Zint static library.
5. method according to claim 1 or 2, which is characterized in that the bar code picture is added to the picture format
File, to generate output file, comprising:
Determine the bar code paste position of the picture format file;
The bar code picture is affixed into the bar code paste position, to generate output file.
6. method according to claim 1 or 2, which is characterized in that print the output file, comprising:
Directly print the output file;Or,
It converts the output file to the output file of layout, and prints the output file of the layout.
7. a kind of bar code printing device characterized by comprising
Module is obtained, for obtaining the corresponding picture format file of file to be printed;
Bar code module, for converting bar code picture for the audit information of the file to be printed;The audit information at least wraps
Include following one: task serial number, task level of confidentiality or the file name of the file to be printed;
Adding module, for the bar code picture to be added to the picture format file, to generate output file;
Print module, for printing the output file.
8. device according to claim 7, which is characterized in that further include:
The acquisition module is also used to obtain file to be printed, and converts corresponding picture format for the file to be printed
File;Or, receiving the corresponding picture format file of the file to be printed.
9. device according to claim 7 or 8, which is characterized in that further include:
Character string module, for obtaining the corresponding character string of the audit information;
Bar code conversion module, for converting bar code picture for the character string.
10. a kind of bar code printing control device, which is characterized in that described device includes processor, and memory, bus and communication connect
Mouthful, the processor, communication interface and memory are connected by the bus;
The memory is for storing program;
The processor executes the claim for calling the program of storage in the memory by the bus
Any the method for 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811079733.3A CN109255416A (en) | 2018-09-14 | 2018-09-14 | Bar code printing method, apparatus and control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811079733.3A CN109255416A (en) | 2018-09-14 | 2018-09-14 | Bar code printing method, apparatus and control device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109255416A true CN109255416A (en) | 2019-01-22 |
Family
ID=65048333
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811079733.3A Pending CN109255416A (en) | 2018-09-14 | 2018-09-14 | Bar code printing method, apparatus and control device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109255416A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112496553A (en) * | 2020-11-20 | 2021-03-16 | 航天信息股份有限公司 | Method and system for printing card based on printing template |
CN114265566A (en) * | 2021-12-24 | 2022-04-01 | 上海汉图科技有限公司 | Printing method, printing device, electronic equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682373A (en) * | 2012-05-17 | 2012-09-19 | 北京立思辰计算机技术有限公司 | Recovery method of security relating disc |
CN103336923A (en) * | 2013-03-06 | 2013-10-02 | 西安电子科技大学 | Print monitoring system and method for universal printer |
CN104809388A (en) * | 2015-04-30 | 2015-07-29 | 北京立思辰计算机技术有限公司 | Method and device for tracing information source of copied document as well as information security type copier |
-
2018
- 2018-09-14 CN CN201811079733.3A patent/CN109255416A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102682373A (en) * | 2012-05-17 | 2012-09-19 | 北京立思辰计算机技术有限公司 | Recovery method of security relating disc |
CN103336923A (en) * | 2013-03-06 | 2013-10-02 | 西安电子科技大学 | Print monitoring system and method for universal printer |
CN104809388A (en) * | 2015-04-30 | 2015-07-29 | 北京立思辰计算机技术有限公司 | Method and device for tracing information source of copied document as well as information security type copier |
Non-Patent Citations (2)
Title |
---|
刘豪: "基于二维码的自动化立体仓库管理系统及AGV控制器研制", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 * |
蔡伟文: "基于CUPS架构的打印管控系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112496553A (en) * | 2020-11-20 | 2021-03-16 | 航天信息股份有限公司 | Method and system for printing card based on printing template |
CN114265566A (en) * | 2021-12-24 | 2022-04-01 | 上海汉图科技有限公司 | Printing method, printing device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4959719B2 (en) | Method and system for acquiring simulation parameters in invisible code printing support system | |
ES2442745T3 (en) | Two-dimensional barcode coding method, decoding method and device, terminal | |
US7965422B2 (en) | Super resolution encoded microprinting through postscript | |
WO2010015184A1 (en) | Generating method, decoding method and device of 2-dimensional barcode | |
GB2386784A (en) | Image encryption using an affixed tag to identify a public key | |
US9270852B2 (en) | Image processing apparatus | |
CN109255416A (en) | Bar code printing method, apparatus and control device | |
CN101122845A (en) | Variable data print-out method and device | |
CN112257396A (en) | Mobile phone end auxiliary form filling method based on artificial intelligence technology | |
JP5844564B2 (en) | Form recognition system | |
CN114898373A (en) | File desensitization method and device, electronic equipment and storage medium | |
CN107944525A (en) | A kind of method and system of the expansion Quick Response Code capacity based on data segmentation | |
US8983194B2 (en) | Information processing system, information processing method, and non-transitory computer readable medium | |
CN107015959A (en) | A kind of method that version is closed to pdf document | |
CN103895386B (en) | Method for stitching and device | |
CN105844274A (en) | Automatic image identification method | |
CN109960476A (en) | A kind of electronic invoice Method of printing, equipment and system | |
CN111461099A (en) | Bill identification method, system, equipment and readable storage medium | |
JP2021138011A (en) | Image processing apparatus | |
Chen et al. | Research and realization of encoding on QR code | |
CN109947413A (en) | A kind of book lending system and design method based on wechat | |
JP3513806B2 (en) | Real estate registration information filing system | |
CN113448522B (en) | Variable data printing output method and device, terminal equipment and readable storage medium | |
JP2006270747A (en) | Variable data processor and variable data processing system | |
TW202236184A (en) | Reference document generation method and system wherein the reference document generation system includes a storage module and a processing module and is suitable for generating at least one reference document according to an electronic file |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190122 |
|
RJ01 | Rejection of invention patent application after publication |