CN112711388A - Label template generation method and device, electronic equipment and readable storage medium - Google Patents

Label template generation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112711388A
CN112711388A CN202110064249.9A CN202110064249A CN112711388A CN 112711388 A CN112711388 A CN 112711388A CN 202110064249 A CN202110064249 A CN 202110064249A CN 112711388 A CN112711388 A CN 112711388A
Authority
CN
China
Prior art keywords
printing
label template
item
template
instruction
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.)
Withdrawn
Application number
CN202110064249.9A
Other languages
Chinese (zh)
Inventor
姚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202110064249.9A priority Critical patent/CN112711388A/en
Publication of CN112711388A publication Critical patent/CN112711388A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The application provides a label template generation method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring a standard label template, and displaying the standard label template in a preview area; receiving a printing item position adjusting instruction, wherein the printing item position adjusting instruction comprises a target position; adjusting at least one printing item on the standard label template from a standard display position to a target display position according to the printing item position adjusting instruction to obtain a label template with an adjusted position; and updating the preview content of the preview area into the label template after the position is adjusted. According to the label template generation method, the position adjustment of the printing items can be supported, the multiple printing items can be adjusted to the same line, any label template can be generated according to the requirements of the user, and the user experience is optimized.

Description

Label template generation method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a label template generation method and device, electronic equipment and a readable storage medium.
Background
In the field of label printing, the current label printing system only supports previewing of print contents, but does not support the user to perform operations on the print contents while previewing the print contents, such as adjusting fonts and font sizes, adding the print contents, deleting the print contents, and the like. The label can be a bottle label of bottled beverage, various tickets of a cashier system and the like. Taking the label of the bottled beverage as an example, when previewing the label, various information such as identification, characters, numbers, feature codes, pictures and the like can be seen, and when printing the label, a manufacturer can only preview the printed content through a label printing system, and if the error of the written description at a certain position is found in the previewing process, the printed content cannot be directly corrected through the printing system. Therefore, the current label printing system has limited functions and cannot well meet the printing item requirements of users.
Disclosure of Invention
The embodiment of the application provides a label template generation method and device, electronic equipment and a readable storage medium, which support a user to operate printing contents while previewing the printing contents and can better meet the printing requirements of the user.
A first aspect of an embodiment of the present application provides a tag template generation method, where the method includes:
acquiring a standard label template, and displaying the standard label template in a preview area;
receiving a printing item position adjusting instruction, wherein the printing item position adjusting instruction comprises a target position;
adjusting at least one printing item on the standard label template from a standard display position to a target display position according to the printing item position adjusting instruction to obtain a label template with an adjusted position;
and updating the preview content of the preview area into the label template after the position is adjusted.
Optionally, the display module corresponding to the preview area is a touch display screen; the print item position adjusting instruction is an instruction triggered by a dragging operation, the starting point of the dragging operation is a standard display position of at least one print item on the standard label template, and the end point of the dragging operation is the target display position; or
The printing item position adjusting instruction is an instruction triggered by two clicking operations, wherein the first clicking operation in the two clicking operations is used for selecting at least one printing item on the standard label template, and the clicking position of the second clicking operation in the two clicking operations is the target display position;
and at least two printing items in the label template after the position adjustment are positioned in the same row.
Optionally, the method further comprises:
receiving a print text editing instruction, wherein the print text editing instruction comprises a target print text;
according to the printing text editing instruction, updating the standard printing text of at least one printing item on the standard label template into the target printing text to obtain a label template with the updated printing text, wherein the length of the target printing text is different from that of the standard printing text;
and updating the preview content of the preview area into the label template after the print text is updated.
Optionally, after updating the preview content of the preview area to the updated print text label template, the method further includes:
detecting whether the display position of the printing text of each printing item in the label template after the printing text is updated exceeds the printing range;
and when the label template after the updating of the printing text contains the printing item of which the display position of the printing text exceeds the printing range, outputting prompt information to prompt a user to adjust the printing text of the printing item of which the display position exceeds the printing range.
Optionally, the method further comprises:
receiving a printing item reorganization instruction, wherein the printing item reorganization instruction is used for reorganizing one or more printing items;
according to the printing item reorganization instruction, splitting a printing item on the standard label template or the updated label template into a plurality of printing items, or combining a plurality of printing items on the standard label template or the updated label template into one printing item to obtain a reorganized label template, wherein the updated label template is obtained by updating the standard label template according to user operation;
and updating the preview content of the preview area into the recombined label template.
Optionally, the method further comprises:
receiving a printing item editing instruction, wherein the printing item editing instruction is used for adding a printing item, deleting the printing item or adjusting the style of the printing item;
adding a printing item, deleting a printing item or adjusting the style of a printing item on the standard label template or the updated label template according to the printing item editing instruction to obtain an edited label template, wherein the updated label template is obtained by updating the standard label template according to the operation of a user;
and updating the preview content of the preview area into the edited label template.
Optionally, the preview content of the preview area is displayed in the following manner:
analyzing the preview content of the preview area into a print label and an attribute value corresponding to the print label;
receiving an arrangement instruction, wherein the arrangement instruction comprises a specified column number and a specified row number;
and arranging and displaying the printing labels and the attribute values corresponding to the printing labels according to the designated column number and the designated line number.
Optionally, the method further comprises:
receiving a template storage instruction;
and storing the updated label template in a template library according to the template storage instruction, wherein the updated label template is obtained by updating the standard label template according to the user operation.
A second aspect of the embodiments of the present application provides a tag template generating apparatus, where the apparatus includes:
the acquisition module is used for acquiring a standard label template and displaying the standard label template in a preview area;
the printing system comprises a first receiving module, a second receiving module and a printing item position adjusting module, wherein the first receiving module is used for receiving a printing item position adjusting instruction, and the printing item position adjusting instruction comprises a target position;
the adjusting module is used for adjusting at least one printing item on the standard label template from a standard display position to a target display position according to the printing item position adjusting instruction to obtain a label template with an adjusted position;
and the first updating module is used for updating the preview content of the preview area into the label template after the position is adjusted.
Optionally, the display module corresponding to the preview area is a touch display screen; the print item position adjusting instruction is an instruction triggered by a dragging operation, the starting point of the dragging operation is a standard display position of at least one print item on the standard label template, and the end point of the dragging operation is the target display position; or
The printing item position adjusting instruction is an instruction triggered by two clicking operations, wherein the first clicking operation in the two clicking operations is used for selecting at least one printing item on the standard label template, and the clicking position of the second clicking operation in the two clicking operations is the target display position;
and at least two printing items in the label template after the position adjustment are positioned in the same row.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a printing text editing instruction, and the printing text editing instruction comprises a target printing text;
a second updating module, configured to update a standard print text of at least one print item on the standard label template to the target print text according to the print text editing instruction, so as to obtain a label template with an updated print text, where a length of the target print text is different from a length of the standard print text;
and the third updating module is used for updating the preview content of the preview area into the label template after the print text is updated.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether the display position of the printing text of each printing item in the label template after the printing text is updated exceeds the printing range;
and the output module is used for outputting prompt information when the updated label template of the printing text contains the printing item of which the display position of the printing text exceeds the printing range so as to prompt a user to adjust the printing text of the printing item of which the display position exceeds the printing range.
Optionally, the apparatus further comprises:
the third receiving module is used for receiving a printing item reorganizing instruction, and the printing item reorganizing instruction is used for reorganizing one or more printing items;
a reorganization module, configured to split a print item on the standard label template or the updated label template into multiple print items according to the print item reorganization instruction, or merge multiple print items on the standard label template or the updated label template into one print item, so as to obtain a reorganized label template, where the updated label template is a label template obtained by updating the standard label template according to a user operation;
and the fourth updating module is used for updating the preview content of the preview area into the recombined label template.
Optionally, the apparatus further comprises:
the fourth receiving module is used for receiving a printing item editing instruction, wherein the printing item editing instruction is used for adding a printing item, deleting the printing item or adjusting the style of the printing item;
the editing module is used for adding a printing item, deleting a printing item or adjusting the style of a printing item on the standard label template or the updated label template according to the printing item editing instruction to obtain an edited label template, wherein the updated label template is obtained by updating the standard label template according to user operation;
and the fifth updating module is used for updating the preview content of the preview area into the edited label template.
Optionally, the preview content of the preview area is displayed in the following manner:
analyzing the preview content of the preview area into a print label and an attribute value corresponding to the print label;
receiving an arrangement instruction, wherein the arrangement instruction comprises a specified column number and a specified row number;
and arranging and displaying the printing labels and the attribute values corresponding to the printing labels according to the designated column number and the designated line number.
Optionally, the apparatus further comprises:
the fifth receiving module is used for receiving a template storage instruction;
and the storage module is used for storing the updated label template in a template library according to the template storage instruction, wherein the updated label template is obtained by updating the standard label template according to the user operation.
A third aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps in the method according to the first aspect of the present application.
A fourth aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect of the present application when executed.
By adopting the label template generation method provided by the embodiment of the application, the standard label template is firstly obtained and displayed in the preview area. Next, a print item position adjustment instruction is received, the print item position adjustment instruction including a target position. And then, according to the printing item position adjusting instruction, adjusting at least one printing item on the standard label template from the standard display position to a target display position to obtain a label template after position adjustment, wherein at least two printing items in the label template after position adjustment are positioned in the same row. And finally, updating the preview content of the preview area into the label template after the position is adjusted. The label template generation method in the embodiment can support position adjustment of the printing items, support adjustment of the plurality of printing items to the same line, generate any label template according to the requirements of the user, and optimize user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a tag template generation method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method of print text editing according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a method of printing reminders according to an embodiment of the present application;
FIG. 4 is a flow chart of a method of reorganizing a print shown in one embodiment of the present application;
FIG. 5 is a flow chart diagram illustrating a print item editing method according to one embodiment of the present application;
FIG. 6 is a diagram illustrating a preview area according to an embodiment of the present application;
fig. 7 is a block diagram illustrating a structure of a tag template generating apparatus according to an embodiment of the present application;
fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart illustrating a tag template generation method according to an embodiment of the present application. Referring to fig. 1, the tag template generating method may include the steps of:
step S11: and acquiring a standard label template, and displaying the standard label template in a preview area.
The label template generating method can be applied to a label printing system, standard label templates with various styles are stored in the label printing system in advance, and the label printing system is also provided with a preview area for previewing the printing effect.
In particular, the user may select one standard label template from among multiple types of standard label templates, and the label printing system may display the selected standard label template in the preview area according to the selection operation of the user.
Step S12: receiving a print item position adjustment instruction, the print item position adjustment instruction including a target position.
In the present embodiment, the print item position adjustment instruction is used to adjust the position of a certain print item in the preview area. The print items refer to print contents, and one print item represents an independent print content, for example, a title may be one print item, a text may be one print item, a pattern may be one print item, a picture may be one print item, and so on.
In implementation, the user may select a position adjustment item from the plurality of operation options, enter a target position for at least one print item requiring position adjustment in the popped-up page, and click the confirmation button to generate a print item position adjustment instruction. After the label printing system obtains the print item position adjustment instruction, it can be determined that the user needs to adjust the selected print item to the corresponding target position.
Step S13: and adjusting at least one printing item on the standard label template from a standard display position to a target display position according to the printing item position adjusting instruction to obtain the label template with the adjusted position.
In this embodiment, the label printing system directly adjusts and displays each print item from the original standard display position to the set corresponding target position when executing the print item position adjustment instruction. Illustratively, when the correspondence between the print item and the target position included in the print item position adjustment instruction is shown in the following table, the label printing system directly adjusts and displays the picture 1 from the position 1 to the position 3, the title 1 to the position 6, and the paragraph 2 to the position 7 when executing the print item position adjustment instruction.
Print item Standard display position Target position
Picture 1 Position 1 Position 3
Title 1 Position 4 Position 6
Paragraph 2 Position 8 Position 7
…… …… ……
Step S14: and updating the preview content of the preview area into the label template after the position is adjusted.
In this embodiment, the content in the preview area changes along with the position adjustment of the print item, and the label printing system updates the preview content in the preview area to the label template after the position adjustment in real time.
The embodiment provides a label template generation method, which includes firstly obtaining a standard label template and displaying the standard label template in a preview area. Next, a print item position adjustment instruction is received, the print item position adjustment instruction including a target position. And then, according to the printing item position adjusting instruction, adjusting at least one printing item on the standard label template from the standard display position to a target display position to obtain a label template after position adjustment, wherein at least two printing items in the label template after position adjustment are positioned in the same row. And finally, updating the preview content of the preview area into the label template after the position is adjusted. The label template generation method in the embodiment can support position adjustment of the printing items, support adjustment of the plurality of printing items to the same line, generate any label template according to the requirements of the user, and optimize user experience.
With reference to the foregoing embodiments, in one implementation manner, the present application further provides a method for implementing position adjustment. Specifically, the display module corresponding to the preview area is a touch display screen; the print item position adjusting instruction is an instruction triggered by a dragging operation, the starting point of the dragging operation is a standard display position of at least one print item on the standard label template, and the end point of the dragging operation is the target display position; or
The printing item position adjusting instruction is an instruction triggered by two clicking operations, wherein the first clicking operation in the two clicking operations is used for selecting at least one printing item on the standard label template, and the clicking position of the second clicking operation in the two clicking operations is the target display position; and at least two printing items in the label template after the position adjustment are positioned in the same row.
In this embodiment, the user may set in advance that the position adjustment is realized by the drag operation, or set that the position adjustment is realized by the two-click operation. Specifically, for position adjustment achieved through a dragging operation, when a user selects a position adjustment item from a plurality of operation options, the user enters a dragging mode, when the user clicks and selects a certain printing item, the user slides on an interface, and when the selection is stopped, the stopped position is a target display position of the printing item.
For realizing position adjustment through twice clicking operations, after a user selects a position adjustment item from a plurality of operation options, the label printing system determines the printing item selected when the user clicks for the first time as the printing item of the position to be adjusted, and then, the clicking position when the user clicks for the first time is used as the target display position of the printing item of the position to be adjusted.
In this embodiment, the label printing system also supports adjustment of the positions of the plurality of print items to the same line, that is, the plurality of print items can be displayed in a single line.
The embodiment provides two methods for adjusting the position of the printing item, which can effectively meet the adjustment requirement of a user on the label and enhance the user experience.
The embodiment of the application also provides a method for editing the text to be printed. As shown in fig. 2, fig. 2 is a flowchart of a method for editing printed text according to an embodiment of the present application. Referring to fig. 2, the method for editing a text to be printed according to the present application may include the following steps:
step S21: receiving a print text editing instruction, wherein the print text editing instruction comprises a target print text.
In this embodiment, the user can select a print text editing option among a plurality of operation options and print a text for a text input target to be edited.
Step S22: and updating the standard printing text of at least one printing item on the standard label template into the target printing text according to the printing text editing instruction to obtain the label template with the updated printing text, wherein the length of the target printing text is different from that of the standard printing text.
In this embodiment, when executing the print text editing instruction, the label printing system directly adjusts and displays the original standard print text of each print item to the set corresponding target print text. Illustratively, when the correspondence between the print item and the target print text included in the print text editing instruction is as shown in the following table, the label printing system, upon executing the print text editing instruction, directly updates XXX of text 1 to XYY and displays, updates YYYW of text 2 to yyyyyz and displays, and updates ZZZ of text 3 to ZZRA and displays.
Print item Standard print text Target printed text
Text 1 XXX XYY
Text 2 YYYW YYZ
Text 3 ZZZ ZZRA
…… …… ……
In the present application, the label printing system also supports the adjustment of the length of the standard printed text (the factors influencing the length in the present application mainly refer to the number of text characters, the greater the number of text characters, the longer the text length, the smaller the number of text characters, and the shorter the text length). For example, in the above table, the length of the target printed text YYZ of text 2 is reduced compared to the length of the standard printed text YYYW, and the length of the target printed text ZZRA of text 3 is increased compared to the length of the standard printed text ZZZ.
Step S23: and updating the preview content of the preview area into the label template after the print text is updated.
In this embodiment, the content in the preview area changes following the adjustment of the print text of the print item, and the label printing system updates the preview content in the preview area to the adjusted label template of the print text in real time.
The embodiment provides a method for editing a printed text, which can effectively meet the adjustment requirement of a user on a label and enhance the user experience.
An embodiment of the present application further provides a method for monitoring a range of a printed text in real time, as shown in fig. 3, fig. 3 is a flowchart of a printing reminding method shown in an embodiment of the present application. Referring to fig. 3, after updating the preview content of the preview area to the updated print text label template, the label template generating method of the present application may further include:
step S31: and detecting whether the display position of the printing text of each printing item in the label template after the printing text is updated exceeds the printing range.
Step S32: and when the label template after the updating of the printing text contains the printing item of which the display position of the printing text exceeds the printing range, outputting prompt information to prompt a user to adjust the printing text of the printing item of which the display position exceeds the printing range.
In this embodiment, when the user is editing the print text, if the display range of the print text exceeds the effective print range, the label printing system outputs a prompt message to the user to prompt the user to adjust the print text of the print item whose display position exceeds the print range. The prompt information may be a voice prompt, a text prompt, or an animation prompt, and the present embodiment does not specifically limit the type of the prompt information.
In this embodiment, the label printing system supports prompting for an out-of-print condition, and can prevent a user from printing out content that does not meet a demand.
An embodiment of the present application further provides a method for reorganizing a plurality of print items, as shown in fig. 4, fig. 4 is a flowchart of a print reorganizing method shown in an embodiment of the present application. As shown in fig. 4, the printing and reorganizing method may specifically include:
step S41: receiving a printing item reorganization instruction, wherein the printing item reorganization instruction is used for reorganizing one or more printing items.
Step S42: according to the printing item reorganization instruction, splitting a printing item on the standard label template or the updated label template into a plurality of printing items, or combining a plurality of printing items on the standard label template or the updated label template into one printing item to obtain a reorganized label template, wherein the updated label template is obtained by updating the standard label template according to user operation.
Step S43: and updating the preview content of the preview area into the recombined label template.
In this embodiment, the label printing system supports a user to split one print item into a plurality of print items, and also supports a user to combine a plurality of print items into one print item, and an operation object of the label printing system may be a standard label template or an updated label template. For example, as shown in the following table, the print item XXFVEOV before splitting may be split into XX, FVE and OV, where XXFVEOV may be a text, a picture, a table, and the like, and the content of the embodiment is not particularly limited. And the XXFVEOV may be a print item in a standard label template or in an updated label template. Similarly, for RG, GB, and NUYU before merging, they may be merged into GB RG NUYU.
Figure BDA0002903556710000121
In this embodiment, the label printing system supports the user to split or merge the print items, so that the adjustment requirement of the user on the label can be effectively met, and the user experience is enhanced.
The present application further provides a method for editing a print item, as shown in fig. 5, fig. 5 is a flowchart of a print item editing method shown in an embodiment of the present application. As shown in fig. 5, the print item editing method may include:
step S51: and receiving a printing item editing instruction, wherein the printing item editing instruction is used for adding a printing item, deleting the printing item or adjusting the style of the printing item.
Step S52: and adding a printing item, deleting a printing item or adjusting the style of a printing item on the standard label template or the updated label template according to the printing item editing instruction to obtain an edited label template, wherein the updated label template is obtained by updating the standard label template according to the operation of a user.
Step S53: and updating the preview content of the preview area into the edited label template.
In this embodiment, after receiving the print item editing instruction, the label printing system determines a type of the print item editing instruction triggered by the user, where the type specifically includes: adding printing items, deleting printing items or adjusting the styles of the printing items. If a new print item is added, displaying the new print item selected by the user in the preview area, if a print item is deleted, deleting the print item selected by the user from the preview area, if the style of the print item is adjusted, displaying a style editing menu bar in the display interface, wherein a plurality of options such as fonts, colors, sizes, styles and the like are set in the style editing menu bar for the user to edit, and the embodiment does not specifically limit the options in the style editing menu bar.
In this embodiment, after the print item editing instruction is processed, an edited label template is obtained, and the label printing system updates the preview content of the preview area to the edited label template.
In this embodiment, the label printing system supports the user to edit the print item, so that the adjustment requirement of the user on the label can be effectively met, and the user experience is enhanced.
The application also provides a method for displaying the preview content. Specifically, the preview content of the preview area is displayed in the following manner:
and analyzing the preview content of the preview area into a print label and an attribute value corresponding to the print label.
Receiving a permutation instruction, wherein the permutation instruction comprises a specified column number and a specified row number.
And arranging and displaying the printing labels and the attribute values corresponding to the printing labels according to the designated column number and the designated line number.
In this embodiment, the preview area may be entirely divided into two rows and two columns, and specifically, may be divided into multiple rows and multiple columns for each row and one column. Fig. 6 is a schematic diagram of a preview area according to an embodiment of the present application. As shown in fig. 6, the preview area supports a single row of two columns, with the left portion representing the first column and the right portion representing the second column.
In this embodiment, the preview area has attributes of rows and columns, and a user can display each column in a grid form according to the user's own needs, so that the print items can be intuitively positioned in the preview area according to the number of rows and columns. Therefore, when the column number and the row number of a certain print item are specified, the print item can be displayed at a corresponding position in the preview area.
Wherein, the print label is the print item. The attribute value corresponding to the print label is the characteristic of the print item. For example, when the print item is a character, the attribute may be a font of the character, a size of the character, a thickness of the character, a color of the character, and the like, and when the print item is a picture, the attribute may be a size of the picture, a transparency of the picture, and the like. The present embodiment does not specifically limit the attributes of the print items.
In specific implementation, when a user needs to place a target print item at an accurate certain position in a preview area, a permutation instruction may be initiated for the target print item, where the permutation instruction includes a specified column number and a specified row number set by the user. In this way, when the label printing system receives the arrangement instruction, the specific position of the target print item can be located in the preview area according to the specified column number and the specified row number, and the target print item is displayed according to the attribute of the target print item.
In this embodiment, the label printing system supports the user to edit the specific position of the print item, so that the user can edit the label template better, the user's requirements can be effectively met, and the user experience is enhanced.
The application also provides a method for storing the template. Specifically, the method comprises the following steps:
and receiving a template storage instruction.
And storing the updated label template in a template library according to the template storage instruction, wherein the updated label template is obtained by updating the standard label template according to the user operation.
In this embodiment, a template library is also provided in the label printing system. And after the user finishes editing, the edited template can be stored in the template library. When the method is specifically implemented, a user can trigger a template storage instruction through operation, and after the label printing system receives the template storage instruction, the updated label template is stored in a template library for use in the next printing.
In this embodiment, the label printing system supports storing the edited template in the template library, thereby avoiding repeated editing of the same template and improving convenience of label printing.
Based on the same inventive concept, an embodiment of the present application further provides a tag template generating device. Referring to fig. 7, fig. 7 is a block diagram illustrating a structure of a tag template generating apparatus according to an embodiment of the present application. As shown in fig. 7, the apparatus includes:
an obtaining module 701, configured to obtain a standard tag template, and display the standard tag template in a preview area;
a first receiving module 702, configured to receive a print item position adjustment instruction, where the print item position adjustment instruction includes a target position;
an adjusting module 703, configured to adjust at least one print item on the standard label template from a standard display position to a target display position according to the print item position adjusting instruction, to obtain a label template after position adjustment;
a first updating module 704, configured to update the preview content in the preview area to the position-adjusted tag template.
Optionally, the display module corresponding to the preview area is a touch display screen; the print item position adjusting instruction is an instruction triggered by a dragging operation, the starting point of the dragging operation is a standard display position of at least one print item on the standard label template, and the end point of the dragging operation is the target display position; or
The printing item position adjusting instruction is an instruction triggered by two clicking operations, wherein the first clicking operation in the two clicking operations is used for selecting at least one printing item on the standard label template, and the clicking position of the second clicking operation in the two clicking operations is the target display position; and at least two printing items in the label template after the position adjustment are positioned in the same row.
Optionally, the apparatus 700 further comprises:
the second receiving module is used for receiving a printing text editing instruction, and the printing text editing instruction comprises a target printing text;
a second updating module, configured to update a standard print text of at least one print item on the standard label template to the target print text according to the print text editing instruction, so as to obtain a label template with an updated print text, where a length of the target print text is different from a length of the standard print text;
and the third updating module is used for updating the preview content of the preview area into the label template after the print text is updated.
Optionally, the apparatus 700 further comprises:
the detection module is used for detecting whether the display position of the printing text of each printing item in the label template after the printing text is updated exceeds the printing range;
and the output module is used for outputting prompt information when the updated label template of the printing text contains the printing item of which the display position of the printing text exceeds the printing range so as to prompt a user to adjust the printing text of the printing item of which the display position exceeds the printing range.
Optionally, the apparatus 700 further comprises:
the third receiving module is used for receiving a printing item reorganizing instruction, and the printing item reorganizing instruction is used for reorganizing one or more printing items;
a reorganization module, configured to split a print item on the standard label template or the updated label template into multiple print items according to the print item reorganization instruction, or merge multiple print items on the standard label template or the updated label template into one print item, so as to obtain a reorganized label template, where the updated label template is a label template obtained by updating the standard label template according to a user operation;
and the fourth updating module is used for updating the preview content of the preview area into the recombined label template.
Optionally, the apparatus 700 further comprises:
the fourth receiving module is used for receiving a printing item editing instruction, wherein the printing item editing instruction is used for adding a printing item, deleting the printing item or adjusting the style of the printing item;
the editing module is used for adding a printing item, deleting a printing item or adjusting the style of a printing item on the standard label template or the updated label template according to the printing item editing instruction to obtain an edited label template, wherein the updated label template is obtained by updating the standard label template according to user operation;
and the fifth updating module is used for updating the preview content of the preview area into the edited label template.
Optionally, the preview content of the preview area is displayed in the following manner:
analyzing the preview content of the preview area into a print label and an attribute value corresponding to the print label;
receiving an arrangement instruction, wherein the arrangement instruction comprises a specified column number and a specified row number;
and arranging and displaying the printing labels and the attribute values corresponding to the printing labels according to the designated column number and the designated line number.
Optionally, the apparatus 700 further comprises:
the fifth receiving module is used for receiving a template storage instruction;
and the storage module is used for storing the updated label template in a template library according to the template storage instruction, wherein the updated label template is obtained by updating the standard label template according to the user operation.
Based on the same inventive concept, another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to any of the above-mentioned embodiments of the present application.
Based on the same inventive concept, another embodiment of the present application provides an electronic device 800, as shown in fig. 8. Fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a memory 802, a processor 801 and a computer program stored on the memory and executable on the processor, which when executed performs the steps of the method according to any of the embodiments of the present application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing describes in detail a tag template generation method, apparatus, electronic device and readable storage medium provided by the present application, and specific examples are applied herein to explain the principles and implementations of the present application, and the descriptions of the foregoing examples are only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A tag template generation method is characterized by comprising the following steps:
acquiring a standard label template, and displaying the standard label template in a preview area;
receiving a printing item position adjusting instruction, wherein the printing item position adjusting instruction comprises a target position;
adjusting at least one printing item on the standard label template from a standard display position to a target display position according to the printing item position adjusting instruction to obtain a label template with an adjusted position;
and updating the preview content of the preview area into the label template after the position is adjusted.
2. The method according to claim 1, wherein the display module corresponding to the preview area is a touch display screen; the print item position adjusting instruction is an instruction triggered by a dragging operation, the starting point of the dragging operation is a standard display position of at least one print item on the standard label template, and the end point of the dragging operation is the target display position; or
The printing item position adjusting instruction is an instruction triggered by two clicking operations, wherein the first clicking operation in the two clicking operations is used for selecting at least one printing item on the standard label template, and the clicking position of the second clicking operation in the two clicking operations is the target display position;
and at least two printing items in the label template after the position adjustment are positioned in the same row.
3. The method of claim 1, further comprising:
receiving a print text editing instruction, wherein the print text editing instruction comprises a target print text;
according to the printing text editing instruction, updating the standard printing text of at least one printing item on the standard label template into the target printing text to obtain a label template with the updated printing text, wherein the length of the target printing text is different from that of the standard printing text;
and updating the preview content of the preview area into the label template after the print text is updated.
4. The method according to claim 3, wherein after updating the preview content of the preview area to the print text updated label template, the method further comprises:
detecting whether the display position of the printing text of each printing item in the label template after the printing text is updated exceeds the printing range;
and when the label template after the updating of the printing text contains the printing item of which the display position of the printing text exceeds the printing range, outputting prompt information to prompt a user to adjust the printing text of the printing item of which the display position exceeds the printing range.
5. The method according to any one of claims 1-4, further comprising:
receiving a printing item reorganization instruction, wherein the printing item reorganization instruction is used for reorganizing one or more printing items;
according to the printing item reorganization instruction, splitting a printing item on the standard label template or the updated label template into a plurality of printing items, or combining a plurality of printing items on the standard label template or the updated label template into one printing item to obtain a reorganized label template, wherein the updated label template is obtained by updating the standard label template according to user operation;
and updating the preview content of the preview area into the recombined label template.
6. The method according to any one of claims 1-4, further comprising:
receiving a printing item editing instruction, wherein the printing item editing instruction is used for adding a printing item, deleting the printing item or adjusting the style of the printing item;
adding a printing item, deleting a printing item or adjusting the style of a printing item on the standard label template or the updated label template according to the printing item editing instruction to obtain an edited label template, wherein the updated label template is obtained by updating the standard label template according to the operation of a user;
and updating the preview content of the preview area into the edited label template.
7. The method according to any of claims 1-4, wherein the preview content of the preview area is displayed in the following manner:
analyzing the preview content of the preview area into a print label and an attribute value corresponding to the print label;
receiving an arrangement instruction, wherein the arrangement instruction comprises a specified column number and a specified row number;
and arranging and displaying the printing labels and the attribute values corresponding to the printing labels according to the designated column number and the designated line number.
8. The method according to any one of claims 1-4, further comprising:
receiving a template storage instruction;
and storing the updated label template in a template library according to the template storage instruction, wherein the updated label template is obtained by updating the standard label template according to the user operation.
9. A label template generation apparatus, the apparatus comprising:
the acquisition module is used for acquiring a standard label template and displaying the standard label template in a preview area;
the printing system comprises a first receiving module, a second receiving module and a printing item position adjusting module, wherein the first receiving module is used for receiving a printing item position adjusting instruction, and the printing item position adjusting instruction comprises a target position;
the adjusting module is used for adjusting at least one printing item on the standard label template from a standard display position to a target display position according to the printing item position adjusting instruction to obtain a label template with an adjusted position;
and the first updating module is used for updating the preview content of the preview area into the label template after the position is adjusted.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the label template generating method according to any one of claims 1 to 8.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executed implements the steps in the label template generation method according to any one of claims 1 to 8.
CN202110064249.9A 2021-01-18 2021-01-18 Label template generation method and device, electronic equipment and readable storage medium Withdrawn CN112711388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110064249.9A CN112711388A (en) 2021-01-18 2021-01-18 Label template generation method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110064249.9A CN112711388A (en) 2021-01-18 2021-01-18 Label template generation method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112711388A true CN112711388A (en) 2021-04-27

