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

Method and device for converting webpage data into PDF file

A web page, conversion technology, applied in the fields of electronic digital data processing, special data processing applications, instruments, etc., can solve the problem of inconvenient local storage and labeling of teaching resources

Inactive Publication Date: 2019-12-03
SHENZHEN DIANMAO TECH CO LTD
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention provides a method and device for converting web page data into PDF files to solve the problem that in the prior art, students can only use browsers to access teaching resources, which is inconvenient for local storage and marking of teaching resources. The problem

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
  • Method and device for converting webpage data into PDF file
  • Method and device for converting webpage data into PDF file
  • Method and device for converting webpage data into PDF file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] see figure 1 , figure 1 It is the implementation flow diagram of the method for converting web page data into PDF files according to the embodiment of the present invention. figure 1 It can be obtained that the method for converting web page data of the present invention into a PDF file includes:

[0025] Step S101: Receive the target website address corresponding to the web page data, and call the web page acceptance testing tool to operate the browser to access the target website address.

[0026] Step S102: Load the target webpage corresponding to the target URL, and determine whether the target webpage has been loaded.

[0027] Step S103: If the target webpage has been loaded, use the webpage acceptance testing tool to take a screenshot of the target webpage to form a target webpage picture. In this step, if the loading of the target webpage has not been completed, wait until the loading of the target webpage is completed to prepare for the next step.

[0028] S...

Embodiment 2

[0047] see figure 2 , figure 2 It is a partial structural frame diagram of an embodiment of a device for converting web page data into a PDF file in an embodiment of the present invention, combined with figure 2 It can be obtained that the device 100 for converting web page data of the present invention into a PDF file includes:

[0048] The receiving and calling module 110 is configured to receive the target website address corresponding to the web page data, and call the webpage acceptance test tool to operate the browser to access the target website address.

[0049] The loading judging module 120 is configured to load the target webpage corresponding to the target URL, and judge whether the loading of the target webpage has been completed.

[0050] The image capture module 130 is configured to use the webpage acceptance testing tool to take a screenshot of the target webpage to form a target webpage image when it is determined that the target webpage has been loaded. ...

Embodiment 3

[0054] see image 3 ,refer to image 3 It can be seen that a computer-readable storage medium 10 in the embodiment of the present invention, such as: ROM / RAM, a magnetic disk, an optical disk, etc., stores a computer program 11 thereon, and when the computer program 11 is executed, the implementation is as in the embodiment. A method for converting web page data into a PDF file. Since the method for converting web page data into a PDF file has been described in detail in Embodiment 1, the description will not be repeated here.

[0055] The method for converting web page data into a PDF file realized by the embodiment of the present invention is to operate the browser to access the target website by calling the web page acceptance testing tool, and load the target webpage corresponding to the target website, and use the webpage acceptance test after the target webpage is loaded. The test tool takes a screenshot of the target webpage to form a target webpage picture, and final...

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 method and device for converting webpage data into a PDF file, and the method for converting the webpage data into the PDF file comprises the steps: receiving a target website corresponding to the webpage data, and calling a webpage acceptance testing tool to operate a browser to access the target website; loading a target webpage corresponding to the target website, andjudging whether the target webpage is loaded or not; if so, performing screenshot on the target webpage by using the webpage acceptance test tool to form a target webpage picture; and converting the target webpage picture into a target PDF file, exporting the target PDF file, and storing the target PDF file to a specified address. The problem that in the prior art, students can only use browsers to have access to teaching resources, and local storage, labeling and other operations of the teaching resources are inconvenient is solved.

Description

technical field [0001] The invention relates to the technical field of web page processing applications, in particular to a method and device for converting web page data into PDF files. Background technique [0002] At present, most of the teaching resources in many education and training companies are displayed to students in the form of web pages. However, this form of webpage has certain limitations, that is, it is very inconvenient for students to access teaching resources when the network is disconnected. In addition, since students can only use a browser to access teaching resources (whether it is a computer or a mobile phone), it is not convenient for local storage of teaching resources and operations such as marking. In many teaching systems, only PDF files are supported for distributing or reading materials. Contents of the invention [0003] Embodiments of the present invention provide a method and device for converting web page data into PDF files to solve th...

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 Applications(China)
IPC IPC(8): G06F17/21G06F17/22
Inventor 李天驰孙悦李海帆刘绍锴张发耀郑心然吕城宇
Owner SHENZHEN DIANMAO TECH CO LTD