A printing method and device for browser display page

A technology for displaying pages and printing devices, applied in the field of printing, can solve problems such as low printing efficiency, achieve the effects of improving efficiency, reducing modification time, and ensuring confidentiality and security

Active Publication Date: 2019-02-19
BEIJING HAITAI FANGYUAN HIGH TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for printing pages displayed by a browser, to solve the problem of low printing efficiency caused by controlling content that is not allowed to be printed by the user through the print control field

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A printing method and device for browser display page
  • A printing method and device for browser display page
  • A printing method and device for browser display page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] see figure 1 , Embodiment 1 of the present invention provides a method for printing a page displayed by a browser, including:

[0061] S110. Obtain an initial page according to an instruction triggered by the user to print the page currently displayed by the browser;

[0062] S120. Invoking a pre-configured policy for modifying the initial page, and modifying the initial page according to the policy to obtain a target page;

[0063] S130. Print the target page.

[0064] Wherein, the pre-configured strategy for modifying the initial page includes: the first modification strategy of the browser operating system configuration; wherein, the first modification strategy of the browser operating system configuration can be configured when the browser operating system is installed, and The original policy can be overwritten and updated by receiving the policy distributed by the server.

[0065] For step S120, modify the initial page according to the strategy to obtain the ta...

Embodiment 2

[0086] In order to facilitate the understanding of how to modify the HTML element by modifying the rules of the element type, Embodiment 2 of the present invention provides that the pre-configured strategy only includes the rules for modifying the element type. The specific content is as follows:

[0087]

[0088] see image 3 , step S120 includes:

[0089] S310. Read the rule for modifying the element type in the pre-configured strategy; since there are two rules for modifying the element type in the strategy, the elements in the initial page that meet the conditions are screened sequentially according to the order in which the two rules are read. and modify.

[0090] S320. Since the element types to be screened are not limited in the previous rule, that is, all elements satisfy the filtering conditions, a hide operation is performed on all elements in the initial page obtained in step S110.

[0091] S330. In the latter rule, only image elements and text domain elements ...

Embodiment 3

[0093] In order to facilitate the understanding of how to modify the identification attributes of HTML elements by modifying the rules of element attributes, Embodiment 3 of the present invention provides that the preconfigured strategy only includes the rules for modifying element attributes. The specific content is as follows:

[0094]

[0095] see Figure 4 , step S120 includes:

[0096] S410. Read the rules for modifying element attributes in the pre-configured strategy; since there are two rules for modifying element attributes in the strategy, according to the order in which the two rules are read, the element attributes that meet the conditions in the initial page are sequentially processed. Filter and modify.

[0097] S420. Since the element type to be filtered is not limited in the previous rule, that is, all elements satisfy the filtering condition, a visible operation is performed on all elements in the initial page acquired in step S110.

[0098] S430. In the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a printing method and device for a page displayed on a browser. A pre-configured strategy is called, the acquired page currently displayed on the browser is modified according to the strategy, compared with an existing method that page printing is controlled by modifying programming codes of the page, the process of page modification is greatly shortened, and the modification efficiency is improved. The method comprises the steps that according to an instruction triggered by a user for printing the page currently displayed on the browser is triggered by a user, an initial page is acquired; the pre-configured strategy for modifying the initial page is called, according to the strategy, the initial page is modified, and a target page is obtained; the target page is printed.

Description

technical field [0001] The invention relates to the technical field of printing, in particular to a printing method and device for displaying pages in a browser. Background technique [0002] Generally, browsers generally provide functions of saving and printing pages, and when a user triggers a webpage printing operation, the browser will send the cached data of the displayed webpage to the printer. However, because of the security and confidentiality of the webpage data, the administrator of the webpage sometimes does not want all the displayed webpage information to be printed out, so how to effectively control the printing of the displayed page has become an urgent problem to be solved. [0003] At present, the administrator of the web page can only pre-set the print control field in the written web page, and the browser processes the print content by reading the print control field, so that the content corresponding to the print control field is not printed. [0004] T...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/12
CPCG06F3/1205G06F3/125
Inventor 唐天其蒋红宇安晓江
Owner BEIJING HAITAI FANGYUAN HIGH TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products