CN116774952A - Text printing method and device - Google Patents

Text printing method and device Download PDF

Info

Publication number
CN116774952A
CN116774952A CN202310761497.8A CN202310761497A CN116774952A CN 116774952 A CN116774952 A CN 116774952A CN 202310761497 A CN202310761497 A CN 202310761497A CN 116774952 A CN116774952 A CN 116774952A
Authority
CN
China
Prior art keywords
printed
file
input
information
preview interface
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
Application number
CN202310761497.8A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310761497.8A priority Critical patent/CN116774952A/en
Publication of CN116774952A publication Critical patent/CN116774952A/en
Pending legal-status Critical Current

Links

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/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • 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
    • G06F3/1256User feedback, e.g. print preview, test print, proofing, pre-flight checks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

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)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a text printing method and device, and belongs to the technical field of electronics. The method comprises the following steps: receiving a first input for printing an object to be printed; responding to the first input, displaying a print preview interface, wherein the print preview interface comprises at least one piece of information to be printed, and the at least one piece of information to be printed is information except advertisement information in an object to be printed; receiving a second input to the print preview interface; in response to the second input, a first file is generated based on the first information to be printed, and the first file is printed, the first information to be printed including one or more of the at least one information to be printed.

Description

Text printing method and device
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a text printing method and device.
Background
Currently, electronic devices can print content in a document through a printing device. In the related art, after obtaining a document, an electronic device may directly transfer the document to a printing device based on an input of a user, and print all contents in the document through the printing device.
However, in the above method, if the user only needs to print a part of the content in the document, the user needs to intercept the part of the content through the electronic device, and then transmit the intercepted content to the printing device, which results in complicated and time-consuming process of determining the printed text, so that the efficiency of determining the printed text by the electronic device is low.
Disclosure of Invention
The embodiment of the application aims to provide a text printing method and device, which can improve the text printing efficiency of electronic equipment.
In a first aspect, an embodiment of the present application provides a text printing method, including: receiving a first input for printing an object to be printed; responding to a first input, displaying a print preview interface, wherein the print preview interface comprises at least one piece of information to be printed, and the at least one piece of information to be printed is information except advertisement information in an object to be printed; receiving a second input to the print preview interface; in response to the second input, a first file is generated based on first information to be printed, including one or more of the at least one information to be printed, and the first file is printed.
In a second aspect, an embodiment of the present application provides a text printing apparatus, including: the device comprises a receiving module, a display module and a processing module. And the receiving module is used for receiving a first input for printing the object to be printed. The display module is used for responding to the first input received by the receiving module and displaying a printing preview interface, wherein the printing preview interface comprises at least one piece of information to be printed, and the at least one piece of information to be printed is information except advertisement information in an object to be printed. And the receiving module is also used for receiving a second input of the printing preview interface. And the processing module is used for responding to the second input received by the receiving module, generating a first file based on the first information to be printed, and printing the first file, wherein the first information to be printed comprises one or more pieces of information to be printed in the at least one piece of information to be printed.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the electronic equipment receives a first input for printing an object to be printed, and responds to the first input, a print preview interface is displayed, wherein the print preview interface comprises at least one piece of information to be printed, and the at least one piece of information to be printed is the information except advertisement information in the object to be printed; receiving a second input to the print preview interface; in response to the second input, a first file is generated based on the first information to be printed, and the first file is printed, the first information to be printed including one or more of the at least one information to be printed. In the scheme, the electronic equipment automatically removes the advertisement information contained in the object to be printed in the process of printing the object to be printed, so that the displayed print preview interface only contains key contents in the object to be printed, and further, a user can conveniently display the information to be printed in the print preview interface according to own requirements.
Drawings
FIG. 1 is one of the flowcharts of a text printing method provided by an embodiment of the present application;
FIG. 2A is one example schematic diagram of a printing interface of a text printing method according to an embodiment of the present application;
FIG. 2B is a diagram illustrating a second example of a printing interface of a text printing method according to an embodiment of the present application;
FIG. 2C is a third exemplary diagram of a printing interface of a text printing method according to an embodiment of the present application;
FIG. 3 is one example schematic diagram of a print preview interface of a text printing method according to an embodiment of the present application;
FIG. 4 is one example schematic diagram of a print selection interface for a text printing method according to an embodiment of the present application;
FIG. 5 is a second flowchart of a text printing method according to an embodiment of the present application;
FIG. 6 is a third flowchart of a text printing method according to an embodiment of the present application;
FIG. 7 is a fourth flowchart of a text printing method according to an embodiment of the present application;
FIG. 8 is a second exemplary diagram of a print selection interface for a text printing method according to an embodiment of the present application;
FIG. 9 is a second exemplary diagram of a print preview interface of a text printing method according to an embodiment of the present application;
Fig. 10 is a schematic structural view of a text printing device according to an embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 12 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The text printing method and device provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The text printing method and device provided by the embodiment of the application can be applied to a webpage printing scene.
Illustratively, take the example of a user desiring to print a web page. In the related art, in case that the electronic device displays a web page, the user may right-key an arbitrary area of the web page, so that the electronic device may display a plurality of editing options, for example, a print option, a reload option, and an attribute option, and then the user may click on the print option, so that the electronic device may copy all contents in the web page and transmit the copied contents to the printer, and thus the electronic device may perform web page printing.
However, if the user only wants to print a part of the content in the web page, the user needs to cut off the part of the content in the web page through screenshot software in the electronic device, save the part of the content as a picture, and then the electronic device inputs the picture into the printer, so that the content required by the user is printed, and the whole printing process is time-consuming and tedious.
In the text printing method, the electronic equipment automatically removes advertisement information contained in the webpage process, so that the displayed printing preview interface only contains key content in the webpage, and further, a user can conveniently display information to be printed in the printing preview interface according to own requirements, so that the electronic equipment can generate and print a first file according to the information to be printed displayed in the printing preview interface, the efficiency of the electronic equipment in determining the text to be printed is improved, and meanwhile, the flexibility of the electronic equipment in printing the text is also improved.
The execution subject of the text printing method provided by the embodiment of the application can be a text printing device, and the text printing device can be an electronic device or a functional module in the electronic device. The technical solution provided by the embodiment of the present application is described below by taking an electronic device as an example.
The embodiment of the application provides a text printing method, and fig. 1 shows a flow chart of the text printing method provided by the embodiment of the application. As shown in fig. 1, the text printing method provided by the embodiment of the present application may include the following steps 201 to 204.
Step 201, the electronic device receives a first input for printing an object to be printed.
Alternatively, in some embodiments of the present application, the object to be printed may include advertisement information; alternatively, no advertisement information is included.
Alternatively, in some embodiments of the present application, the first input may be a click input, a long press input, a preset track input, or a slide input of the user to be printed. Which may be determined according to circumstances, embodiments of the present application are not limited.
Optionally, in some embodiments of the application, the object to be printed includes at least one of: documents, application interfaces of application programs, web page contents and images.
The object to be printed may be a locally stored object in the electronic device, an object sent by other electronic devices and received by the electronic device through an instant messaging application program, or an object obtained by the electronic device through a browser.
The above-mentioned web content may be, for example, web content downloaded by the electronic device through a browser; or, the electronic device views the web page content online through the browser.
Optionally, in some embodiments of the application, the advertisement information may include at least one of: game-type advertisements, life-type advertisements, shopping-type advertisements, and recommended application-type advertisements, etc.
Step 202, the electronic device displays a print preview interface in response to the first input.
In some embodiments of the present application, the print preview interface includes at least one piece of information to be printed, where the at least one piece of information to be printed is information other than advertisement information in the object to be printed.
It may be appreciated that in the case where the advertisement information is included in the object to be printed, the electronic device may remove the advertisement information included in the object to be printed in response to the first input, and then display at least one piece of the information to be printed in the print preview interface; in the case that the advertisement information is not included in the object to be printed, the electronic device may directly display at least one piece of information to be printed in the print preview interface.
In some embodiments of the present application, the information to be printed includes at least one of: text information, multimedia files. Further, the multimedia file includes at least one of: image, audio file, video file, web page links.
Optionally, in some embodiments of the present application, after receiving the first input, the electronic device obtains the object to be printed, extracts information to be printed from the object to be printed, and then displays a print preview interface, and displays all or part of the information to be printed in the print preview interface.
In one possible example, in a case where the object to be printed is a document, the electronic device may display all or part of the content in the document as the information to be printed in the print preview interface after receiving the first input. Wherein the content contained in the document includes at least one of: text, pictures, tables, and formulas.
Optionally, in some embodiments of the application, the first input comprises: in the case of displaying an application interface of a first application, a user receives a first input. That is, the object to be printed is an application interface of the first application.
In one possible example, after receiving the first input, the electronic device may perform screen capturing processing on an application interface of the first application to obtain a first screenshot, then remove advertisement information in the first screenshot, and display the processed first screenshot as information to be printed in a print preview interface.
In another possible example, after receiving the first input, the electronic device may grab key information other than the advertisement information from an application interface of the first application to generate at least one to-be-printed information, and then display the to-be-printed information in a print preview interface.
Optionally, in some embodiments of the present application, after receiving the first input, the electronic device may extract information included in the object to be printed through a first algorithm, then classify the information through a second algorithm to distinguish advertisement information from the object to be printed, and finally, the electronic device ignores the advertisement information and displays the information to be printed in a print preview interface, that is, the print preview interface does not include advertisement information.
Alternatively, in some embodiments of the present application, the first algorithm may be a crawler algorithm or an artificial intelligence (Artificial Intelligence, AI) algorithm.
Alternatively, in some embodiments of the present application, the second algorithm may be any one of the following: binary classification algorithms, multivariate classification algorithms, multi-label classification algorithms, or unbalanced classification algorithms.
In an exemplary case where the object to be printed is a web page, after receiving the first input, the electronic device may crawl the web content of the web page through a crawler algorithm based on the web page address of the web page, and then divide the obtained web content through a multi-tag classification algorithm to distinguish advertisement information from the web content to be printed.
Also by way of example, the process of distinguishing advertisement information from web page content to be printed by the multi-tag classification algorithm may be as follows:
for the title bar: the navigation bar, sidebar, advertisement content in a web page can be generally identified directly by analyzing tags of < title >, < h1>, < iframe > and the like in hypertext markup language (HyperText Markup Language, HTML).
For audio files and video files: whether an audio or video file is one may be determined based on tags in the HTML code or by finding a particular player plug-in the page.
Alternatively, in some embodiments of the present application, after receiving the first input, the electronic device may display the print preview interface via the first policy.
Illustratively, the first policy may specifically include at least one of:
a. if the object to be printed is identified to contain the common text information, the text content of the object to be printed is automatically extracted, arranged and displayed on a print preview interface.
b. If the object to be printed is identified to contain suspected advertisements or title bar and side bar information, automatically ignoring the content.
c. And if the object to be printed is identified to contain the audio file, displaying the text content corresponding to the audio file on a print preview interface.
d. And if the object to be printed is identified to contain the video file, displaying the video file on a print preview interface.
Illustratively, the electronic device sorting the text content may include at least one of: and adjusting the display position of the text content in the print preview interface and changing attribute information of the text content.
Illustratively, the attribute information includes at least one of: word size, word color, and word font.
Optionally, in some embodiments of the present application, the print preview interface may include at least one of the following: at least one piece of information to be printed, a web page link corresponding to the object to be printed, a printing control and a printing selection control.
Optionally, in an embodiment of the present application, the print preview interface further includes: a file switching control; the file switching control is used for switching the object to be printed. The electronic device receives a fourth input of the file switching control by a user, and changes the object to be printed in response to the fourth input.
Optionally, in some embodiments of the present application, the object to be printed includes web content of a first web page; the above step 201 may be specifically implemented by the following step 201 a.
Step 201a, receiving a first input in case of displaying a web page link of a first web page.
In some embodiments of the present application, the print preview interface displays web content of the first web page.
In some embodiments of the present application, the web content of the first web page includes at least one of the following: text content, picture content, and video content.
In some embodiments of the present application, the electronic device displays a print preview interface corresponding to the first web page after receiving the first input.
It should be noted that, the web content of the first web page displayed in the print preview interface does not include advertisement content.
Alternatively, in some embodiments of the application, the electronic device may receive the first input while the second interface is displayed.
Illustratively, the second interface displays a web page link of the first web page. Further, the web page link of the first web page may be a web page link displayed in a web address column, or the web page link of the first web page may be a web page link displayed in a history print record. For example, the first input includes: in the case of displaying a web page link of a first web page, user input to a print control in a second interface.
Illustratively, the second interface includes an input box for inputting a web page link, and the first input includes: the user inputs a web page link of the first web page at the input box and inputs a print control in the second interface.
The input box may be, for example, a website bar in a browser.
As shown in fig. 2A, taking a second interface as a browsing interface of a browser as an example, the browsing interface 10 includes a print favorite 11 and a print website column 12, where the print favorite 11 includes a website 1 and a website 2, the website 1 corresponds to a print control 1, and the website 2 corresponds to a print control 2; the printing website column 12 includes a website input frame and a printing control 13. As shown in fig. 2B, if the user wants to print the web page content corresponding to the web address 1, the user may directly click on the print control 1 to display the print preview interface corresponding to the web address 1. Alternatively, as shown in fig. 2C, if the user wants to print the web page content corresponding to the web address 3, the user may input a web page link corresponding to the web address 3 in the web address input frame, denoted as www.XXXX.com, and click the print control 3 after inputting the link to display a print preview interface corresponding to the web address 3.
Illustratively, in connection with fig. 2C, as shown in fig. 3, a print preview interface corresponding to the web address 3 is displayed in fig. 3, where the print preview interface includes a print web address bar 12, a web page preview area 14, and a print icon 15. If the user determines that the information to be printed displayed in the webpage preview area 14 is the content that needs to be printed, the print icon 15 may be clicked, so that the electronic device generates the first file for printing based on at least one piece of information to be printed in the webpage preview area. In addition, the print preview interface further comprises: the web page switching control 16 is used for supporting switching different websites in the printing process and displaying a printing preview interface corresponding to the different websites.
Therefore, the electronic equipment can keep the key information in the website by removing the advertisement information in the webpage content.
Step 203, the electronic device receives a second input to the print preview interface.
In some embodiments of the present application, the second input may be used to determine the first information to be printed.
In some embodiments of the present application, the first information to be printed includes one or more information to be printed of the at least one information to be printed. It may be appreciated that the first information to be printed may be all or part of at least one information to be printed displayed in the print preview interface.
In an example, the first information to be printed may be information to be printed selected by a user from at least one information to be printed displayed in a print preview interface, that is, the second input may be used to select the first information to be printed from the print preview interface.
In another example, the first information to be printed may be all information to be printed displayed in the print preview interface. The second input may be, for example, an input to a print control in a print preview interface.
It will be appreciated that after the electronic device displays the print preview interface, the electronic device may directly perform the print process without modifying the content displayed in the print preview interface.
Alternatively, in some embodiments of the present application, the second input may be a click input, a long press input, a preset track input, or a slide input of the user on the print preview interface. Which may be determined according to circumstances, embodiments of the present application are not limited.
Optionally, in some embodiments of the present application, the print preview interface may further include: at least one print selection control, one print control corresponding to one type of information to be printed.
Further, the second input includes user input to one or more of the at least one print selection control.
Further, the information type to be printed includes at least one of the following: text, picture, audio, video.
For example, the print preview interface includes an "audio" print control, where the "audio" print control is used to select whether to select audio information corresponding to an audio file as the first information to be printed.
For example, the print preview interface includes a "video" print control, where the "video" print control is used to select whether to select video information corresponding to a video file as the first information to be printed.
For example, the print preview interface described above contains a "photo" print control for selecting whether to select a photo as the information to be printed.
For example, the print preview interface described above contains a "text" print control for selecting whether text is selected as the first information to be printed.
Illustratively, as shown in fig. 4, an "audio" print selection control 17 and a "video" print selection control 18 are displayed in the print preview interface, where prompt information is displayed in the "audio" print selection control 17, such as "identify audio file, print or not", and prompt information is displayed in the "video" print selection control 18, such as "identify video file, print or not". At this time, if the user only needs to print the video file, the user may click on the "video" print selection control 18 to cause the electronic device to display the video file in the print preview interface.
Step 204, the electronic device responds to the second input, generates a first file based on the first information to be printed, and prints the first file.
In some embodiments of the present application, after receiving the second input, the electronic device obtains the first information to be printed, and then generates a first file based on the typesetting information of the first information to be printed included in the print preview interface, and prints the first file as the file to be printed.
Alternatively, in some embodiments of the present application, the typesetting information of the first information to be printed may be preset typesetting information, or may be determined based on the typesetting information of the first information to be printed displayed in the print preview interface, which is not limited in the present application.
In the text printing method provided by the embodiment of the application, the electronic equipment receives a first input for printing an object to be printed, and responds to the first input, a printing preview interface is displayed, wherein the printing preview interface comprises at least one piece of information to be printed, and the at least one piece of information to be printed is the information except advertisement information in the object to be printed; receiving a second input to the print preview interface; in response to the second input, a first file is generated based on the first information to be printed, and the first file is printed, the first information to be printed including one or more of the at least one information to be printed. In the scheme, the electronic equipment automatically removes the advertisement information contained in the object to be printed in the process of printing the object to be printed, so that the displayed print preview interface only contains key contents in the object to be printed, and further, a user can conveniently display the information to be printed in the print preview interface according to own requirements.
Optionally, in some embodiments of the present application, as shown in fig. 5 in conjunction with fig. 1, the first information to be printed includes at least N multimedia files, N multimedia files are displayed in the print preview interface, and N is a positive integer. Illustratively, step 203 may be implemented by step 203a described below, and step 204 may be implemented by step 204a described below.
Step 203a, the electronic device receives a second input for a first multimedia file of the N multimedia files.
Alternatively, in some embodiments of the present application, the number of the first multimedia files may be one or more.
Alternatively, in some embodiments of the present application, the first multimedia file may include an audio file and a video file.
Step 204a, the electronic device generates a first file based on the first multimedia file in response to the second input.
In some embodiments of the present application, the electronic device may select, through input from a user, a first multimedia file required by the user from a plurality of first multimedia files, so that the electronic device may generate the first file according to the first multimedia file.
In some embodiments of the present application, the first file may include only multimedia files or text content.
Alternatively, in some embodiments of the present application, the first multimedia file may include at least one of an audio file and a video file.
In the embodiment of the application, the electronic equipment can select the first multimedia file required by the user from the plurality of first multimedia files through the input of the user, so that the electronic equipment can generate the first file according to the first multimedia file, and the flexibility of the electronic equipment in acquiring the printing content in the first file is improved.
Optionally, in some embodiments of the present application, as shown in fig. 6 in conjunction with fig. 5, the first multimedia file includes a first audio file; the above step 204a may be specifically implemented by the following step 301.
Step 301, the electronic device responds to the second input to obtain second text content corresponding to the audio content of the first audio file, and generates the first file based on the second text content.
In some embodiments of the present application, the electronic device may obtain, according to a third algorithm, second text content corresponding to the audio content of the first audio.
Alternatively, in some embodiments of the present application, the third algorithm may be an AI algorithm or a neural network algorithm.
In some implementations of the application, after the electronic device obtains the second text content, the electronic device may add the second text content to the location of the first audio in the object to be printed to generate the first file.
Optionally, in some embodiments of the present application, after the electronic device obtains the second text content, the electronic device may add the second text content to the location of the first audio in the object to be printed according to the input of the print selection control corresponding to the first audio by the user, so as to generate the first file.
Alternatively, in some embodiments of the present application, the number of the first audio may be one or more.
Specifically, when the number of the first audios is a plurality of, the electronic device may display a print selection control corresponding to the plurality of first audios in the print preview interface, then the electronic device may select the first audio required by the user according to the input of the user, and finally the electronic device may generate the first file according to the second text content corresponding to the audio content of the first audio selected by the user.
Alternatively, in some embodiments of the present application, the user input may be input to one or more of the plurality of first controls.
In an exemplary case that the number of the first audios is 3, the electronic device may display 3 print selection controls corresponding to the 3 first audios in the print preview interface, then, the user may perform click input on any one of the 3 print selection controls, so that the electronic device may obtain second text content corresponding to audio content of the first audio corresponding to the any one of the print selection controls, and then, the electronic device may display the second text content in the print preview interface, and generate the first file according to the second text content.
In the embodiment of the application, when the electronic equipment prints the audio file, the text content corresponding to the audio content of the audio file can be obtained, so that the first file generated by the electronic equipment can contain the text content of the audio file, that is, the electronic equipment can convert the audio file into the text content, thereby supporting the audio content printing mode and improving the diversity of the text determined to be printed by the electronic equipment.
Alternatively, in some embodiments of the present application, as shown in fig. 7 in conjunction with fig. 5, the first multimedia file includes a first video file; after the step 203a, the text printing method provided by the embodiment of the present application further includes the following steps 401 and 402, and the "generating the first file based on the first multimedia file" in the step 204a may be specifically implemented by the following step 501.
In step 401, the electronic device responds to the second input to display M video frame images in the first video file, where M is a positive integer.
In some embodiments of the application, the electronic device may display M video frame images in the first video in the print preview interface.
In some embodiments of the present application, before the electronic device displays the M video frame images in the first video, the electronic device may obtain the M video frame images in the first video through a fourth algorithm.
Alternatively, in some embodiments of the present application, the fourth algorithm may be an image separation algorithm or a video extraction algorithm.
Alternatively, in some embodiments of the present application, the M video frame images may be each frame of video frame image in the first video; alternatively, the M video frame images may be key video frame images in the first video.
Step 402, the electronic device receives a third input of a first video frame image of the M video frame images.
Alternatively, in some embodiments of the present application, the number of the first video frame images may be one or more.
Alternatively, in some embodiments of the present application, the third input may be a click input, a long press input, a preset track input, or a slide input of the first video frame image of the M video frame images. Which may be determined according to circumstances, embodiments of the present application are not limited.
In step 501, the electronic device generates a first file based on the first video frame image in response to a third input.
Alternatively, in some implementations of the application, after the electronic device acquires the first video frame image, the electronic device may add the first video frame image to a location of the first video in the object to be printed to generate the first file.
Optionally, in some embodiments of the present application, after the electronic device acquires the first video frame image, the electronic device may add the first video frame image to a location of the first video in the object to be printed according to an input of a print selection control corresponding to the first video by a user, so as to generate the first file.
As an example, referring to fig. 4, as shown in fig. 8, 5 video frame images are displayed in the image display area 19 in fig. 8, the 5 video frame images are respectively image 1, image 2, image 3, image 4 and image 5, and if the user wants to print any 4 images of the 5 video frame images, the user can make a click input on the any 4 images in the image display area, so that the electronic device can determine the any 4 images as images to be printed, and the images are indicated by bold frames in fig. 8; and displaying "the number of selected print video images" in the image display area: 4 sheets).
In the embodiment of the application, when the electronic equipment prints the video file, the video frame image in the video file can be acquired, so that the first file generated by the electronic equipment can contain the video frame image, and the electronic equipment can convert the video file into the video frame image, so that the electronic equipment can support a video content printing mode, and the diversity of the electronic equipment for determining the printed text is improved.
Alternatively, in some embodiments of the present application, after the electronic device determines the information to be printed, the electronic device may display the determined information to be printed in the print preview interface.
Optionally, in some embodiments of the present application, the print preview interface includes at least one display area, where each display area displays at least one text content; the displaying print preview interface includes at least one of:
(1) In the case that the object to be printed contains the first text content, the electronic device displays the first text content in a first area of the print preview interface.
(2) In the case that the object to be printed contains the first audio file, the electronic device displays the second text content in a second area of the print preview interface.
In some embodiments of the present application, the second text content is text content corresponding to audio content of the first audio file.
(3) In the case where the object to be printed contains the first video file, the electronic device displays the first image in a third area of the print preview interface.
In some embodiments of the present application, the first image is at least one video frame image in a first video file.
Specifically, if the user selects to print the common text information, extracting the text content of the common text information and placing the common text information at the uppermost part in the printing preview interface; if the user selects to print the audio information, the text information after the audio information is converted is placed below the common text information by utilizing a voice-to-text algorithm, and the audio content is marked; if the user selects to print the video information, the video file is converted into a plurality of pictures according to the display frame rate of the video by utilizing a video extraction algorithm, the pictures are placed below the audio information, and the video pictures are marked.
Illustratively, as shown in fig. 9, assuming that the print preview interface 10 is divided into three partial areas, namely, an upper area, a middle area and a lower area, denoted by 19, 20 and 21 in fig. 9, the electronic device may display a first text content in the upper area 19 in the print preview interface 10, the electronic device may display a second text content corresponding to the audio content of the first audio in the middle area 20 in the print preview interface 10, and the electronic device may display 2 video frame images in the first audio in the lower area 21 in the print preview interface 10, namely, the video frame image 1 and the video frame image 2.
Alternatively, in some embodiments of the present application, the electronic device may change the display position of the fourth region in the print preview interface according to the user input to the fourth region.
Alternatively, in some embodiments of the present application, the fourth area may be any one of the first area, the second area, and the third area.
Alternatively, in some embodiments of the present application, the fourth area may be associated with a text content, that is, after the electronic device moves the fourth area, the content displayed in the fourth area may also move along with the fourth area.
Optionally, in some embodiments of the present application, after the electronic device determines the first information to be printed and the display area corresponding to the first information to be printed, the electronic device may generate the first file based on the first information to be printed and the display area corresponding to the first information to be printed, and display the first file in the print preview interface, where the electronic device may connect to the printing device to print the first file based on the input of the print control by the user.
Optionally, in the embodiment of the present application, after displaying the print preview interface corresponding to the web page, the user may input the print control in the print preview interface, so that the electronic device may print the content displayed in the print preview interface to obtain the first file. Or after the electronic device displays the print preview interface corresponding to the webpage, the user can input the information to be printed displayed in the print preview interface, so that the electronic device can adjust the printed text, and the electronic device can print according to the adjusted printed text to obtain the first file.
According to the embodiment of the application, the electronic equipment can display different types of text contents according to different display areas, so that the readability of the printed text is improved.
The text printing method provided by the present application is explained below by taking an object to be printed as a web page as an example, and the text printing method can be realized through steps 20 to 29.
Step 20, the user inputs the website in the website input field and clicks the print button.
Step 21, the electronic equipment crawls the webpage information of the website according to the website, and classifies the webpage information.
Optionally, in some embodiments of the present application, the above web page information includes at least one of: text information, web page layout information, pictures, and videos.
Optionally, in some embodiments of the present application, the text information includes at least one of: text size, text color, text font, and location of text in the web site.
Specifically, the electronic device may classify the webpage information according to a tag corresponding to the webpage information.
Optionally, in some embodiments of the present application, the classification of the webpage information includes: advertisement category, audio category, video category, and text category.
Step 22, the electronic device extracts text information in the webpage information.
Step 23, in case that the advertisement information is identified, the electronic device removes the advertisement information.
Alternatively, in some embodiments of the present application, the electronic device removing the advertisement information may be that the electronic device deletes the advertisement information in the print preview interface, or the electronic device does not acquire the advertisement information.
And step 24, under the condition that the webpage audio file is identified, the electronic equipment acquires text content corresponding to the audio content of the webpage audio file.
And step 25, when the user determines to print the webpage audio file, the electronic device displays text content corresponding to the audio content of the webpage audio file in a print preview interface.
Optionally, in some embodiments of the present application, in the case that the plurality of web page audio files are provided, the electronic device may select one or more web page audio files from the plurality of web page audio files according to a selection input of a user, so that the electronic device may display text content corresponding to the one or more web page audio files selected by the user in the print preview interface.
Step 26, under the condition that the webpage video file is identified, the electronic equipment acquires at least one video frame image corresponding to the webpage video file.
And step 27, displaying at least one video frame image of the electronic equipment in a print preview interface under the condition that the user determines to print the webpage video file.
Alternatively, in some embodiments of the present application, the electronic device may display one or more of the at least one video frame image in the print preview interface in accordance with a user input.
And 28, the electronic equipment sorts at least one of the text information, the text content corresponding to the audio content of the webpage audio file and at least one video frame image, and generates a print preview interface.
It will be appreciated that at least one of the following may be included in the print preview interface: text information, text content corresponding to audio content of a web page audio file, and at least one video frame image.
And 29, connecting the electronic equipment with a printer, inputting printing content, and finishing printing.
It will be appreciated that the print content described above is content displayed in a print preview interface.
In the text printing method provided by the embodiment of the application, when the electronic equipment prints the website, the advertisement information in the website is automatically removed so as to only reserve the key text content in the website, and the electronic equipment can select the content required by the user in the printing website through the input of the user in the printing preview interface, so that the electronic equipment can flexibly determine the content to be printed in the printing preview interface, thereby improving the efficiency of the electronic equipment in determining the text printing and improving the flexibility of the electronic equipment in printing the text.
It should be noted that, in the text printing method provided by the embodiment of the present application, the execution body may be a text printing device, or an electronic device, or may also be a functional module or entity in the electronic device. In the embodiment of the application, a text printing device is taken as an example to execute a text printing method.
Fig. 10 shows a schematic diagram of one possible configuration of a text printing apparatus according to an embodiment of the present application. As shown in fig. 10, the text printing device 70 may include: a receiving module 71, a display module 72 and a processing module 73.
Wherein the receiving module 71 is configured to receive a first input for printing an object to be printed. The display module 72 is configured to display, in response to the first input received by the receiving module, a print preview interface, where the print preview interface includes at least one piece of information to be printed, and the at least one piece of print information is information other than advertisement information in the object to be printed. The receiving module 71 is further configured to receive a second input to the print preview interface. The processing module 73 is configured to generate a first file based on the first information to be printed, and print the first file, in response to the second input received by the receiving module 71, where the first information to be printed includes one or more pieces of information to be printed of the at least one piece of information to be printed.
In one possible implementation manner, the print preview interface includes at least one display area, and each display area displays at least one text content correspondingly; the display module 72 is specifically configured to display at least one of the following: displaying the first text content in a first area of a print preview interface in the case that the object to be printed contains the first text content; displaying second text content in a second area of the print preview interface when the object to be printed contains the first audio file, wherein the second text content is text content corresponding to the audio content of the first audio file; and displaying a first image in a third area of the print preview interface when the object to be printed contains the first video file, wherein the first image is at least one video frame image in the first video file.
In one possible implementation manner, the object to be printed includes web content of a first web page; the receiving module 71 is specifically configured to receive a first input when the display module displays a web page link of a first web page; and displaying the webpage content of the first webpage in the printing preview interface.
In one possible implementation manner, the first information to be printed at least includes N multimedia files, N multimedia files are displayed in a print preview interface, and N is a positive integer; the receiving module 71 is specifically configured to receive a second input of a first multimedia file of the N multimedia files; the processing module 73 is specifically configured to generate the first file based on the first multimedia file in response to the second input received by the receiving module 71.
In one possible implementation manner, the first multimedia file includes a first audio file; the processing module 73 is specifically configured to obtain, in response to the second input received by the receiving module 71, second text content corresponding to the audio content of the first audio file, and generate the first file based on the second text content.
In one possible implementation, the first multimedia file includes a first video file; the display module 73 is further configured to display M video frame images in the first video file in response to the second input after the receiving module 71 receives the second input for the first multimedia file in the N multimedia files, where M is a positive integer. The receiving module 71 is further configured to receive a third input to a first video frame image of the M video frame images. The processing module 73 is specifically configured to generate the first file based on the first video frame image in response to the third input received by the receiving module 71.
The embodiment of the application provides a text printing device, which automatically removes advertisement information contained in an object to be printed in the process of printing the object to be printed, so that a displayed print preview interface only contains key contents in the object to be printed, and a user can conveniently display the information to be printed in the print preview interface according to own requirements.
The text printing device in the embodiment of the application can be electronic equipment or a component in the electronic equipment, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the mobile electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., and may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., without limitation of the embodiments of the present application.
The text printing device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The text printing device provided by the embodiment of the application can realize each process realized by the embodiment of the method, and in order to avoid repetition, the description is omitted.
Optionally, as shown in fig. 11, the embodiment of the present application further provides an electronic device 90, which includes a processor 91 and a memory 92, where the memory 92 stores a program or instructions that can be executed on the processor 91, and the program or instructions implement the steps of the above-mentioned embodiment of the text printing method when executed by the processor 91, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 12 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the user input unit 107 is for receiving a first input for printing an object to be printed. The display unit 106 is configured to display, in response to the first input, a print preview interface, where the print preview interface includes at least one piece of information to be printed, and the at least one piece of information to be printed is information other than advertisement information in the object to be printed. The user input unit 107 is further configured to receive a second input to the print preview interface. The processor 110 is configured to generate a first file based on first information to be printed in response to a second input, and print the first file, where the first information to be printed includes one or more pieces of information to be printed out of the at least one piece of information to be printed out.
The embodiment of the application provides electronic equipment, which automatically removes advertisement information contained in an object to be printed in the process of printing the object to be printed, so that a displayed print preview interface only contains key contents in the object to be printed, and a user can conveniently display the information to be printed in the print preview interface according to own requirements.
Optionally, in some embodiments of the present application, the print preview interface includes at least one display area, where each display area displays at least one text content; the display unit 106 is specifically configured to display at least one of the following: displaying the first text content in a first area of a print preview interface in the case that the object to be printed contains the first text content; displaying second text content in a second area of the print preview interface when the object to be printed contains the first audio file, wherein the second text content is text content corresponding to the audio content of the first audio file; and displaying a first image in a third area of the print preview interface when the object to be printed contains the first video file, wherein the first image is at least one video frame image in the first video file.
Optionally, in some embodiments of the present application, the object to be printed includes web content of a first web page; the user input unit 107 is specifically configured to receive a first input when displaying a web page link of a first web page; and displaying the webpage content of the first webpage in the printing preview interface.
Optionally, in some embodiments of the present application, the first information to be printed includes at least N multimedia files, N multimedia files are displayed in a print preview interface, and N is a positive integer; the user input unit 107 is specifically configured to receive a second input to a first multimedia file of the N multimedia files. The processor 110 is specifically configured to generate, in response to the second input, a first file based on the first multimedia file.
Optionally, in some embodiments of the present application, the first multimedia file includes a first audio file; the processor 110 is specifically configured to obtain, in response to the second input, second text content corresponding to the audio content of the first audio file, and generate the first file based on the second text content.
Optionally, in some embodiments of the present application, the first multimedia file includes a first video file; the display unit 106 is further configured to display M video frame images in the first video file in response to the second input after receiving the second input to the first multimedia file in the N multimedia files, where M is a positive integer. The user input unit 107 is further configured to receive a third input of a first video frame image of the M video frame images. The processor 110 is specifically configured to generate, in response to the third input, a first file based on the first video frame image.
The electronic device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the respective processes of the above-described text printing method embodiments, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (12)

