Movatterモバイル変換


[0]ホーム

URL:


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
CN102541836BCN201010624176.6ACN201010624176ACN102541836BCN 102541836 BCN102541836 BCN 102541836BCN 201010624176 ACN201010624176 ACN 201010624176ACN 102541836 BCN102541836 BCN 102541836B
Authority
CN
China
Prior art keywords
file
user terminal
data content
information
layout
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 LtdfiledCriticalPeking University Founder Group Co Ltd
Priority to CN201010624176.6ApriorityCriticalpatent/CN102541836B/en
Publication of CN102541836ApublicationCriticalpatent/CN102541836A/en
Application grantedgrantedCritical
Publication of CN102541836BpublicationCriticalpatent/CN102541836B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明公开了一种调整版式文件版面的方法及装置,以提高对版式文件进行排版的合理性,从而提高版式文件在用户终端中的显示质量。方法包括:接收用户终端发送的获取请求,该获取请求携带有版式文件的文件信息和所述用户终端的屏幕尺寸信息;根据所述文件信息定位出相应的版式文件,并提取出该版式文件的数据内容;根据所述屏幕尺寸信息和提取出的数据内容,生成目标文件,该目标文件的版面尺寸与所述用户终端的屏幕的尺寸相适应。采用本发明技术方案,在一定程度上提高了版式文件在用户终端中的显示质量。

The invention discloses a method and a device for adjusting the layout of a format file, so as to improve the rationality of typesetting the format file, thereby improving the display quality of the format file in a user terminal. The method includes: receiving an acquisition request sent by a user terminal, the acquisition request carrying the file information of the format file and the screen size information of the user terminal; locating the corresponding format file according to the file information, and extracting the format file Data content: generating a target file according to the screen size information and the extracted data content, and the layout size of the target file is adapted to the screen size of the user terminal. By adopting the technical scheme of the invention, the display quality of the format file in the user terminal is improved to a certain extent.

Description

Translated fromChinese
一种调整版式文件版面的方法及装置A method and device for adjusting the layout of a layout document

技术领域technical field

本发明涉及电子信息领域,尤其涉及一种调整版式文件版面的方法及装置。The invention relates to the field of electronic information, in particular to a method and device for adjusting the layout of a format file.

背景技术Background technique

目前,当用户需要从版式文件应用系统中获取需要在线浏览的版式文件时,通过用户终端的浏览器按照关键词检索从应用系统中定位出用户终端需要的版式文件,并在用户终端的浏览器显示该版式文件。At present, when a user needs to obtain a format file that needs to be browsed online from the format file application system, the browser of the user terminal searches for the format file required by the user terminal from the application system according to keywords, and displays it in the browser of the user terminal. Display the layout file.

版式文件服务器为版式文件定义的版面的尺寸比较大,由于用户终端的屏幕尺寸一般比较小,因此,不能直接在用户终端的屏幕上显示版式文件的原始版面或者在用户终端的屏幕中不能完全显示版式文件的版面中的内容,因此,需要版式文件服务器对用户终端需要浏览的版式文件的版面进行调整之后,再在用户终端的屏幕上显示该版式文件。目前,版式文件服务器对版式文件的版面进行调整的方式主要为:将版式文件对应的数据内容提取出来,再生成一个固定尺寸的内容文件并发送给用户终端,该内容文件中包含有上述提取出来的文字内容,用户终端将接收到的内容文件在其浏览器中浏览;或者,版式文件服务器在生成的内容文件中添加用户终端的浏览器能够识别的样式,由浏览器根据内容文件中的样式自动调整内容文件的版面尺寸。The format file server defines a layout file with a relatively large size. Since the screen size of the user terminal is generally relatively small, the original layout of the format file cannot be directly displayed on the screen of the user terminal or cannot be fully displayed on the screen of the user terminal. Therefore, the layout file server needs to display the layout file on the screen of the user terminal after adjusting the layout of the layout file to be browsed by the user terminal. Currently, the layout file server adjusts the layout of the layout file mainly by extracting the data content corresponding to the layout file, generating a content file with a fixed size and sending it to the user terminal. The content file contains the content extracted above. text content, the user terminal will browse the received content file in its browser; or, the format file server will add a style that the browser of the user terminal can recognize to the generated content file, and the browser will use the content file according to the style in the content file Automatically adjust the layout size of content files.

