Unlock instant, AI-driven research and patent intelligence for your innovation.

Canvas-based dynamic web page printing method, system and storage medium

A technology of dynamic web pages and printing instructions, which is applied in the field of computer networks, can solve problems such as printing blanks, and achieve the effect of solving printing blanks

Active Publication Date: 2021-11-12
广州鼎甲计算机科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, the purpose of the embodiments of the present invention is to provide a canvas-based dynamic webpage printing method, system and storage medium, which can solve the problem of printing blanks caused by asynchronous loading of dynamic webpages

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
  • Canvas-based dynamic web page printing method, system and storage medium
  • Canvas-based dynamic web page printing method, system and storage medium
  • Canvas-based dynamic web page printing method, system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. For the step numbers in the following embodiments, it is only set for the convenience of illustration and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art sexual adjustment.

[0038] Such as figure 1 As shown, the embodiment of the present invention provides a canvas-based dynamic web page printing method, including the following steps:

[0039] S100. Obtain a print instruction, clone a printed target document object model according to the print instruction, and recursively retrieve all node information of the target document object model;

[0040] S200. Determine the rendering queue of the canvas according to the node information, and render the canvas into a picture according to the ren...

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 discloses a canvas-based dynamic webpage printing method, system and storage medium. The method includes the following steps: obtaining a printing instruction, cloning a printed target document object model according to the printing instruction, and recursively extracting all the objects. The node information of the document object model; determine the rendering queue of the canvas according to the node information, and render the canvas into a picture according to the rendering queue; replace the picture with the target document object model, and perform a printing operation. The embodiments of the present invention can solve the problem of printing blanks caused by asynchronous loading of dynamic web pages. The embodiment of the present invention can be widely applied in the technical field of computer network.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a canvas-based dynamic web page printing method, system and storage medium. Background technique [0002] With the development of computer network technology, more and more websites adopt asynchronous loading method, such as more and more websites obtain back-end data asynchronously through JavaScript to form dynamic pages; for example, a large number of websites currently use Element-UI, MUSE-UI , Vuetify and other UI component libraries, some of which need to be loaded asynchronously; such as the mainstream chart library Echarts, most of them use asynchronous data loading mode and use dynamic styles. If the asynchronously loaded data cannot be obtained by using the default printing function of the browser or the traditional printing method, the printing result will not match the content seen by the browser, the style will be disordered, and some blanks will be caused....

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/1203G06F3/1208G06F3/1272
Inventor 石文军范佳马立珂王子骏
Owner 广州鼎甲计算机科技有限公司