CN113971009A - Label printing method and device, electronic equipment and storage medium - Google Patents
Label printing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113971009A CN113971009A CN202111234745.0A CN202111234745A CN113971009A CN 113971009 A CN113971009 A CN 113971009A CN 202111234745 A CN202111234745 A CN 202111234745A CN 113971009 A CN113971009 A CN 113971009A
- Authority
- CN
- China
- Prior art keywords
- configuration
- information
- label
- configuration information
- target
- 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
- 238000007639 printing Methods 0.000 title claims abstract description 103
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000003860 storage Methods 0.000 title claims abstract description 17
- 238000004590 computer program Methods 0.000 claims description 18
- 230000006870 function Effects 0.000 description 11
- 238000004519 manufacturing process Methods 0.000 description 9
- 238000011161 development Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1206—Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1238—Secure printing, e.g. user identification, user rights for device usage, unallowed content, blanking portions or fields of a page, releasing held jobs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1242—Image or content composition onto a page
- G06F3/1243—Variable data printing, e.g. document forms, templates, labels, coupons, advertisements, logos, watermarks, transactional printing, fixed content versioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1244—Job translation or job parsing, e.g. page banding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1257—Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
- G06K15/18—Conditioning data for presenting it to the physical printing elements
- G06K15/1801—Input data handling means
- G06K15/181—Receiving print data characterized by its formatting, e.g. particular page description languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
- G06K15/18—Conditioning data for presenting it to the physical printing elements
- G06K15/1848—Generation of the printable image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/40—Details not directly involved in printing, e.g. machine management, management of the arrangement as a whole or of its constitutive parts
- G06K15/4095—Secure printing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- Record Information Processing For Printing (AREA)
Abstract
The application is applicable to the technical field of electronics, and provides a label printing method, a label printing device, electronic equipment and a storage medium, wherein the label printing method comprises the following steps: acquiring configuration information, wherein the configuration information comprises first configuration information corresponding to a tag main body and second configuration information corresponding to a tag description text; generating target subject information according to the first configuration information; generating target description text information according to the second configuration information; and outputting the target main body information and the target description text information to a printing device together for printing to obtain a target label. The embodiment of the application can flexibly and conveniently realize label printing.
Description
Technical Field
The present application belongs to the field of electronic technologies, and in particular, to a label printing method and apparatus, an electronic device, and a storage medium.
Background
In daily production development, according to different requirements, a plurality of different label printing application programs are often required to be developed and are respectively used for printing labels with different display format requirements. In this way, each time the requirement of the label display format is changed, a corresponding label printing application program needs to be developed, which results in high communication cost and development cost and low label printing efficiency.
Disclosure of Invention
In view of this, embodiments of the present application provide a label printing method, an apparatus, an electronic device, and a storage medium, so as to solve the problem of how to flexibly and conveniently print a label in the prior art.
A first aspect of an embodiment of the present application provides a label printing method, including:
acquiring configuration information, wherein the configuration information comprises first configuration information corresponding to a tag main body and second configuration information corresponding to a tag description text;
generating target subject information according to the first configuration information;
generating target description text information according to the second configuration information;
and outputting the target main body information and the target description text information to a printing device together for printing to obtain a target label.
Optionally, the target tag is a two-dimensional code tag, the first configuration information includes configuration item information of a two-dimensional code link and a middle icon, and the second configuration information includes configuration item information describing text content and a text language type.
Optionally, the method further comprises:
acquiring a configuration instruction;
and generating configuration information according to the configuration instruction.
Optionally, the configuration instruction is an instruction for editing a configuration file, and correspondingly, the generating configuration information according to the configuration instruction includes:
and editing and generating configuration information in the configuration file according to the configuration instruction, and storing the configuration file.
Optionally, the configuration instruction is an instruction for editing configuration item information on a configuration interface, and correspondingly, generating configuration information according to the configuration instruction includes:
editing information of each configuration item on a configuration interface according to the configuration instruction;
and generating configuration information according to the information of each configuration item.
Optionally, the obtaining the configuration instruction includes:
and if the target label is detected not to accord with the preset condition, acquiring a configuration instruction.
Optionally, the obtaining the configuration instruction includes:
acquiring identity authentication information input by a user;
and if the identity authentication information passes the authentication, acquiring a configuration instruction.
A second aspect of an embodiment of the present application provides a label printing apparatus, including:
the tag comprises an acquisition unit, a storage unit and a display unit, wherein the acquisition unit is used for acquiring configuration information, and the configuration information comprises first configuration information corresponding to a tag main body and second configuration information corresponding to a tag description text;
the first generating unit is used for generating target subject information according to the first configuration information;
the second generating unit is used for generating target description text information according to the second configuration information;
and the output unit is used for outputting the target main body information and the target description text information to a printing device together for printing to obtain a target label.
Optionally, the target tag is a two-dimensional code tag, the first configuration information includes configuration item information of a two-dimensional code link and a middle icon, and the second configuration information includes configuration item information describing text content and a text language type.
Optionally, the label printing apparatus further includes:
the configuration unit is used for acquiring a configuration instruction; and generating configuration information according to the configuration instruction.
Optionally, the configuration instruction is an instruction for editing a configuration file, and correspondingly, in the configuration unit, the generating configuration information according to the configuration instruction includes: and editing and generating configuration information in the configuration file according to the configuration instruction, and storing the configuration file.
Optionally, the configuration instruction is an instruction for editing configuration item information on a configuration interface, and correspondingly, in the configuration unit, the generating configuration information according to the configuration instruction includes: editing information of each configuration item on a configuration interface according to the configuration instruction; and generating configuration information according to the information of each configuration item.
Optionally, the configuration unit is specifically configured to obtain a configuration instruction if it is detected that the target tag does not meet the preset condition.
Optionally, in the configuration unit, the obtaining a configuration instruction includes: acquiring identity authentication information input by a user; and if the identity authentication information passes the authentication, acquiring a configuration instruction.
A third aspect of embodiments of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, which when executed by the processor, causes the electronic device to implement the steps of the label printing method as described.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes an electronic device to implement the steps of the label printing method as described.
A fifth aspect of embodiments of the present application provides a computer program product, which, when run on an electronic device, causes the electronic device to execute the label printing method according to any one of the first aspects.
Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, configuration information is obtained, target main body information is generated according to first configuration information corresponding to a tag main body in the configuration information, and target description text information is generated according to second configuration information corresponding to a tag description text; and then, the target main body information and the target description text information are output to a printing device together for printing to obtain the target label. The current configuration information can be flexibly acquired each time the label is printed, the target main body information is flexibly generated according to the first configuration information, and the target description text information is flexibly generated according to the second configuration information, so that the target label corresponding to the configuration information can be flexibly generated according to the target main body information and the target description text information. That is, label printing is flexibly and conveniently realized according to the current configuration information under the condition of not developing a new label printing application program, development cost is reduced, label customization efficiency is improved, and production and maintenance are facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below.
Fig. 1 is a schematic flow chart illustrating an implementation of a label printing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a label printing apparatus according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In daily production development, according to different requirements, a plurality of different label printing application programs are often required to be developed and are respectively used for printing labels with different display format requirements. In this way, each time the requirement of the label display format is changed, a corresponding label printing application program needs to be developed, which results in high communication cost and development cost and low label printing efficiency.
In order to solve the foregoing technical problem, an embodiment of the present application provides a label printing method, an apparatus, an electronic device, and a storage medium, including: acquiring configuration information, wherein the configuration information comprises first configuration information corresponding to a tag main body and second configuration information corresponding to a tag description text; generating target subject information according to the first configuration information; generating target description text information according to the second configuration information; and outputting the target main body information and the target description text information to a printing device together for printing to obtain a target label.
The current configuration information can be flexibly acquired each time the label is printed, the target main body information is flexibly generated according to the first configuration information, and the target description text information is flexibly generated according to the second configuration information, so that the target label corresponding to the configuration information can be flexibly generated according to the target main body information and the target description text information. That is, label printing is flexibly and conveniently realized according to the current configuration information under the condition of not developing new label printing software, so that the development cost is reduced, the label customization efficiency is improved, and the production and maintenance are facilitated.
The first embodiment is as follows:
fig. 1 shows a schematic flow chart of a label printing method provided in an embodiment of the present application, where the label printing method is applied to an electronic device, which includes but is not limited to a computer, a mobile terminal, or a printer directly with an interactive function. The label printing method as described in fig. 1 is detailed as follows:
in S101, configuration information is obtained, where the configuration information includes first configuration information corresponding to the tag main body and second configuration information corresponding to the tag descriptive text.
The label in the embodiment of the present application may be a two-dimensional code label, a barcode label, or a label in other encoding formats. The tag may specifically include a tag body and a tag descriptive text. The tag body is usually a coding area carrying main information of the tag, for example, a two-dimensional code area in a two-dimensional code tag. The label description text is a text for describing the use of the label or other remark information, for example, the label description text corresponding to the label for collecting money may be: please pay for the code.
The configuration information in the embodiment of the application is information which is set in advance by a manager according to actual requirements and is used for customizing a label format. The configuration information includes first configuration information and second configuration information. Specifically, the first configuration information is used to configure the format of the tag body, for example, the first configuration information may include information for configuring the size, position, and encoded content of the tag body. The second configuration information is used to configure the format of the above-mentioned tag specification text, for example, the first configuration information may include information for configuring the font size, position, and text content of the tag specification text.
In an embodiment, the obtaining configuration information may include: and acquiring a configuration file generated by the advance configuration of a manager, and reading configuration information in the configuration file. The configuration File may be an Initialization File (INI), an Extensible Markup Language (XML) format File, an Object Notation (JSON, a lightweight data exchange format) format File, or a File in other format capable of storing configuration information, and is not limited herein.
In S102, target subject information is generated according to the first configuration information.
After the first configuration information is acquired, corresponding target body information is generated according to information of configuration items such as the size, the position and the coding content of the tag body described in the first configuration information.
In S103, target specification text information is generated according to the second configuration information.
After the second configuration information is acquired, corresponding target description text information is generated according to information of configuration items such as the size, the position and the text content of the label description text described in the second configuration information.
In S104, the target label body information and the target specification text information are output to a printing device together for printing, so as to obtain a target label.
In an embodiment, an execution main body of the label printing method in the embodiment of the present application is an electronic device such as a computer and a mobile terminal that does not have a printing function, and in this step, the target label main body information and the target description text information are specifically sent to a printing apparatus of the printing device together for printing, so as to obtain the target label. In another embodiment, an execution main body of the label printing method according to the embodiment of the present application is directly a printing device having an interactive function and a printing function, and a processor of the printing device outputs current target label main body information and target description text information to a printing apparatus of the printing device for printing, so as to obtain a target label. Thereafter, the application program for executing the label printing method may be exited.
In one embodiment, the first configuration information independently describes first coordinate position information of the label body on the printed page, and the second configuration information independently describes second coordinate position information of the label description text on the printed page, so that the generated target body information carries the first coordinate position information, and the generated target description text information carries the second coordinate position information. And outputting the target main body information and the target description text information to a printing device together, namely printing a corresponding label main body at a first coordinate position of a printing page, and printing a corresponding label description text at a second coordinate position of the printing page, so as to obtain a target label through combination.
In another embodiment, the first configuration information and the second configuration information have no associated coordinate position information, and the configuration information further includes third configuration information in addition to the first configuration information and the second configuration information. The third configuration information specifically includes printing paper size information, label overall position information, and relative position information of the label body and the label description text. Correspondingly, in step S104, the target body information, the target description text information and the third configuration information are output to the printing apparatus together, so that the printing apparatus can determine a currently required printing paper specification according to the printing paper size information, determine positions of the current label body and the label description text on the printing paper according to the overall label position information and the relative position information of the label body and the label description text, and print the label body and the label description text on the positions corresponding to the printing paper according to the target body information and the target description text information to obtain the target label.
In the embodiment of the application, configuration information is obtained, target main body information is generated according to first configuration information corresponding to a tag main body in the configuration information, and target description text information is generated according to second configuration information corresponding to a tag description text; and then, the target main body information and the target description text information are output to a printing device together for printing to obtain the target label. The current configuration information can be flexibly acquired each time the label is printed, the target main body information is flexibly generated according to the first configuration information, and the target description text information is flexibly generated according to the second configuration information, so that the target label corresponding to the configuration information can be flexibly generated according to the target main body information and the target description text information. That is, label printing is flexibly and conveniently realized according to the current configuration information under the condition of not developing a new label printing application program, development cost is reduced, label customization efficiency is improved, and production and maintenance are facilitated.
Optionally, the target tag in this embodiment of the application is a two-dimensional code tag, the first configuration information includes configuration item information of a two-dimensional code link and a middle icon, and the second configuration information includes configuration item information describing text content and a text language type.
In this embodiment of the application, a target two-dimensional code label is specifically a two-dimensional code label, a label body of the two-dimensional code label is specifically a two-dimensional code, link information is carried by the two-dimensional code, that is, the two-dimensional code is scanned, specifically, a link for accessing a certain location (for example, accessing a certain website, accessing a certain storage path, or accessing a certain application program) is obtained, and the link information is called a two-dimensional code link. Besides the two-dimension code link, the tag main body of the two-dimension code tag can also carry a middle icon in the middle of the two-dimension code link. Therefore, in this embodiment of the application, the first configuration information corresponding to the tag main body may include configuration item information linked by the two-dimensional code and configuration item information of the middle icon, and may further include size (i.e., length and height) of the tag main body, and X-axis and Y-axis coordinate position information of the tag main body. The configuration item information of the two-dimensional code link is specifically a configured link address; in one embodiment, the format of the link address needs to conform to a preset format, otherwise, error reporting is performed, and the preset format may include that the link address carries a preset specific character and/or the length of the link address is equal to a preset length. The configuration item information of the middle icon of the two-dimensional code may include icon identification information for identifying whether the middle icon is displayed, and picture name information corresponding to the middle icon. When the icon identification information indicates that the current intermediate icon is not displayed, the tag main body of the subsequently generated target tag does not carry the intermediate icon; when the icon identification information indicates that the current intermediate icon is displayed, the tag main body of the subsequently generated target tag carries the intermediate icon, and the carried intermediate icon is a picture with the name which is stored in the current configuration path and is consistent with the picture name information.
In the embodiment of the present application, the second configuration information corresponding to the tag specification text specifically includes: configuration item information for configuring the actual text content of the label description text, such as "please pay for code scanning"; and configuration item information for configuring the text language type of the label description text, for example, the text language type may be chinese, english, japanese, korean, or the like. In addition, the second configuration information may further include a font size of the tag specification text, and X-axis and Y-axis coordinate position information of the tag specification text. In some embodiments, the second configuration information may also flexibly configure the number of the label description texts, for example, the label may be configured to include three label description texts, namely, description text 1, description text 2, and description text 3, which are respectively used for displaying different text contents.
In the embodiment of the application, when the target label to be printed is a two-dimensional code label, the first configuration information may include configuration item information of a two-dimensional code link and a middle icon, and the second configuration information may include configuration item information describing text content and a text language type, so that flexible configuration item information can be provided for the two-dimensional code, and a corresponding two-dimensional code label can be flexibly generated according to requirements.
Optionally, the label printing method according to the embodiment of the present application further includes:
acquiring a configuration instruction;
and generating configuration information according to the configuration instruction.
In the embodiment of the application, when label printing customization is needed, the configuration instruction input by a manager can be acquired. And configuring the information of each configuration item corresponding to the label main body and the label description text of the label according to the configuration instruction, and combining the configured information of each configuration item to obtain the configuration information. And then, storing the configuration information so as to be capable of acquiring the configuration information in the following and generating a target label in accordance with the configuration information. In one embodiment, the generated configuration information may be stored in a configuration file, and the configuration information may be obtained by subsequently reading the configuration file. For example, in a product production line, the configuration information may be generated by a production line manager inputting a configuration instruction in advance, and after the production line manager once configures and generates the configuration information, the production line manager may subsequently print a target label corresponding to the configuration information according to the configuration information multiple times.
In an embodiment, the step of acquiring the configuration instruction and generating the configuration information according to the configuration instruction may be specifically implemented before the step S101. In another embodiment, the configuration instruction may be obtained after the configuration information is obtained and the configured configuration item information is displayed on the configuration interface according to the configuration information, and the configuration instruction is used to modify the configuration item information on the configuration interface. And then, generating the latest configuration information according to the modified configuration item information on the configuration interface, and generating corresponding target text information and target description text information according to the latest configuration information. In another embodiment, specifically, after the step S104, when it is determined that the printing effect of the current label is poor, the configuration instruction is obtained, the configuration item information is modified according to the configuration instruction to obtain the latest configuration information, and the step S101 is returned to perform printing of the target label again according to the latest configuration information.
In the embodiment of the application, the configuration instruction can be acquired, and the configuration information can be flexibly configured and generated, so that the customization of label printing can be realized as required, and the label printing can be flexibly and accurately realized.
Optionally, the configuration instruction is an instruction for editing a configuration file, and correspondingly, the generating configuration information according to the configuration instruction includes:
and editing and generating configuration information in the configuration file according to the configuration instruction, and storing the configuration file.
In this embodiment of the present application, the configuration instruction may be directly an instruction for editing a configuration file, where the configuration file is used to store configuration information. Specifically, the configuration file may be opened first (when the created configuration file does not exist, the configuration file is opened after the configuration file is created), then, the configuration information is edited in the configuration file according to the configuration instruction input by the administrator, and after the complete configuration information is generated, the configuration file is saved so as to facilitate subsequent configuration information acquisition. For example, when the administrator is familiar with the information of each configuration item of the label, the customized configuration of label printing can be efficiently implemented by adopting the manner of generating the configuration information by editing the configuration file according to the embodiment of the present application.
Optionally, the configuration instruction is an instruction for editing configuration item information on a configuration interface, and correspondingly, generating configuration information according to the configuration instruction includes:
editing configuration item information on a configuration interface according to the configuration instruction;
and generating configuration information according to the information of each configuration item.
In this embodiment of the application, the configuration instruction may be an instruction for editing configuration item information on the configuration interface. Specifically, the configuration interface is a display interface for displaying configured configuration item information and supporting editing of the configuration item information. Illustratively, the configuration interface may include a first text box for entering and displaying a two-dimensional code link; a second text box for inputting and displaying an icon display state of the intermediate icon; a third text box for inputting and displaying picture name information of the intermediate icon; a fourth text box for inputting and displaying coordinate position information of the tag body; a fifth text box for inputting and displaying size information of the tag body; a sixth text box for inputting and displaying explanatory text contents; a first list box for selecting and displaying a descriptive text language type; a seventh text box for inputting and displaying size information of the label specification text; an eighth text box for inputting and displaying coordinate position information of the label specification text; a second list box for selecting and displaying a size of the printing paper; the method can also comprise the following steps: a tag body position preview image and a tag explanatory text position preview image; and the buttons are used for adjusting the up-down, left-right and left movements of the position of the label body, the position of the label description text or the overall position of the label.
Correspondingly, the configuration instruction may be a text box editing instruction, and according to the text box editing instruction, corresponding configuration item information may be input in any one or more text boxes to complete editing of the configuration item information. The configuration instruction may further include a list selection instruction, and according to the list selection instruction, corresponding configuration item information may be selected in any one or more list boxes, so as to complete editing of the configuration item information. The configuration instruction may further include a button click instruction, according to the button click instruction, the position configuration of the tag main body, the tag description text, or the entire tag may be adjusted, and according to the adjusted position configuration, the position-related configuration item information may be obtained.
And after generating each configuration item information according to the configuration instruction, combining each configuration item information to obtain the configuration information. In one embodiment, the currently configured information of each configuration item of the configuration interface can be automatically entered into a configuration file, and the configuration information is stored by saving the configuration file.
In some embodiments, the configuration information may further include title configuration item information of the configuration interface, and a title displayed on the configuration interface may be edited by the title configuration item information, where the title is used to represent a label product name corresponding to the current configuration information, so that a user who performs label printing later can intuitively know which label product configuration corresponds to the current configuration information when acquiring the current configuration information for printing.
In the embodiment of the application, the configuration instruction can be an instruction for editing the configuration item information on the configuration interface, and the configuration interface can display the configuration item information more intuitively, so that a manager can configure the configuration information conveniently, and the configuration efficiency is improved.
Optionally, the obtaining the configuration instruction includes:
and if the target label is detected not to accord with the preset condition, acquiring a configuration instruction.
In an embodiment, the detecting that the target tag does not meet the preset condition may specifically include: after the target label is printed, a feedback instruction input by a user for feeding back that the target label display does not meet the requirement is detected. After the feedback instruction is obtained, a configuration file or a configuration interface can be opened, so that a user can input the configuration instruction to adjust configuration information. And then, acquiring a configuration instruction operated by the user in the configuration file or the configuration interface.
In another embodiment, the detecting that the target tag does not meet the preset condition may specifically include: after generating the target text description information, generating a preview of a target label according to the generated target main body information and the generated target description text information; and comparing the preview image with the template label image, and if the deviation value of the size or the position of the preview image and the template label image is larger than a preset threshold value, judging that the target label does not accord with the preset condition. And then, opening a configuration file or a configuration interface, and acquiring a configuration instruction which is input by a user and used for adjusting configuration information.
In the embodiment of the application, when the target label does not accord with the preset condition, the configuration instruction is acquired to adjust the printing configuration information of the label, so that the accuracy of label printing can be improved.
Optionally, the obtaining the configuration instruction includes:
acquiring identity authentication information input by a user;
and if the identity authentication information passes the authentication, acquiring a configuration instruction.
In the embodiment of the application, when a user needs to configure or adjust the configuration information of the tag, identity authentication information needs to be input. The identity authentication information can be administrator passwords, face identification information, fingerprint information and the like.
And when the input identity authentication information is matched with the identity information prestored in the electronic equipment, judging that the current identity authentication information passes the authentication, and opening a configuration file, or setting each configuration item of a configuration interface into an editable state for a user to input a configuration instruction. And then, acquiring a configuration instruction input by a user and generating corresponding configuration information.
In the embodiment of the application, when configuration information is configured, the identity authentication information of the user can be acquired first, and after the identity authentication information passes the authentication, the configuration instruction is acquired, so that the user is allowed to configure the configuration information of the label, and therefore the security and the reliability of label printing configuration can be improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two:
fig. 2 is a schematic structural diagram of a label printing apparatus according to an embodiment of the present application, and for convenience of description, only parts related to the embodiment of the present application are shown:
the label printing apparatus includes: an acquisition unit 21, a first generation unit 22, a third generation unit 23, and an output unit 24. Wherein:
the obtaining unit 21 is configured to obtain configuration information, where the configuration information includes first configuration information corresponding to the tag main body and second configuration information corresponding to the tag specification text.
A first generating unit 22, configured to generate target subject information according to the first configuration information.
And a second generating unit 23, configured to generate target description text information according to the second configuration information.
And the output unit 24 is configured to output the target main body information and the target specification text information to a printing device together for printing, so as to obtain a target label.
Optionally, the target tag is a two-dimensional code tag, the first configuration information includes configuration item information of a two-dimensional code link and a middle icon, and the second configuration information includes configuration item information describing text content and a text language type.
Optionally, the label printing apparatus further includes:
the configuration unit is used for acquiring a configuration instruction; and generating configuration information according to the configuration instruction.
Optionally, the configuration instruction is an instruction for editing a configuration file, and correspondingly, in the configuration unit, the generating configuration information according to the configuration instruction includes: and editing and generating configuration information in the configuration file according to the configuration instruction, and storing the configuration file.
Optionally, the configuration instruction is an instruction for editing configuration item information on a configuration interface, and correspondingly, in the configuration unit, the generating configuration information according to the configuration instruction includes: editing information of each configuration item on a configuration interface according to the configuration instruction; and generating configuration information according to the information of each configuration item.
Optionally, the configuration unit is specifically configured to obtain a configuration instruction if it is detected that the target tag does not meet the preset condition.
Optionally, in the configuration unit, the obtaining a configuration instruction includes: acquiring identity authentication information input by a user; and if the identity authentication information passes the authentication, acquiring a configuration instruction.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Practice ofExample three:
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present application. As shown in fig. 3, the electronic apparatus 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32, such as a label printing program, stored in said memory 31 and executable on said processor 30. The processor 30, when executing the computer program 32, implements the steps in the various label printing method embodiments described above, such as steps S101 to S104 shown in fig. 1. Alternatively, the processor 30 executes the computer program 32 to realize the functions of the modules/units in the device embodiments, such as the functions of the acquiring unit 21 to the output unit 24 shown in fig. 2.
Illustratively, the computer program 32 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 30 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 32 in the electronic device 3.
The electronic device 3 may be a desktop computer, a notebook, a palm computer, a mobile terminal, a printer, or other computing devices. The electronic device may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the electronic device 3, and does not constitute a limitation of the electronic device 3, and may include more or less components than those shown, or combine certain components, or different components, for example, the electronic device may also include input output devices, network access devices, buses, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the electronic device 3, such as a hard disk or a memory of the electronic device 3. The memory 31 may also be an external storage device of the electronic device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the electronic device 3. The memory 31 is used for storing the computer program and other programs and data required by the electronic device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A label printing method, comprising:
acquiring configuration information, wherein the configuration information comprises first configuration information corresponding to a tag main body and second configuration information corresponding to a tag description text;
generating target subject information according to the first configuration information;
generating target description text information according to the second configuration information;
and outputting the target main body information and the target description text information to a printing device together for printing to obtain a target label.
2. The label printing method according to claim 1, wherein the target label is a two-dimensional code label, the first configuration information includes configuration item information of a two-dimensional code link and an intermediate icon, and the second configuration information includes configuration item information describing text content and a type of a text language.
3. The label printing method as claimed in claim 1, wherein said method further comprises:
acquiring a configuration instruction;
and generating configuration information according to the configuration instruction.
4. The label printing method according to claim 3, wherein the configuration command is a command for editing a configuration file, and correspondingly, the generating configuration information according to the configuration command comprises:
and editing and generating configuration information in the configuration file according to the configuration instruction, and storing the configuration file.
5. The label printing method according to claim 3, wherein the configuration command is a command for editing configuration item information on a configuration interface, and correspondingly, the generating configuration information according to the configuration command comprises:
editing information of each configuration item on a configuration interface according to the configuration instruction;
and generating configuration information according to the information of each configuration item.
6. The label printing method of claim 3, wherein said obtaining the configuration instruction comprises:
and if the target label is detected not to accord with the preset condition, acquiring a configuration instruction.
7. The label printing method according to any one of claims 3 to 6, wherein said obtaining the configuration command includes:
acquiring identity authentication information input by a user;
and if the identity authentication information passes the authentication, acquiring a configuration instruction.
8. A label printing apparatus, comprising:
the tag comprises an acquisition unit, a storage unit and a display unit, wherein the acquisition unit is used for acquiring configuration information, and the configuration information comprises first configuration information corresponding to a tag main body and second configuration information corresponding to a tag description text;
the first generating unit is used for generating target subject information according to the first configuration information;
the second generating unit is used for generating target description text information according to the second configuration information;
and the output unit is used for outputting the target main body information and the target description text information to a printing device together for printing to obtain a target label.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the computer program, when executed by the processor, causes the electronic device to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes an electronic device to carry out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111234745.0A CN113971009A (en) | 2021-10-22 | 2021-10-22 | Label printing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111234745.0A CN113971009A (en) | 2021-10-22 | 2021-10-22 | Label printing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113971009A true CN113971009A (en) | 2022-01-25 |
Family
ID=79588091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111234745.0A Pending CN113971009A (en) | 2021-10-22 | 2021-10-22 | Label printing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113971009A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040035935A1 (en) * | 2002-05-30 | 2004-02-26 | Sadao Takahashi | 2-Dimensional code pattern, 2-dimensional code pattern supporting medium, 2-dimensional code pattern generating method, and 2-dimensional code reading apparatus and method |
JP2005074680A (en) * | 2003-08-28 | 2005-03-24 | King Jim Co Ltd | Tape printing system, tape printing method, and tape printing program |
CN101152803A (en) * | 2006-09-27 | 2008-04-02 | 兄弟工业株式会社 | Two-dimensional code printing apparatus and method and tangible medium |
CN111260010A (en) * | 2020-01-20 | 2020-06-09 | 浙江中国轻纺城网络有限公司 | Processing method, device and equipment for user-defined two-dimensional code label |
CN112000302A (en) * | 2020-08-25 | 2020-11-27 | 上海合阔信息技术有限公司 | Label generation method, template configuration method, device and storage medium |
CN113487332A (en) * | 2020-03-16 | 2021-10-08 | 北京市通州区富平职业技能培训学校 | Agricultural product tracing visual label setting method and device |
-
2021
- 2021-10-22 CN CN202111234745.0A patent/CN113971009A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040035935A1 (en) * | 2002-05-30 | 2004-02-26 | Sadao Takahashi | 2-Dimensional code pattern, 2-dimensional code pattern supporting medium, 2-dimensional code pattern generating method, and 2-dimensional code reading apparatus and method |
JP2005074680A (en) * | 2003-08-28 | 2005-03-24 | King Jim Co Ltd | Tape printing system, tape printing method, and tape printing program |
CN101152803A (en) * | 2006-09-27 | 2008-04-02 | 兄弟工业株式会社 | Two-dimensional code printing apparatus and method and tangible medium |
CN111260010A (en) * | 2020-01-20 | 2020-06-09 | 浙江中国轻纺城网络有限公司 | Processing method, device and equipment for user-defined two-dimensional code label |
CN113487332A (en) * | 2020-03-16 | 2021-10-08 | 北京市通州区富平职业技能培训学校 | Agricultural product tracing visual label setting method and device |
CN112000302A (en) * | 2020-08-25 | 2020-11-27 | 上海合阔信息技术有限公司 | Label generation method, template configuration method, device and storage medium |
Non-Patent Citations (1)
Title |
---|
付强,都亚萍: "网店运营", 30 June 2021, 吉林科学技术出版社, pages: 43 - 44 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10810351B2 (en) | Integrated document editor | |
CA2244431C (en) | Touchscreen keyboard support for multi-byte character languages | |
CN111159982B (en) | Document editing method, device, electronic equipment and computer readable storage medium | |
CN108109187A (en) | E-seal generation method, device and electronic equipment | |
CN108628812A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of self-defined face single mode plate | |
CN113297425B (en) | Document conversion method, device, server and storage medium | |
CN114330240A (en) | PDF document analysis method and device, computer equipment and storage medium | |
CN113971009A (en) | Label printing method and device, electronic equipment and storage medium | |
CN112801086A (en) | Method and device for classifying certificates, electronic equipment and storage medium | |
US20200201533A1 (en) | Customizable User Interface for Use with Digital Ink | |
CN111506285A (en) | Electronic price tag updating method and device, electronic equipment and readable medium | |
CN110727481A (en) | Picture editing method and device, computer equipment and storage medium | |
CN113867718A (en) | Picture generation method and device, computer equipment and readable storage medium | |
CN114371762A (en) | Method and device for printing customized label and storage medium | |
CN110460636B (en) | Data response method and device, computer equipment and storage medium | |
US10565289B2 (en) | Layout reconstruction using spatial and grammatical constraints | |
US8380690B2 (en) | Automating form transcription | |
JP6676121B2 (en) | Data input device and data input program | |
CN112882665A (en) | Method and device for generating printing template, electronic equipment and storage medium | |
EP3680842A1 (en) | Automated extraction of performance segments and metadata values associated with the performance segments from contract documents | |
CN113468836A (en) | Data processing method, data processing device, storage medium and electronic equipment | |
US20190179877A1 (en) | Information processing system, control method, and storage medium | |
Gunardi et al. | Web-Based Gender Classification ML Application Development for e-KYC | |
CN111475156A (en) | Page code generation method and device, electronic equipment and storage medium | |
US20190012400A1 (en) | Information processing apparatus and non-transitory computer readable medium |
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 |