Method and device for exporting PDF from web report and storage medium

A report and node technology, which is applied in other database retrieval, network data retrieval, instruments, etc., can solve the problems of low export efficiency, low efficiency, manual operation required for export, etc., and achieve the effect of improving efficiency

Active Publication Date: 2020-06-19
ZHUHAI PILOT TECH
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to overcome the deficiencies of the prior art, one of the purposes of the present invention is to provide a method for exporting PDF from a web report, which can solve the problems of web pages in the prior art. The export of the report requires manual operation, which leads to problems such as low export efficiency
[0004] The second purpose of the present invention is to provide a device for exporting PDF from web reports, which can solve the need for manual operation in the export of reports in web pages in the prior art and thus lead to Problems such as low export efficiency
[0005] The third object of the present invention is a storage medium, which can solve the problems in the prior art that the export of the report in the web page requires manual operation and leads to low export efficiency.

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 exporting PDF from web report and storage medium
  • Method and device for exporting PDF from web report and storage medium
  • Method and device for exporting PDF from web report and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] In order to solve the problem of inefficiency in report export in business systems, the present invention provides a method for exporting a web (World Wide Web, web page) report to PDF (Portable Document Format), which uses a pure front-end method without third-party plug-in dependencies, Realized ready-to-use, pluggable component library, web interface by specifying custom HTML (HyperText Markup Language, hypertext markup language) tags and the height of the header and footer, and dividing the report of the web interface by A4 paper standard Display effects, dynamically realize page-by-page rendering and export of the interface, and realize the function of automatically and quickly exporting reports.

[0044] In order to realize the export of reports, the present invention also sets custom attributes for HTML tags. When exporting, first insert custom attributes into the HTML tags of the HTML document corresponding to the report according to the export effect, then dyna...

Embodiment 2

[0097] The invention provides a device for exporting PDF from a web report. Such as Figure 5 As shown, a schematic diagram of the internal structure of a device for exporting a web report to PDF provided by an embodiment of the present invention.

[0098] In this embodiment, the device for exporting the PDF from the web report may be a PC (Personal Computer, personal computer), or may be a terminal device such as a smart phone, a tablet computer, or a portable computer. The device for exporting a PDF from a web report at least includes: a processor 12 , a communication bus 13 , a network interface 14 and a memory 11 .

[0099] Wherein, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the device for exporting...

Embodiment 3

[0115] The present invention also provides a storage medium, the storage medium is a computer-readable storage medium, and a program for exporting PDF from a web report is stored thereon, and the program for exporting PDF from a web report is a computer program, and the program for exporting PDF from a web report is a computer program. The program implements the following steps when executed by the processor:

[0116] Step S1: Set custom attributes according to business requirements; wherein, the custom attributes are shown in Table 1.

[0117] Step S2: When the export instruction is received, insert custom attributes into the HTML tags corresponding to the report according to business requirements, and assign values ​​to each custom attribute;

[0118] Step S3: Obtain the DOM node corresponding to the DIV tag from the HTML document according to the ID of the DIV tag in the HTML document corresponding to the report, and create a cloned Dom node according to the DOM node, and a...

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 for exporting a PDF from a web report. Firstly, custom attributes are set according to service requirements; inserting a corresponding custom attribute into the HTML tag during exporting; and then the actual height of a PDF page occupied by a DOM node in an HTML tag corresponding to the report after rendering during exporting is dynamically calculated, and finallythe PDF plug-in is called to convert picture data converted according to the canvas into a PDF file to be exported, so that the PDF exporting efficiency of the web report is greatly improved. The invention further provides a device for exporting the PDF from the web report and a storage medium.

Description

technical field [0001] The invention relates to a business system, in particular to a method, a device and a storage medium for exporting a PDF from a web report. Background technique [0002] The company's business system generally has the function of reporting, which is used for data statistics. Usually, reports are displayed on the web (World Wide Web, web page). When exporting and printing the report into written form, due to the charts, tables, and even tree structures in the report, when exporting the report It is easy to make mistakes, which will eventually lead to errors in the printed reports. Usually, it is necessary to manually adjust or re-draw charts, tables, etc. in the file, resulting in low report export efficiency and low work efficiency for business personnel. Contents of the invention [0003] In order to overcome the deficiencies of the prior art, one of the purposes of the present invention is to provide a method for exporting a web report to PDF, whi...

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
IPC IPC(8): G06F16/11G06F16/958G06F40/106
CPCG06F16/116G06F16/986
Inventor温桂龙刘玉明韦方宇彭玉冰
OwnerZHUHAI PILOT TECH