版式文件服务器生成固定尺寸的内容文件,由于不同用户终端的显示屏幕的尺寸设置的不同,采用该种方式还是会存在固定尺寸的内容文件的版面大小并不是适合所有的用户终端,在某些屏幕尺寸与固定尺寸相差较大的用户终端显示内容文件时,仍然存在版式文件内容显示不清晰或版面内容显示不完整的情况,仍存在显示质量较差(如显示的内容不清晰)的问题;版式文件服务器在生成的内容文件中添加用户终端的浏览器够识别的样式,由于内容文件中数据源种类繁多,不仅包括文字内容,而且还可能包含图片、表格、视频等多种数据,用户终端的浏览器对版式文件的版面自适应调整能力较差,采用用户终端的浏览器根据内容文件中的样式进行自适应调整的效果比较差的,因此,采用该种方式仍然存在版式文件在用户终端的屏幕中的显示质量较差的问题。The format file server generates fixed-size content files. Due to the different size settings of the display screens of different user terminals, there will still be fixed-size content files in this way. The layout size of the file is not suitable for all user terminals. On some screens When displaying content files on a user terminal with a large difference between the size and the fixed size, there are still cases where the content of the format file is not displayed clearly or the content of the layout is displayed incompletely, and there are still problems of poor display quality (such as the displayed content is not clear); The file server adds styles that can be recognized by the browser of the user terminal to the generated content file. Since there are many types of data sources in the content file, including not only text content, but also pictures, tables, videos and other data, the user terminal's Browsers have poor ability to self-adaptively adjust the layout of the format file, and the effect of self-adaptive adjustment based on the style in the content file is relatively poor when using the browser of the user terminal. A problem with poor display quality in the screen.

发明内容Contents of the invention

针对现有技术中存在的版式文件在用户终端中显示的效果较差的问题,本发明提供一种调整版式文件版面的方法及装置,以提高对版式文件的排版的合理性,从而提高版式文件在用户终端中的显示质量。Aiming at the problem in the prior art that the display effect of format files in user terminals is poor, the present invention provides a method and device for adjusting the layout of format files, so as to improve the rationality of the layout of format files, thereby improving the layout of format files. Display quality in user terminals.

一种调整版式文件版面的方法,包括:A method for adjusting the layout of a format file, comprising:

接收用户终端发送的获取请求,该获取请求携带有版式文件的文件信息和所述用户终端的屏幕尺寸信息;receiving an acquisition request sent by the user terminal, the acquisition request carrying the file information of the format file and the screen size information of the user terminal;

根据所述文件信息定位出相应的版式文件,并提取出该版式文件的数据内容;Locating the corresponding format file according to the file information, and extracting the data content of the format file;

根据所述屏幕尺寸信息和提取出的数据内容,生成目标文件,该目标文件的版面尺寸与所述用户终端的屏幕的尺寸相适应。A target file is generated according to the screen size information and the extracted data content, and the layout size of the target file is adapted to the screen size of the user terminal.

一种调整版式文件版面的装置,包括:A device for adjusting the layout of a format file, comprising:

请求接收单元,用于接收用户终端发送的获取请求,该获取请求携带有版式文件的文件信息和该用户终端的屏幕尺寸信息;a request receiving unit, configured to receive an acquisition request sent by the user terminal, the acquisition request carrying the file information of the format file and the screen size information of the user terminal;

数据内容提取单元,与所述请求接收单元相连接,用于根据获取请求中的文件信息定位出相应的版式文件,并提取出该版式文件的数据内容;A data content extracting unit, connected to the request receiving unit, for locating the corresponding forme file according to the file information in the acquisition request, and extracting the data content of the forme file;

版式文件生成单元,分别与所述数据内容提取单元和所述请求接收单元相连接,用于根据所述获取请求中的屏幕尺寸信息和所述数据内容提取单元提取出的数据内容,生成目标文件,该目标文件的版面尺寸与所述用户终端的屏幕的尺寸相适应。a format file generation unit, connected to the data content extraction unit and the request receiving unit respectively, for generating a target file according to the screen size information in the acquisition request and the data content extracted by the data content extraction unit , the layout size of the target file is adapted to the screen size of the user terminal.

