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


