Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2014-12-17
武钢集团有限公司
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method is only suitable for a single adaptation, and it is impossible to adapt the document twice or multiple times according to the special needs of users.

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
  • Adaptation method and device for document display format
  • Adaptation method and device for document display format
  • Adaptation method and device for document display format

Examples

Experimental program
Comparison scheme
Effect test

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...

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 an adaptation method and device for a document display format. The method is applied to terminal equipment and comprises the following steps: reading a formatted document; analyzing the formatted document; acquiring first positional information of first text information and second positional information of picture information when the formatted document comprises the first text information and the picture information; acquiring a display specification of terminal equipment and determining first adjustment proportion information of the first positional information and the second positional information according to the display specification of the terminal equipment; determining third positional information of the first text information on the terminal equipment according to the first adjustment proportion information; determining fourth positional information of the picture information on the terminal equipment according to the first adjustment proportion information; determining the display mode of the first text information and the picture information on the terminal equipment according to the third positional information and the fourth positional information.

Description

technical field [0001] The present invention relates to the technical field of information display in mobile application research and development, in particular to a document display format adaptation method and device. Background technique [0002] In the research and development of mobile applications, it is the basic requirement of users to quickly, correctly and beautifully display documents on terminal display devices, but the specifications of terminal display devices used by users to display documents are not the same; therefore, when documents are sent from the server When pushing to the terminal, the document format must be adapted according to the specifications of the terminal display device; and, if necessary, the document format needs to be adapted for the second time based on the first adaptation based on the special needs of the user. [0003] However, in the process of realizing the technical solution of the invention in the embodiment of the present applicat...

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/21
Inventor 彭征张新
Owner 武钢集团有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products