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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