本发明实施例中,接收用户终端发送的携带有该用户终端的屏幕尺寸信息的获取请求时,定位到相应的版式文件并提取出该版式文件的数据内容,并根据提取的数据内容生成版面尺寸与所述用户终端的屏幕的尺寸相适应的目标文件,由于生成的目标文件的版面尺寸与用户终端的屏幕的尺寸相适应,提高了对目标文件进行排版的合理性,从而在一定程度上提高了版式文件在用户终端中的显示质量。In the embodiment of the present invention, when receiving the acquisition request sent by the user terminal and carrying the screen size information of the user terminal, the corresponding layout file is located and the data content of the layout file is extracted, and the layout size is generated according to the extracted data content The target file adapted to the size of the screen of the user terminal, because the layout size of the generated target file is adapted to the size of the screen of the user terminal, the rationality of typesetting the target file is improved, thereby improving to a certain extent It improves the display quality of the format file in the user terminal.

附图说明Description of drawings

图1为本发明实施例中调整版式文件版面的方法流程图;Fig. 1 is the flow chart of the method for adjusting the format file layout in the embodiment of the present invention;

图2为本发明实施例中调整版式文件版面的装置的结构示意图;FIG. 2 is a schematic structural diagram of a device for adjusting the layout of a format file in an embodiment of the present invention;

图3为本发明实施例中调整版式文件版面的方法流程图。Fig. 3 is a flow chart of a method for adjusting the layout of a format file in an embodiment of the present invention.

具体实施方式detailed description

针对现有技术存在的技术问题,本发明实施例提供一种调整版式文件版面的方法及装置,提高了对目标文件进行排版的合理性,从而在一定程度上提高了版式文件在用户终端中的显示质量。该方法包括:用户终端向版式文件服务器发送的获取请求中携带有版式文件的文件信息和该用户终端的屏幕尺寸信息;版式文件服务器根据获取请求中的文件信息定位出相应的版式文件,并提取出该版式文件的数据内容,并根据获取请求中的屏幕尺寸信息、提取出的数据内容,生成版面尺寸与用户终端的屏幕的尺寸相适应的目标文件。采用本发明技术方案,由于版本服务器生成的目标文件的版面的尺寸与用户终端屏幕的尺寸相适应,从而使得目标文件的版面更符合用户终端的屏幕的尺寸,提高了版式文件的数据内容显示在用户终端中的清晰度和完整性,在一定程度上提高了版式文件在用户终端中的显示质量。Aiming at the technical problems existing in the prior art, the embodiment of the present invention provides a method and device for adjusting the layout of a format file, which improves the rationality of typesetting the target file, thereby improving the accuracy of the format file in the user terminal to a certain extent. Display quality. The method includes: the acquisition request sent by the user terminal to the format file server carries the file information of the format file and the screen size information of the user terminal; the format file server locates the corresponding format file according to the file information in the request, and extracts The data content of the layout file is output, and according to the screen size information in the acquisition request and the extracted data content, a target file whose layout size is adapted to the screen size of the user terminal is generated. Adopting the technical scheme of the present invention, since the size of the layout of the target file generated by the version server is adapted to the size of the user terminal screen, the layout of the target file is more in line with the size of the screen of the user terminal, and the data content of the layout file is improved. The clarity and completeness in the user terminal improves the display quality of the format file in the user terminal to a certain extent.

下面结合说明书附图对本发明技术方案进行详细的描述。The technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings.

参见图1,为本发明是实施例中调整版式文件版面的方法流程图,该方法包括步骤:Referring to Fig. 1, it is a flow chart of a method for adjusting the format file layout in an embodiment of the present invention, the method includes steps:

步骤101、版式文件服务器接收用户终端发送的获取请求,该获取请求中包括版式文件的文件信息和所述用户终端的屏幕尺寸信息。Step 101, the format file server receives an acquisition request sent by a user terminal, and the acquisition request includes file information of the format file and screen size information of the user terminal.

步骤102、版式文件服务器根据获取请求中的文件信息定位出相应的版式文件,并提取出该版式文件的数据内容。Step 102, the forme file server locates the corresponding forme file according to the file information in the acquisition request, and extracts the data content of the forme file.

步骤103、版式文件服务器根据所述获取请求中的屏幕尺寸信息和步骤102提取出的数据内容生成目标文件,该目标文件的版面尺寸与所述用户终端的屏幕的尺寸相适应。Step 103, the format file server generates a target file according to the screen size information in the acquisition request and the data content extracted in step 102, and the layout size of the target file is adapted to the screen size of the user terminal.