Family

ID=75549261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110064249.9A Withdrawn CN112711388A (en) 2021-01-18 2021-01-18 Label template generation method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112711388A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408317A (en) * 2021-07-15 2021-09-17 中国南方电网有限责任公司 Intelligent label sticking monitoring method and system
CN114091637A (en) * 2021-10-18 2022-02-25 上海马帮科技有限公司 Label generation method and device, terminal equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210788A1 (en) * 2008-01-31 2009-08-20 March Jr William Label data procurement and management system
JP2012045816A (en) * 2010-08-26 2012-03-08 Ricoh Co Ltd Image forming apparatus, preview image processing method, program, and recording medium
CN105912281A (en) * 2015-02-23 2016-08-31 精工爱普生株式会社 Information processing device, display method for information processing device, and program
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN107368698A (en) * 2017-08-31 2017-11-21 武汉联影医疗科技有限公司 Bar code masterplate acquisition methods and medical history management equipment
CN109460197A (en) * 2018-11-15 2019-03-12 宁夏隆基宁光仪表股份有限公司 A kind of user's receipt dynamic print method, apparatus, equipment and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210788A1 (en) * 2008-01-31 2009-08-20 March Jr William Label data procurement and management system
JP2012045816A (en) * 2010-08-26 2012-03-08 Ricoh Co Ltd Image forming apparatus, preview image processing method, program, and recording medium
CN105912281A (en) * 2015-02-23 2016-08-31 精工爱普生株式会社 Information processing device, display method for information processing device, and program
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN107368698A (en) * 2017-08-31 2017-11-21 武汉联影医疗科技有限公司 Bar code masterplate acquisition methods and medical history management equipment
CN109460197A (en) * 2018-11-15 2019-03-12 宁夏隆基宁光仪表股份有限公司 A kind of user's receipt dynamic print method, apparatus, equipment and readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408317A (en) * 2021-07-15 2021-09-17 中国南方电网有限责任公司 Intelligent label sticking monitoring method and system
CN114091637A (en) * 2021-10-18 2022-02-25 上海马帮科技有限公司 Label generation method and device, terminal equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US10489051B2 (en) Handwriting input apparatus and control method thereof
CN110300966B (en) Enhanced pivot table creation and interaction
CN109005283B (en) Method, device, terminal and storage medium for displaying notification message
JP5439456B2 (en) Electronic comic editing apparatus, method and program
CN102999752A (en) Method and device for quickly identifying local characters in picture and terminal
CN112052038B (en) Method and device for generating front-end interface
CN112711388A (en) Label template generation method and device, electronic equipment and readable storage medium
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
US20060225091A1 (en) Customizing and personalizing views in content aggregation frameworks
CN112269519B (en) Document processing method and device and electronic equipment
US10719201B2 (en) Writing system, information processing apparatus, and non-transitory computer readable medium for dividing writing information associated with an identified sheet into separate documents based on timing information
KR20160064925A (en) Handwriting input apparatus and control method thereof
JP2024086787A5 (en) Application, information processing device, system, and method for controlling information processing device
CN113361525A (en) Page generation method and device based on OCR, computer equipment and storage medium
US20070266315A1 (en) System and method for creating and presenting mathematical documents
JP2006277001A (en) Input image displaying method, and input image displaying program
CN109871257B (en) Page element display method, device and equipment
CN112306488A (en) Combined icon generation method, device, equipment and computer readable storage medium
CN111724455A (en) Image processing method and electronic device
CN115270737B (en) Method and device for modifying format of target object
CN113378526A (en) PDF paragraph processing method, device, storage medium and equipment
KR100953586B1 (en) Word processor based method for electronically proofreading a document and a computer-readable recording medium containing programs for the same method
JP4305325B2 (en) Sticky note information processing method, sticky note information processing system, and sticky note information processing program
CN113807058A (en) Text display method and text display device
CN114063854A (en) File editing processing method and device and electronic equipment

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210427

WW01 Invention patent application withdrawn after publication