1. A method of printing text, the method comprising:
receiving a first input for printing an object to be printed;
responding to the first input, displaying a print preview interface, wherein the print preview interface comprises at least one piece of information to be printed, and the at least one piece of information to be printed is information except advertisement information in the object to be printed;
receiving a second input to the print preview interface;
and generating a first file based on first information to be printed in response to the second input, and printing the first file, wherein the first information to be printed comprises one or more pieces of information to be printed in the at least one piece of information to be printed.
2. The method of claim 1, wherein the print preview interface includes at least one display area, each of the display areas corresponding to at least one text content;
the displaying the print preview interface includes at least one of:
displaying the first text content in a first area of the print preview interface when the object to be printed contains the first text content;
displaying second text content in a second area of the print preview interface when the object to be printed contains the first audio file, wherein the second text content is corresponding to the audio content of the first audio file;
And displaying a first image in a third area of the print preview interface when the object to be printed contains a first video file, wherein the first image is at least one video frame image in the first video file.
3. The method of claim 1, wherein the object to be printed comprises web content of a first web page;
the receiving a first input for printing an object to be printed, comprising:
receiving the first input under the condition of displaying a web page link of the first web page;
and displaying the webpage content of the first webpage in the print preview interface.
4. The method of claim 1, wherein the first information to be printed comprises at least N multimedia files, the N multimedia files being displayed in the print preview interface, N being a positive integer;
receiving a second input to the print preview interface, comprising:
receiving a second input to a first multimedia file of the N multimedia files;
the generating, in response to the second input, a first file based on first information to be printed, including:
the first file is generated based on the first multimedia file in response to the second input.
5. The method of claim 4, wherein the first multimedia file comprises a first audio file;
the generating the first file based on the first multimedia file in response to the second input, comprising:
and responding to the second input, acquiring second text content corresponding to the audio content of the first audio file, and generating the first file based on the second text content.
6. The method of claim 4, wherein the first multimedia file comprises a first video file;
after the receiving a second input to a first multimedia file of the N multimedia files, the method further comprises:
in response to the second input, displaying M video frame images in the first video file, M being a positive integer;
receiving a third input for a first video frame image of the M video frame images;
the generating the first file based on the first multimedia file includes:
the first file is generated based on the first video frame image in response to the third input.
7. A text printing device, the device comprising: the device comprises a receiving module, a display module and a processing module;
The receiving module is used for receiving a first input for printing an object to be printed;
the display module is used for responding to the first input received by the receiving module and displaying a printing preview interface, wherein the printing preview interface comprises at least one piece of information to be printed, and the at least one piece of printing information is information except advertisement information in the object to be printed;
the receiving module is further used for receiving a second input to the print preview interface;
the processing module is used for responding to the second input received by the receiving module, generating a first file based on first information to be printed, and printing the first file, wherein the first information to be printed comprises one or more pieces of information to be printed in the at least one piece of information to be printed.
8. The apparatus of claim 7, wherein the print preview interface includes at least one display area, each of the display areas corresponding to at least one text content;
the display module is specifically configured to display at least one of the following:
displaying the first text content in a first area of the print preview interface when the object to be printed contains the first text content;
Displaying second text content in a second area of the print preview interface when the object to be printed contains the first audio file, wherein the second text content is corresponding to the audio content of the first audio file;
and displaying a first image in a third area of the print preview interface when the object to be printed contains a first video file, wherein the first image is at least one video frame image in the first video file.
9. The apparatus of claim 7, wherein the object to be printed comprises web content of a first web page;
the receiving module is specifically configured to receive the first input when the display module displays a web page link of the first web page;
and displaying the webpage content of the first webpage in the print preview interface.
10. The apparatus of claim 7, wherein the first information to be printed comprises at least N multimedia files, the N multimedia files being displayed in the print preview interface, N being a positive integer;
the receiving module is specifically configured to receive a second input of a first multimedia file of the N multimedia files;
The processing module is specifically configured to generate the first file based on the first multimedia file in response to the second input received by the receiving module.
11. The apparatus of claim 10, wherein the first multimedia file comprises a first audio file;
the processing module is specifically configured to obtain second text content corresponding to the audio content in the first audio file in response to the second input received by the receiving module, and generate the first file based on the second text content.
12. The apparatus of claim 10, wherein the first multimedia file comprises a first video file;
the display module is further configured to, after the receiving module receives a second input to a first multimedia file of the N multimedia files, display M video frame images in the first video file in response to the second input, where M is a positive integer;
the receiving module is further configured to receive a third input to a first video frame image of the M video frame images;
the processing module is specifically configured to generate the first file based on the first video frame image in response to the third input received by the receiving module.
CN202310761497.8A 2023-06-25 2023-06-25 Text printing method and device Pending CN116774952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310761497.8A CN116774952A (en) 2023-06-25 2023-06-25 Text printing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310761497.8A CN116774952A (en) 2023-06-25 2023-06-25 Text printing method and device

