Method and device for converting PDF document, terminal and medium

A document and conversion processing technology, which is applied in the computer field, can solve problems such as PDF document format error, file inconsistency, failure to retain html page style, etc.

Pending Publication Date: 2020-10-30
深圳市中农易讯信息技术有限公司 +1
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The relevant PDF conversion method completes the conversion in the background, so the converted PDF document cannot retain the style of the html page; at the same time, when the html page is more complex, the converted PDF document is prone to format errors and the PDF document is printed After the file does not meet the user's viewing habits

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 PDF document, terminal and medium
  • Method and device for converting PDF document, terminal and medium
  • Method and device for converting PDF document, terminal and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

[0024] It should be noted that although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it can be executed in a different order than the module division in the device or the flowchart in the flowchart. steps shown or described.

[0025] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0026] According to...

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 a PDF document, a terminal and a medium. The method comprises the steps of determining dom elements corresponding to an html page based on the html page to be converted; converting the dom element into an html canvas element; converting the html canvas element into a picture to be converted; judging whether the to-be-converted picture needs to be paged or not; and converting the to-be-converted picture into a PDF document according to a judgment result. According to the invention, the dom element corresponding to the html page is converted twice, the html page is converted into the picture, and the characteristics of the html page are reserved in the form of the picture, so that the view style of the html page is reserved in the PDF document obtained through conversion, and the problems of information omission and even abnormal conversion caused by directly converting the html page into the PDF document are avoided; meanwhile,the to-be-converted picture is paged, so that the PDF document conforms to the viewing habit of the user, and the user can print the PDF document conveniently.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, device, terminal and medium for converting PDF documents. Background technique [0002] With the rapid development of web technology, browsers are widely used, especially browsers that convert web pages into PDF documents. The relevant PDF conversion method completes the conversion in the background, so the converted PDF document cannot retain the style of the html page; at the same time, when the html page is more complex, the converted PDF document is prone to format errors and the PDF document is printed The latter file does not conform to the user's viewing habits. Contents of the invention [0003] In order to solve at least one of the above technical problems, the present application provides a method, device, terminal and medium for converting PDF documents. [0004] According to the first aspect of the present application, a method for converting...

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): G06F40/151G06F16/958
CPCG06F16/986G06F40/151
Inventor 陈炼抄
Owner 深圳市中农易讯信息技术有限公司
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