上述流程的步骤102,具体包括:版式文件服务器对获取请求进行解析,解析得到版式文件的文件信息和用户终端的屏幕尺寸信息,并根据解析得到的文件信息,确定出版式文件的存储位置和解密密钥;根据确定出的存储位置定位到相应的版式文件,并采用确定出的解密密钥对定位出的版式文件进行解密并定位到请求的页码,从该页码中获取文本文字、图片、表格或视频等数据内容。Step 102 of the above process specifically includes: the format file server parses the acquisition request, obtains the file information of the format file and the screen size information of the user terminal through analysis, and determines the storage location and decryption of the format file according to the file information obtained through analysis. Key: Locate the corresponding layout file according to the determined storage location, and use the determined decryption key to decrypt the located layout file and locate the requested page number, and obtain text, pictures, and tables from the page number or data content such as video.

上述流程103中,具体包括:版式文件服务器采用预先设置的文件生成算法将获取到的数据内容生成目标文件,且在生成过程中,根据用户终端的屏幕尺寸信息,对数据内容的位置、大小进行相应的调整,以确保生成的目标文件的版面的尺寸与所述用户终端的屏幕的尺寸相适应。目标文件的版面尺寸与用户终端的屏幕的尺寸相适应,可以是目标文件的版面的宽度与用户终端的屏幕的宽度相同。In the above process 103, it specifically includes: the format file server uses a preset file generation algorithm to generate the target file from the acquired data content, and during the generation process, according to the screen size information of the user terminal, the position and size of the data content are determined. Corresponding adjustments are made to ensure that the size of the layout of the generated target file is adapted to the size of the screen of the user terminal. The layout size of the target file is adapted to the size of the screen of the user terminal, and may be that the layout width of the target file is the same as the width of the screen of the user terminal.

较佳地,上述流程还包括:Preferably, the above process also includes:

步骤104、版式文件服务器将生成的目标文件发送给所述用户终端,以便用户终端在其屏幕上显示该目标文件。Step 104, the format file server sends the generated target file to the user terminal, so that the user terminal displays the target file on its screen.

本发明实施例中,用户终端向版式文件服务器发送版式文件获取请求,具体包括:用户终端通过自身的浏览器,从版式文件应用系统中定位到该用户终端需要在线浏览的版式文件,并从版式文件应用系统中获取与该版式文件相对应的文件信息;用户终端启动浏览器检测并获取该用户终端的屏幕的尺寸,并生成屏幕尺寸信息;用户终端生成获取请求并发送给版式文件服务器,该获取请求中携带有版式文件的文件信息和该用户终端的屏幕尺寸信息。In the embodiment of the present invention, the user terminal sends the forme file acquisition request to the forme file server, which specifically includes: the user terminal locates the forme file that the user terminal needs to browse online from the forme file application system through its own browser, and obtains the forme file from the forme file application system. The file application system obtains the file information corresponding to the format file; the user terminal starts the browser to detect and obtain the screen size of the user terminal, and generates screen size information; the user terminal generates an acquisition request and sends it to the format file server, the The file information of the format file and the screen size information of the user terminal are carried in the obtaining request.

本发明实施例还提供一种调整版式文件版面的装置,该装置的结构如图2所示。The embodiment of the present invention also provides a device for adjusting the layout of a forme document, and the structure of the device is shown in FIG. 2 .

参见图2,为本发明实施例中调整版式文件版面的装置的结构示意图,该装置包括:Referring to Fig. 2, it is a schematic structural diagram of a device for adjusting the layout of a forme document in an embodiment of the present invention, the device includes:

请求接收单元21,用于接收用户终端发送的获取请求,该获取请求中包含版式文件的文件信息和该用户终端的屏幕尺寸信息。The request receiving unit 21 is configured to receive an acquisition request sent by the user terminal, the acquisition request includes the file information of the format file and the screen size information of the user terminal.

数据内容提取单元22,与请求接收单元21相连接,用于根据获取请求中的文件信息定位出相应的版式文件,并提取出该版式文件的数据内容。The data content extracting unit 22 is connected with the request receiving unit 21, and is used for locating the corresponding forme file according to the file information in the acquisition request, and extracting the data content of the forme file.

