Adaptation method and device for document display format
A display format and display method technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problem of unable to adapt documents twice or multiple times
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] An embodiment of the present invention provides a document display format adaptation method, such as figure 1 As shown, the method mainly includes the following steps:
[0072] Step 110, read the format file;
[0073] In this step, the server uses the format file reading method to obtain the file name of the format file according to the input format file path; performs string analysis on the obtained file name according to the format file format distinction method to obtain the extension of the format file Name; call the corresponding format file reading method according to the obtained format file extension to read the format file.
[0074] Wherein, the type of the format file format may include: plain text file format (.txt), word document format (.doc) of versions below Office2007, word document format (.docx) of versions above Office2007, Excel files of versions below Office2007 format (.xls), Excel file format (.xlsx) of Office 2007 or later, portable document fo...
Embodiment 2
[0099] Corresponding to Embodiment 1, this embodiment provides a document display format adaptation device, such as figure 2 As shown, the device includes: a reading unit 21, an analyzing unit 22, and a determining unit 23; wherein,
[0100] The reading unit 21 is used to read the format file;
[0101] The parsing unit 22 is configured to parse the format file read by the reading unit 21, and when the format file includes first text information and picture information, acquire the first position information and the first position information of the first text information. the second location information of the picture information;
[0102] The determination unit 23 is configured to acquire the display specification of the terminal device, and determine the first adjustment ratio information of the first position information and the second position information according to the display specification of the terminal device; an adjustment ratio information to determine third po...
Embodiment 3
[0132] In practical application, when the user uses the method for adapting the document display format provided by the embodiment of the present invention, the user can easily and quickly read the document.
[0133] When a user browses the web with a smart phone or a tablet computer and clicks on a piece of news of interest, a request to read the news will be sent from the user side to the server. After receiving the read request, the server uses the format file to read the news. method to read the format file of the news;
[0134] Specifically, the server obtains the file name of the format file according to the format file path of the piece of news; performs character string analysis on the obtained file name according to the format file format distinction method, and obtains the extension of the format file; Call the corresponding format file reading method for the format file extension to read the format file.
[0135] After the service end reads the format file of the n...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com