CN102541836B - A kind of method and device adjusting format file layout - Google Patents

A kind of method and device adjusting format file layout Download PDF

Info

Publication number
CN102541836B
CN102541836B CN201010624176.6A CN201010624176A CN102541836B CN 102541836 B CN102541836 B CN 102541836B CN 201010624176 A CN201010624176 A CN 201010624176A CN 102541836 B CN102541836 B CN 102541836B
Authority
CN
China
Prior art keywords
layout files
user terminal
data content
layout
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010624176.6A
Other languages
Chinese (zh)
Other versions
CN102541836A (en
Inventor
瞿超
万巍
雷超
李鹏
徐剑波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Fangzheng Apapi Technology Co Ltd
New Founder Holdings Development Co ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Apabi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Apabi Technology Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201010624176.6A priority Critical patent/CN102541836B/en
Publication of CN102541836A publication Critical patent/CN102541836A/en
Application granted granted Critical
Publication of CN102541836B publication Critical patent/CN102541836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and device adjusting format file layout, to improve the reasonability that layout files is carried out typesetting, thus improve layout files display quality in the user terminal.Method includes: receive the acquisition request that user terminal sends, and this acquisition request carries fileinfo and the screen size information of described user terminal of layout files;Orient corresponding layout files according to described fileinfo, and extract the data content of this layout files;According to described screen size information and the data content extracted, generating file destination, the space of a whole page size of this file destination adapts with the size of the screen of described user terminal.Use technical solution of the present invention, improve layout files display quality in the user terminal to a certain extent.

Description

A kind of method and device adjusting format file layout
Technical field
The present invention relates to electronic information field, particularly relate to a kind of method and device adjusting format file layout.
Background technology
At present, when user needs to obtain, from layout files application system, the layout files needing online browse, from application system, orient, according to keyword retrieval, the layout files that user terminal needs by the browser of user terminal, and at this layout files of browser display of user terminal.
Layout files server is that the size of the space of a whole page of layout files definition is bigger, owing to the screen size of user terminal is smaller, therefore, content in the original space of a whole page that can not show layout files the most on the screen of the user terminal or the space of a whole page that layout files can not be shown in the screen of user terminal completely, therefore, after needing layout files server that user terminal needs the space of a whole page of the layout files browsed be adjusted, then show this layout files on the screen of the user terminal.At present, the mode that the space of a whole page of layout files is adjusted by layout files server is mainly: extracted by data content corresponding for layout files, the content file of one fixed dimension of regeneration is also sent to user terminal, including said extracted word content out in this content file, the content file received is browsed in its browser by user terminal;Or, layout files server adds, in the content file generated, the pattern that the browser of user terminal is capable of identify that, by browser according to the space of a whole page size of the automatic Suitable content file of the pattern in content file.
Layout files server generates the content file of fixed dimension, the difference arranged due to the size of the display screen of different user terminals, the space of a whole page size using the content file that this kind of mode still can exist fixed dimension is not to be suitable for all of user terminal, when some screen size differs bigger user terminal displays content file with fixed dimension, yet suffer from layout files content and show that unintelligible or space of a whole page content shows incomplete situation, the problem still suffering from display quality poor (content shown in as is unintelligible);Layout files server adds, in the content file generated, the pattern that the browser of user terminal enough identifies, owing in content file, data source is of a great variety, not only include word content, and may also contain picture, form, the multiple data such as video, the browser of user terminal is poor to the space of a whole page self-adaptative adjustment ability of layout files, the browser using user terminal carries out the effectiveness comparison difference of self-adaptative adjustment according to the pattern in content file, therefore, this kind of mode is used to yet suffer from the problem that layout files display quality in the screen of user terminal is poor.
Summary of the invention
The problem that the effect that shows in the user terminal for layout files present in prior art is poor, the present invention provides a kind of method and device adjusting format file layout, to improve the reasonability of the typesetting to layout files, thus improve layout files display quality in the user terminal.
A kind of method adjusting format file layout, including:
Receiving the acquisition request that user terminal sends, this acquisition request carries fileinfo and the screen size information of described user terminal of layout files;
Orient corresponding layout files according to described fileinfo, and extract the data content of this layout files;
According to described screen size information and the data content extracted, generating file destination, the space of a whole page size of this file destination adapts with the size of the screen of described user terminal.
A kind of device adjusting format file layout, including:
Request reception unit, for receiving the acquisition request that user terminal sends, this acquisition request carries the fileinfo of layout files and the screen size information of this user terminal;
Data content extraction unit, is connected with described request reception unit, for orienting corresponding layout files according to the fileinfo obtained in request, and extracts the data content of this layout files;
Layout files signal generating unit, it is connected with described data content extraction unit and described request reception unit respectively, for the data content extracted according to the described screen size information obtained in request and described data content extraction unit, generating file destination, the space of a whole page size of this file destination adapts with the size of the screen of described user terminal.
In the embodiment of the present invention, when receiving the acquisition request of the screen size information carrying this user terminal that user terminal sends, navigate to corresponding layout files and extract the data content of this layout files, and the file destination that the size of the screen generating space of a whole page size and described user terminal according to the data content extracted adapts, the space of a whole page size of file destination owing to generating adapts with the size of the screen of user terminal, improve the reasonability that file destination is carried out typesetting, thus improve layout files display quality in the user terminal to a certain extent.
Accompanying drawing explanation
Fig. 1 is the method flow diagram adjusting format file layout in the embodiment of the present invention;
Fig. 2 is the structural representation of the device adjusting format file layout in the embodiment of the present invention;
Fig. 3 is the method flow diagram adjusting format file layout in the embodiment of the present invention.
Detailed description of the invention
The technical problem existed for prior art, the embodiment of the present invention provides a kind of method and device adjusting format file layout, improve the reasonability that file destination is carried out typesetting, thus improve layout files display quality in the user terminal to a certain extent.The method includes: user terminal carries the fileinfo of layout files and the screen size information of this user terminal in the acquisition request that layout files server sends;Layout files server orients corresponding layout files according to the fileinfo obtained in request, and extract the data content of this layout files, and according to the screen size information obtained in request, the data content extracted, the file destination that the size of the screen generating space of a whole page size and user terminal adapts.Use technical solution of the present invention, owing to the size of the space of a whole page of the file destination of version server generation adapts with the size of user terminal screen, so that the space of a whole page of file destination more meets the size of the screen of user terminal, the data content that improve layout files shows definition in the user terminal and integrity, improves layout files display quality in the user terminal to a certain extent.
Below in conjunction with Figure of description, technical solution of the present invention is described in detail.
Seeing Fig. 1, be to adjust the method flow diagram of format file layout in embodiment for the present invention, the method comprising the steps of:
Step 101, layout files server receive the acquisition request that user terminal sends, and this acquisition request includes fileinfo and the screen size information of described user terminal of layout files.
Step 102, layout files server orient corresponding layout files according to the fileinfo obtained in request, and extract the data content of this layout files.
The data content that step 103, layout files server extract according to the described screen size information obtained in request and step 102 generates file destination, and the space of a whole page size of this file destination adapts with the size of the screen of described user terminal.
The step 102 of above-mentioned flow process, specifically include: acquisition request is resolved by layout files server, resolve and obtain the fileinfo of layout files and the screen size information of user terminal, and the fileinfo obtained according to parsing, determine storage position and the decruption key of layout files;According to the storage location positioning determined to corresponding layout files, and use the decruption key determined the layout files oriented to be decrypted and navigated to the page number of request, from this page number, obtain the data contents such as text, picture, form or video.
In above-mentioned flow process 103, specifically include: layout files server uses the file generated algorithm pre-set that the data content got is generated file destination, and during generating, screen size information according to user terminal, position, the size of data content is adjusted correspondingly, to guarantee that the size of the space of a whole page of the file destination generated adapts with the size of the screen of described user terminal.The space of a whole page size of file destination adapts with the size of the screen of user terminal, can be that the width of the space of a whole page of file destination is identical with the width of the screen of user terminal.
It is preferred that above-mentioned flow process also includes:
The file destination of generation is sent to described user terminal by step 104, layout files server, in order to user terminal shows this file destination on its screen.
In the embodiment of the present invention, user terminal sends layout files to layout files server and obtains request, specifically include: the user terminal browser by self, from layout files application system, navigate to this user terminal need the layout files of online browse, and from layout files application system, obtain the fileinfo corresponding with this layout files;User terminal starts the size that browser detected and obtained the screen of this user terminal, and generates screen size information;User terminal generates acquisition request Concurrency and gives layout files server, carries the fileinfo of layout files and the screen size information of this user terminal in this acquisition request.
The embodiment of the present invention also provides for a kind of device adjusting format file layout, and the structure of this device is as shown in Figure 2.
Seeing Fig. 2, for adjusting the structural representation of the device of format file layout in the embodiment of the present invention, this device includes:
Request reception unit 21, for receiving the acquisition request that user terminal sends, comprises the fileinfo of layout files and the screen size information of this user terminal in this acquisition request.
Data content extraction unit 22, is connected with request reception unit 21, for orienting corresponding layout files according to the fileinfo obtained in request, and extracts the data content of this layout files.
Layout files signal generating unit 23, it is connected with data content extraction unit 22 and request reception unit 21 respectively, the data content extracted for the dimension information according to the described screen obtained in request and described data content extraction unit 22, generating file destination, the space of a whole page size of this file destination adapts with the size of the screen of described user terminal.
How above-mentioned data content extraction unit 22 extracts the data content in layout files, can use aforementioned manner, not repeat them here.
How above-mentioned target version signal generating unit 23 generates the file destination that space of a whole page size is equivalently-sized with user terminal screen, can use aforementioned manner, not repeat them here.
It is preferred that said apparatus can also include:
Layout files transmitting element 24, is connected with target version signal generating unit 23, for the file destination that layout files signal generating unit 23 generates is sent to user terminal.
With a most detailed method flow, technical solution of the present invention is described in detail below, the method flow process as it is shown on figure 3, include:
Step 301, user terminal obtain the fileinfo of the layout files that user needs by its browser from layout files application system.
Step 302, user terminal start its browser and automatically detect and obtain size corresponding to the screen of this user terminal (including the length of screen and wide information), and generate screen size information according to the size that screen is corresponding.
Step 303, user terminal generate acquisition request Concurrency and give layout files server, carry the fileinfo of layout files and the screen size information of user terminal in this acquisition request.
Step 304, the request reception unit 21 of layout files server receive the acquisition request that user terminal sends, this acquisition request is resolved, and the fileinfo that parsing obtained and screen size information are sent to the data content extraction unit 22 of layout files server.
Step 305, data content extraction unit 22 are according to the fileinfo received, determine storage position and the decruption key of layout files, and according to storage location positioning to corresponding layout files, the decruption key determined is used the layout files oriented to be decrypted and navigated to the page number of request, from this page number, obtain the data contents such as text, picture, form or video, and the data content of acquisition is sent to the layout files signal generating unit 23 of layout files server.
Step 306, layout files signal generating unit 23 use the file generated algorithm pre-set that the data content got is generated file destination, and during generating, screen size information according to user terminal, position, the size of data content is adjusted correspondingly, to guarantee that the size of the space of a whole page of the file destination generated adapts with the size of the screen of described user terminal, and file destination is sent to layout files transmitting element 24.
File destination is sent to the user terminal initiating to obtain request by step 307, layout files transmitting element 24.
File destination is shown on the screen of the user terminal by step 308, the browser of user terminal, in order to user browses.
Layout files application system in the embodiment of the present invention can be Digital Resource Platform, user terminal orients layout files from layout files application system, it is specifically as follows: user terminal inputs key word " digital publishing " at Digital Resource Platform, choose from index structure list and need by the layout files of page browsing, the form of this layout files can be CEB (ChineseE-paperBasic) or CEBX (Commone-DocumentofBlendingXML, common electronic document based on mixing XML) form.
In the embodiment of the present invention, user terminal is when the acquisition request that layout files server sends, the screen size information of this user terminal is carried in this acquisition is asked, therefore, when layout files server selection to corresponding layout files and extracts corresponding data content from this layout files, the file destination that size according to the data content generation space of a whole page size extracted with the screen of described user terminal adapts, equivalently-sized due to space of a whole page size and the screen of user terminal of file destination that generate, so that the space of a whole page of file destination more meets the size of the screen of user terminal, the data content that improve layout files shows definition in the user terminal and integrity, improve layout files display quality in the user terminal to a certain extent.
Obviously, those skilled in the art can carry out various change and modification without departing from the spirit and scope of the present invention to the present invention.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the method adjusting format file layout, it is characterised in that including:
Receiving the acquisition request that user terminal sends, this acquisition request carries fileinfo and the screen size information of described user terminal of layout files;
Orient corresponding layout files according to described fileinfo, and extract the data content of this layout files;
According to described screen size information and the data content extracted, generating file destination, the space of a whole page size of this file destination adapts with the size of the screen of described user terminal.
2. the method for claim 1, it is characterised in that after receiving described acquisition request, also include:
Described acquisition request to receiving resolves, and obtains described fileinfo and described screen size information.
3. method as claimed in claim 2, it is characterised in that orient corresponding layout files according to described fileinfo, and extract the data content of this layout files, including:
The fileinfo obtained according to parsing, determines storage position and the decruption key of layout files;
According to the storage location positioning determined to corresponding layout files, and use the decruption key determined that the layout files oriented is decrypted, from the layout files after deciphering, extract corresponding data content.
4. method as claimed in claim 2 or claim 3, it is characterized in that, generate file destination, including: the screen size information obtained according to parsing, position and size to the object that the data content extracted is comprised are adjusted, the file destination that the size of the screen generating space of a whole page size and described user terminal adapts.
5. the method for claim 1, it is characterised in that also include:
The file destination of generation is sent to described user terminal.
6. the device adjusting format file layout, it is characterised in that including:
Request reception unit, for receiving the acquisition request that user terminal sends, this acquisition request carries the fileinfo of layout files and the screen size information of this user terminal;
Data content extraction unit, is connected with described request reception unit, for orienting corresponding layout files according to the fileinfo obtained in request, and extracts the data content of this layout files;
Layout files signal generating unit, it is connected with described data content extraction unit and described request reception unit respectively, for the data content extracted according to the described screen size information obtained in request and described data content extraction unit, generating file destination, the space of a whole page size of this file destination adapts with the size of the screen of described user terminal.
7. device as claimed in claim 6, it is characterised in that described request reception unit is further used for, and the described acquisition request to receiving resolves, and obtains described fileinfo and described screen size information.
8. device as claimed in claim 7, it is characterised in that described data content extraction unit, specifically for: resolve the fileinfo obtained according to described request reception unit, determine storage position and the decruption key of layout files;According to described storage location positioning to corresponding layout files, and the layout files oriented is decrypted by described decruption key, extracts corresponding data content from the layout files after deciphering.
9. device as claimed in claim 7 or 8, it is characterized in that, described layout files signal generating unit, specifically for: the screen size information obtained is resolved according to described request reception unit, position and the size of the object that the data content extracting described data content extraction unit is comprised are adjusted, the file destination that the size of the screen generating space of a whole page size and described user terminal adapts.
10. device as claimed in claim 6, it is characterised in that also include:
Layout files transmitting element, is connected with described layout files signal generating unit, and the described file destination generated for described layout files generation module is sent to described user terminal.
CN201010624176.6A 2010-12-31 2010-12-31 A kind of method and device adjusting format file layout Active CN102541836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010624176.6A CN102541836B (en) 2010-12-31 2010-12-31 A kind of method and device adjusting format file layout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010624176.6A CN102541836B (en) 2010-12-31 2010-12-31 A kind of method and device adjusting format file layout

Publications (2)

Publication Number Publication Date
CN102541836A CN102541836A (en) 2012-07-04
CN102541836B true CN102541836B (en) 2016-08-03

Family

ID=46348761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010624176.6A Active CN102541836B (en) 2010-12-31 2010-12-31 A kind of method and device adjusting format file layout

Country Status (1)

Country Link
CN (1) CN102541836B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150291B (en) * 2013-01-31 2015-09-09 小米科技有限责任公司 File method for cutting edge, terminal and server
CN103500166B (en) * 2013-08-22 2016-07-13 合一网络技术(北京)有限公司 A kind of response type webpage design method of progressive enhancing
CN103605640B (en) * 2013-12-03 2016-08-17 中国联合网络通信集团有限公司 Form adaption method and device
CN105095173B (en) * 2014-05-07 2018-03-06 北大方正集团有限公司 Composing device and composition method based on typesetting result
CN104581369A (en) * 2014-12-22 2015-04-29 广东省广播电视网络股份有限公司 Multi-channel high-definition live program forwarding method and system based on broadcast television network home gateway
CN107832273B (en) * 2017-11-17 2022-01-25 青岛海信移动通信技术股份有限公司 Ink screen content display method and device and display content pushing method and device
CN112053203A (en) * 2020-08-14 2020-12-08 中国物品编码中心 Commodity picture display method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808482A (en) * 2006-02-09 2006-07-26 北京北大方正电子有限公司 Visual electronic signature and verification method
CN1845099A (en) * 2006-04-27 2006-10-11 掌富科技(南京)有限公司 Method and structure for conversion and storage of multimedia electronic file in intelligent mobile terminal
CN101388004A (en) * 2008-10-17 2009-03-18 北大方正集团有限公司 Method for regulating page size of pollable document format file, apparatus and system
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017706A1 (en) * 2008-07-21 2010-01-21 Xerox Corporation Document size conversion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808482A (en) * 2006-02-09 2006-07-26 北京北大方正电子有限公司 Visual electronic signature and verification method
CN1845099A (en) * 2006-04-27 2006-10-11 掌富科技(南京)有限公司 Method and structure for conversion and storage of multimedia electronic file in intelligent mobile terminal
CN101388004A (en) * 2008-10-17 2009-03-18 北大方正集团有限公司 Method for regulating page size of pollable document format file, apparatus and system
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal

Also Published As

Publication number Publication date
CN102541836A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102541836B (en) A kind of method and device adjusting format file layout
US11546418B2 (en) Method, client, server, and system for sharing content
US10515142B2 (en) Method and apparatus for extracting webpage information
US8527581B2 (en) Apparatus and method for synchronizing E-book content with video content and system thereof
CN110072152B (en) Method and apparatus for identifying and presenting internet-accessible content
US8924251B2 (en) Systems and methods for providing one or more pages from an electronic document
US20090044128A1 (en) Adaptive publishing of content
US9589063B2 (en) Two-dimensional code processing method and terminal
CN102479307B (en) Mobile device and video file hiding method of mobile device
CN103389969A (en) Method, device and system for previewing PDF (portable document format) file on mobile terminal
US20140310748A1 (en) Creating cover art for media browsers
JP2014029701A (en) Document processing for mobile devices
CN104516892A (en) Distribution method, system and terminal of user generated content associated with rich media information
WO2015010569A1 (en) Enhanced network data sharing and acquisition
KR102361112B1 (en) Extracting similar group elements
US20150058452A1 (en) Video loading method, device and system of mobile terminal
CN102760157B (en) A kind of for generating the method that release news, device and the equipment corresponding with mobile terminal
CN103605773A (en) Multimedia file searching method and device
CN102681977B (en) Method, content providing server and system for providing reading services
US8935725B1 (en) Visually browsing videos
CN106778449B (en) Object identification method of dynamic image and interactive film establishment method for automatically capturing target image
JP6260347B2 (en) Program, information processing apparatus, electronic content display system, and display suppression method
CN106156298A (en) The method and device of the page is moved in a kind of website that generates
CN102681974A (en) Display method, display device and electronic device
CN109829060A (en) A kind of data capture method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220624

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: Beijing Fangzheng apapi Technology Co., Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: Beijing Fangzheng apapi Technology Co., Ltd.