版式文件生成单元23,分别与数据内容提取单元22和请求接收单元21相连接,用于根据所述获取请求中的屏幕的尺寸信息和所述数据内容提取单元22提取出的数据内容,生成目标文件,该目标文件的版面尺寸与所述用户终端的屏幕的尺寸相适应。The format file generating unit 23 is connected to the data content extracting unit 22 and the request receiving unit 21 respectively, and is used to generate the object according to the size information of the screen in the acquisition request and the data content extracted by the data content extracting unit 22. file, the layout size of the target file is adapted to the size of the screen of the user terminal.

上述数据内容提取单元22如何提取版式文件中的数据内容,可采用前述方式,在此不再赘述。How the above-mentioned data content extraction unit 22 extracts the data content in the forme file can adopt the aforementioned method, which will not be repeated here.

上述目标版本生成单元23如何生成版面尺寸与用户终端屏幕尺寸相同的目标文件,可采用前述方式,在此不再赘述。How the above-mentioned target version generating unit 23 generates the target file whose layout size is the same as the screen size of the user terminal can adopt the aforementioned method, which will not be repeated here.

较佳地,上述装置还可以包括:Preferably, the above-mentioned device may also include:

版式文件发送单元24,与目标版本生成单元23相连接,用于将版式文件生成单元23生成的目标文件发送给用户终端。The format file sending unit 24 is connected with the target version generating unit 23 and is used for sending the target file generated by the format file generating unit 23 to the user terminal.

下面以一较为详细的方法流程对本发明技术方案进行详细的描述,该方法流程的如图3所示,包括:The technical solution of the present invention is described in detail below with a comparatively detailed method flow, as shown in Figure 3 of the method flow, including:

步骤301、用户终端通过其浏览器从版式文件应用系统中获取用户需要的版式文件的文件信息。Step 301, the user terminal obtains the file information of the forme file required by the user from the forme file application system through its browser.

步骤302、用户终端启动其浏览器自动检测并获取该用户终端的屏幕对应的尺寸(包括屏幕的长和宽信息),并根据屏幕对应的尺寸生成屏幕尺寸信息。In step 302, the user terminal starts its browser to automatically detect and obtain the size corresponding to the screen of the user terminal (including information about the length and width of the screen), and generates screen size information according to the corresponding size of the screen.

步骤303、用户终端生成获取请求并发送给版式文件服务器,该获取请求中携带有版式文件的文件信息和用户终端的屏幕尺寸信息。Step 303, the user terminal generates an acquisition request and sends it to the forme file server, the acquisition request carries the file information of the forme file and the screen size information of the user terminal.

步骤304、版式文件服务器的请求接收单元21接收用户终端发送的获取请求,对该获取请求进行解析,并将解析得到的文件信息和屏幕尺寸信息发送给版式文件服务器的数据内容提取单元22。Step 304, the request receiving unit 21 of the format file server receives the acquisition request sent by the user terminal, analyzes the acquisition request, and sends the analyzed file information and screen size information to the data content extraction unit 22 of the format file server.

步骤305、数据内容提取单元22根据接收到的文件信息,确定出版式文件的存储位置和解密密钥,并根据存储位置定位到相应的版式文件,采用确定出的解密密钥对定位出的版式文件进行解密并定位到请求的页码,从该页码中获取文本文字、图片、表格或视频等数据内容,并将获取的数据内容发送给版式文件服务器的版式文件生成单元23。Step 305, the data content extraction unit 22 determines the storage location and the decryption key of the publication file according to the received file information, locates the corresponding layout file according to the storage location, and uses the determined decryption key to locate the layout file. The file is decrypted and located to the requested page number, data content such as text, pictures, tables or videos is obtained from the page number, and the obtained data content is sent to the format file generation unit 23 of the format file server.

步骤306、版式文件生成单元23采用预先设置的文件生成算法将获取到的数据内容生成目标文件,且在生成过程中,根据用户终端的屏幕尺寸信息,对数据内容的位置、大小进行相应的调整,以确保生成的目标文件的版面的尺寸与所述用户终端的屏幕的尺寸相适应,并将目标文件发送给版式文件发送单元24。Step 306, the format file generation unit 23 generates the target file from the acquired data content using a preset file generation algorithm, and during the generation process, adjusts the position and size of the data content accordingly according to the screen size information of the user terminal , to ensure that the layout size of the generated target file is adapted to the screen size of the user terminal, and send the target file to the format file sending unit 24.