Publications (1)

Publication Number Publication Date
CN116774952A true CN116774952A (en) 2023-09-19

Family

ID=87989180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310761497.8A Pending CN116774952A (en) 2023-06-25 2023-06-25 Text printing method and device

Country Status (1)

Country Link
CN (1) CN116774952A (en)

Similar Documents

Publication Publication Date Title
CA2918840C (en) Presenting fixed format documents in reflowed format
US10992622B2 (en) Method, terminal equipment and storage medium of sharing user information
CN103403706A (en) Multi-mode web browsing
US20180181288A1 (en) Method for displaying information, and terminal equipment
CN112988006B (en) Display method, display device, electronic equipment and storage medium
JP2007233659A (en) Information distribution system for network service
CN106874271A (en) A kind of method and system that PC webpages are converted to mobile terminal webpage
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
CN112416142A (en) Method and device for inputting characters and electronic equipment
CN116483488A (en) Screen display method, device, electronic equipment and readable storage medium
CN113239302A (en) Page display method and device and electronic equipment
CN106776634A (en) A kind of method for network access, device and terminal device
Tair The importance of responsive logo design across a wide range of devices on the web
CN116774952A (en) Text printing method and device
CN115309487A (en) Display method, display device, electronic equipment and readable storage medium
CN113010072A (en) Searching method and device, electronic equipment and readable storage medium
CN112286613A (en) Interface display method and interface display device
CN112732464A (en) Pasting method and device and electronic equipment
CN117010326A (en) Text processing method and device, and training method and device for text processing model
CN117311552A (en) Image generation method and device, electronic equipment and readable storage medium
CN114995698A (en) Image processing method and device
CN116108299A (en) Display method, display device, electronic equipment and readable storage medium
CN111859202A (en) Information collection method and device and electronic equipment
CN117311521A (en) Information input method, device, electronic equipment and readable storage medium
CN113504853A (en) Comment generation method and device

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