Method for previewing PDF file, method for generating PDF file and method for processing PDF file

A file and font file technology, applied in word processing, electronic digital data processing, special data processing applications, etc., can solve the problems of easy crawling by crawlers, waste of transmission traffic and time, poor operability, etc., to improve copyright protection , increase security, improve the effect of speed

Active Publication Date: 2019-03-08
杭州索骥数据科技有限公司
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this method, the complete PDF must be downloaded, the file may be too large and the user’s permission to read it cannot be controlled, and it is very easy to be crawled by crawlers, which is not conducive to copyright protection
The second method is that the server converts the PDF into a picture to provide a preview. In this method, when the PDF file is converted into a picture, the transmission traffic and time will be wasted if the picture is too large.
The third method is that the server converts the PDF into plain text to provide a preview. When converted into plain text, the original appearance of the PDF file cannot be restored, which may cause difficulties for users to read.
[0004] For editing, the first is to use the official PDF reader to edit the PDF. The official PDF reader edits the PDF process is cumbersome, the operability is poor, and the computer memory occupied by its installation is also very large, and it is very difficult to use. inconvenient
The second method is to convert the PDF into word format for editing, and then regenerate the PDF. The code for generating PDF in this way is too cumbersome, not flexible enough, and difficult to form a complete solution

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 for previewing PDF file, method for generating PDF file and method for processing PDF file
  • Method for previewing PDF file, method for generating PDF file and method for processing PDF file
  • Method for previewing PDF file, method for generating PDF file and method for processing PDF file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Such as figure 1 As shown, the method for previewing a PDF file provided in this embodiment includes: parsing the original PDF file to obtain text, styles, fonts and pictures in the original PDF file (step S10). Randomly scrambling the acquired text and the order of the character parts in the pattern by means of absolute positioning to form a scrambled file (step S20). Store the out-of-sequence files formed by each page of the PDF, and simultaneously store the font files and picture files corresponding to the characters in the PDF page (step S30). Obtain the input PDF preview information (step S40). Query the stored out-of-sequence files according to the PDF preview information, and obtain the PDF page or multiple pages of PDF where the PDF preview information is located (step S50). Obtain the sequential arrangement of the characters according to the absolute positioning method, and at the same time obtain and reorganize the font files and picture files corresponding ...

Embodiment 2

[0043] Such as figure 2 As shown, this embodiment provides a method for generating a PDF file. The method includes: parsing the original PDF file to obtain the text, styles, fonts and pictures in the original PDF file (step S10). Randomly scrambling the acquired text and the order of the character parts in the pattern by means of absolute positioning to form a scrambled file (step S20). Store the out-of-sequence files formed by each page of the PDF, and simultaneously store the font files and picture files corresponding to the characters in the PDF page (step S30). The input PDF generation information is acquired (step S80). Query the stored out-of-sequence files according to the PDF generation information, and obtain the PDF page or multiple pages where the generated information is located (step S90). Obtain the sequence arrangement of the text according to the absolute positioning method, and convert the reorganized text and style into a file satisfying scalable vector gr...

Embodiment 3

[0050] Such as image 3 As shown, this embodiment provides a method for processing a PDF file. The method includes the method for previewing a PDF file provided in Embodiment 1 and the method for generating a PDF file provided in Embodiment 2. Specifically, the processing method of the PDF file provided by this embodiment includes:

[0051] The original PDF file is parsed to obtain the text, styles, fonts and pictures in the original PDF file (step S10). Randomly scrambling the acquired text and the order of the character parts in the pattern by means of absolute positioning to form a scrambled file (step S20). Store the out-of-sequence files formed by each page of the PDF, and simultaneously store the font files and picture files corresponding to the characters in the PDF page (step S30).

[0052] Obtain the input PDF preview information (step S40). Query the stored out-of-sequence files according to the PDF preview information, and obtain the PDF page or multiple pages of...

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 provides a method for previewing a PDF file, a method for generating the PDF file and a method for processing the PDF file. The previewing method comprises the following steps of analyzing an original PDF file to obtain a text, a pattern, a font and a picture in the original PDF file; randomly scrambling the order of the obtained text and the text part in the style in an absolute positioning manner to form an out-of-order file; storing out-of-order files formed by each page of PDF, and associating and storing font files and picture files corresponding to characters in the page ofPDF; obtaining input PDF preview information; querying a stored out-of-order file according to the PDF preview information to obtain a PDF or a plurality of PDF pages on which the PDF preview information resides; according to the absolute positioning mode, obtaining the order of the characters, obtaining font files and picture files corresponding to the characters and reorganizing the font filesand picture files; and displaying the PDF or multi-page PDF which satisfies the preview information of the PDF in the form of PDF at the browser end.

Description

technical field [0001] The invention relates to a file processing technology, and in particular to a method for previewing, generating and processing a PDF file. Background technique [0002] The PDF file (Portable Document Format) is a file format developed by Adobe Systems for file exchange in a manner independent of applications, operating systems, and hardware. Currently, most of the content or information on the Internet is displayed to users in the form of PDF files. Users need to preview or edit PDF files during use. [0003] For the preview, there are mainly three ways at present. The first way is that the user can read the content of the document by downloading the entire PDF file. In this method, a complete PDF must be downloaded. The file may be too large and the user's permission to read it cannot be controlled. At the same time, it is very easy to be crawled by crawlers, which is not conducive to copyright protection. The second method is that the server conv...

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/22G06F16/951
CPCG06F40/14
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