步骤307、版式文件发送单元24将目标文件发送给发起获取请求的用户终端。Step 307, the format file sending unit 24 sends the target file to the user terminal that initiates the acquisition request.

步骤308、用户终端的浏览器将目标文件显示在用户终端的屏幕上,以便用户浏览。Step 308, the browser of the user terminal displays the target file on the screen of the user terminal, so that the user can browse.

本发明实施例中的版式文件应用系统可以是数字资源平台,用户终端从版式文件应用系统中定位出版式文件,具体可以为:用户终端在数字资源平台输入关键词“数字出版”,从检索结构列表中选取需要按页浏览的版式文件,该版式文件的格式可以是CEB(ChineseE-paperBasic)或CEBX(Commone-DocumentofBlendingXML,基于混合XML的公共电子文档)格式。The format file application system in the embodiment of the present invention may be a digital resource platform, and the user terminal locates the published file from the format file application system. Specifically, it may be: the user terminal inputs the keyword "digital publishing" on the digital resource platform, and searches from the search structure Select the format file that needs to be browsed by page from the list, and the format of the format file can be CEB (Chinese E-paper Basic) or CEBX (Commone-Document of Blending XML, public electronic document based on mixed XML).

本发明实施例中,用户终端向版式文件服务器发送的获取请求时,在该获取请求中携带有该用户终端的屏幕尺寸信息,因此,版式文件服务器定位到相应的版式文件并从该版式文件中提取相应的数据内容时,根据提取的数据内容生成版面尺寸与所述用户终端的屏幕的尺寸相适应的目标文件,由于生成的目标文件的版面尺寸与用户终端的屏幕的尺寸相同,从而使得目标文件的版面更符合用户终端的屏幕的尺寸,提高了版式文件的数据内容显示在用户终端中的清晰度和完整性,在一定程度上提高了版式文件在用户终端中的显示质量。In the embodiment of the present invention, when the user terminal sends an acquisition request to the format file server, the acquisition request carries the screen size information of the user terminal. Therefore, the format file server locates the corresponding format file and obtains the format file from the format file When extracting the corresponding data content, a target file whose layout size is adapted to the size of the screen of the user terminal is generated according to the extracted data content, since the layout size of the generated target file is the same as the size of the screen of the user terminal, so that the target The layout of the file is more in line with the size of the screen of the user terminal, which improves the clarity and integrity of the data content of the format file displayed in the user terminal, and improves the display quality of the format file in the user terminal to a certain extent.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (10)

Translated fromChinese
1.一种调整版式文件版面的方法,其特征在于,包括:1. A method for adjusting the layout of a format file, characterized in that it comprises:接收用户终端发送的获取请求,该获取请求携带有版式文件的文件信息和所述用户终端的屏幕尺寸信息;receiving an acquisition request sent by the user terminal, the acquisition request carrying the file information of the format file and the screen size information of the user terminal;根据所述文件信息定位出相应的版式文件,并提取出该版式文件的数据内容;Locating the corresponding format file according to the file information, and extracting the data content of the format file;根据所述屏幕尺寸信息和提取出的数据内容,生成目标文件,该目标文件的版面尺寸与所述用户终端的屏幕的尺寸相适应。A target file is generated according to the screen size information and the extracted data content, and the layout size of the target file is adapted to the screen size of the user terminal.2.如权利要求1所述的方法,其特征在于,接收到所述获取请求之后,还包括:2. The method according to claim 1, further comprising: after receiving the acquisition request:对接收到的所述获取请求进行解析,得到所述文件信息和所述屏幕尺寸信息。Analyzing the received acquisition request to obtain the file information and the screen size information.3.如权利要求2所述的方法,其特征在于,根据所述文件信息定位出相应的版式文件,并提取出该版式文件的数据内容,包括:3. The method according to claim 2, characterized in that locating the corresponding format file according to the file information, and extracting the data content of the format file, comprising:根据解析得到的文件信息,确定出版式文件的存储位置和解密密钥;Determine the storage location and decryption key of the published file according to the file information obtained by parsing;根据确定出的存储位置定位到相应的版式文件,并采用确定出的解密密钥对定位出的版式文件进行解密,从解密后的版式文件中提取相应的数据内容。The corresponding forme file is located according to the determined storage location, and the located forme file is decrypted by using the determined decryption key, and the corresponding data content is extracted from the decrypted forme file.4.如权利要求2或3所述的方法,其特征在于,生成目标文件,包括:根据解析得到的屏幕尺寸信息,对提取的数据内容所包含的对象的位置和大小进行调整,生成版面尺寸与所述用户终端的屏幕的尺寸相适应的目标文件。4. The method according to claim 2 or 3, wherein generating the target file comprises: adjusting the position and size of the objects contained in the extracted data content according to the screen size information obtained through analysis, and generating the layout size A target file adapted to the size of the screen of the user terminal.5.如权利要求1所述的方法,其特征在于,还包括:5. The method of claim 1, further comprising:将生成的目标文件发送给所述用户终端。Send the generated target file to the user terminal.6.一种调整版式文件版面的装置,其特征在于,包括:6. A device for adjusting the layout of a format file, characterized in that it comprises:请求接收单元,用于接收用户终端发送的获取请求,该获取请求携带有版式文件的文件信息和该用户终端的屏幕尺寸信息;a request receiving unit, configured to receive an acquisition request sent by the user terminal, the acquisition request carrying the file information of the format file and the screen size information of the user terminal;数据内容提取单元,与所述请求接收单元相连接,用于根据获取请求中的文件信息定位出相应的版式文件,并提取出该版式文件的数据内容;A data content extracting unit, connected to the request receiving unit, for locating the corresponding forme file according to the file information in the acquisition request, and extracting the data content of the forme file;版式文件生成单元,分别与所述数据内容提取单元和所述请求接收单元相连接,用于根据所述获取请求中的屏幕尺寸信息和所述数据内容提取单元提取出的数据内容,生成目标文件,该目标文件的版面尺寸与所述用户终端的屏幕的尺寸相适应。a format file generation unit, connected to the data content extraction unit and the request receiving unit respectively, for generating a target file according to the screen size information in the acquisition request and the data content extracted by the data content extraction unit , the layout size of the target file is adapted to the screen size of the user terminal.7.如权利要求6所述的装置,其特征在于,所述请求接收单元进一步用于,对接收到的所述获取请求进行解析,得到所述文件信息和所述屏幕尺寸信息。7. The device according to claim 6, wherein the request receiving unit is further configured to parse the received acquisition request to obtain the file information and the screen size information.8.如权利要求7所述的装置,其特征在于,所述数据内容提取单元,具体用于:根据所述请求接收单元解析得到的文件信息,确定出版式文件的存储位置和解密密钥;根据所述存储位置定位到相应的版式文件,并所述解密密钥对定位出的版式文件进行解密,从解密后的版式文件中提取相应的数据内容。8. The device according to claim 7, wherein the data content extraction unit is specifically configured to: determine the storage location and decryption key of the published file according to the file information analyzed by the request receiving unit; The corresponding forme file is located according to the storage location, and the located forme file is decrypted by the decryption key, and the corresponding data content is extracted from the decrypted forme file.9.如权利要求7或8所述的装置,其特征在于,所述版式文件生成单元,具体用于:根据所述请求接收单元解析得到的屏幕尺寸信息,对所述数据内容提取单元提取的数据内容所包含的对象的位置和大小进行调整,生成版面尺寸与所述用户终端的屏幕的尺寸相适应的目标文件。9. The device according to claim 7 or 8, wherein the format file generating unit is specifically configured to: extract the data content extracted by the data content extracting unit according to the screen size information analyzed by the request receiving unit The position and size of the objects included in the data content are adjusted to generate a target file whose layout size is adapted to the size of the screen of the user terminal.10.如权利要求6所述的装置,其特征在于,还包括:10. The apparatus of claim 6, further comprising:版式文件发送单元,与所述版式文件生成单元相连接,用于所述版式文件生成模块生成的所述目标文件发送给所述用户终端。The forme file sending unit is connected with the forme file generating unit, and is used for sending the target file generated by the forme file generating module to the user terminal.
CN201010624176.6A2010-12-312010-12-31A kind of method and device adjusting format file layoutActiveCN102541836B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201010624176.6ACN102541836B (en)2010-12-312010-12-31A kind of method and device adjusting format file layout

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201010624176.6ACN102541836B (en)2010-12-312010-12-31A kind of method and device adjusting format file layout

Publications (2)

Publication NumberPublication Date
CN102541836A CN102541836A (en)2012-07-04
CN102541836Btrue CN102541836B (en)2016-08-03

Family

ID=46348761

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201010624176.6AActiveCN102541836B (en)2010-12-312010-12-31A kind of method and device adjusting format file layout

Country Status (1)

CountryLink
CN (1)CN102541836B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103150291B (en)2013-01-312015-09-09小米科技有限责任公司File method for cutting edge, terminal and server
CN103500166B (en)*2013-08-222016-07-13合一网络技术(北京)有限公司A kind of response type webpage design method of progressive enhancing
CN103605640B (en)*2013-12-032016-08-17中国联合网络通信集团有限公司Form adaption method and device
CN105095173B (en)*2014-05-072018-03-06北大方正集团有限公司Composing device and composition method based on typesetting result
CN104581369A (en)*2014-12-222015-04-29广东省广播电视网络股份有限公司Multi-channel high-definition live program forwarding method and system based on broadcast television network home gateway
CN107832273B (en)*2017-11-172022-01-25青岛海信移动通信技术股份有限公司Ink screen content display method and device and display content pushing method and device
CN112053203A (en)*2020-08-142020-12-08中国物品编码中心Commodity picture display method and device and storage medium
CN114492298B (en)*2020-10-232025-02-18珠海金山办公软件有限公司 Method, device, computer storage medium and terminal for realizing document display processing
CN116166824A (en)*2023-02-242023-05-26北京奇艺世纪科技有限公司Cover processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1808482A (en)*2006-02-092006-07-26北京北大方正电子有限公司Visual electronic signature and verification method
CN1845099A (en)*2006-04-272006-10-11掌富科技(南京)有限公司Method and structure for conversion and storage of multimedia electronic file in intelligent mobile terminal
CN101388004A (en)*2008-10-172009-03-18北大方正集团有限公司 Method, device and system for adjusting the page size of a portable document format file
CN101778168A (en)*2010-02-052010-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 numberPriority datePublication dateAssigneeTitle
US20100017706A1 (en)*2008-07-212010-01-21Xerox CorporationDocument size conversion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1808482A (en)*2006-02-092006-07-26北京北大方正电子有限公司Visual electronic signature and verification method
CN1845099A (en)*2006-04-272006-10-11掌富科技(南京)有限公司Method and structure for conversion and storage of multimedia electronic file in intelligent mobile terminal
CN101388004A (en)*2008-10-172009-03-18北大方正集团有限公司 Method, device and system for adjusting the page size of a portable document format file
CN101778168A (en)*2010-02-052010-07-14中国电信股份有限公司Method and system for optimization display of wed pages on browser of mobile terminal

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN102541836B (en)A kind of method and device adjusting format file layout
US20220171915A1 (en)Automated augmentation of text, web and physical environments using multimedia content
US8291312B1 (en)Displaying web pages without downloading static files
US9032020B2 (en)Online video enhancement
US20160147836A1 (en)Enhanced Network Data Sharing and Acquisition
US8924251B2 (en)Systems and methods for providing one or more pages from an electronic document
CN104361004B (en)The processing method and browser of browser collection folder data
JP2014029701A (en)Document processing for mobile devices
CN104168417A (en)Picture processing method and device
KR102361112B1 (en)Extracting similar group elements
CN103927380A (en)Search result providing method and device
CN107229653B (en) Method and device for generating pseudo-static webpage
EP2423837A1 (en)Method and system for viewing web page and computer program product thereof
TW201233169A (en)Apparatus and method for searching subtitle of television program
CN104361007B (en)The processing method of browser and its collection
CN102436452A (en)Webpage providing system and method for dynamically adjusting font size
US10261979B2 (en)Method and apparatus for rendering a screen-representation of an electronic document
KR20120086037A (en)System and method for providing automatic translation service
CN103699630B (en)Method and device for recommending information in browser
US20160140112A1 (en)Information processing system, information processing method, data, information processing device, display device, display method, program, and information storage medium
CN104182394B (en)Server, terminal and layout files display methods
CN106778449B (en)Object identification method of dynamic image and interactive film establishment method for automatically capturing target image
WO2014134753A1 (en)Method and system for representing social network carriers, and device thereof
KR20180088260A (en)Method and apparatus for generating web pages
US20140195240A1 (en)Visual content feed presentation

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
TR01Transfer 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.

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp