WO2007065357A1 - Système et procédé de traitement de documents - Google Patents

Système et procédé de traitement de documents Download PDF

Info

Publication number
WO2007065357A1
WO2007065357A1 PCT/CN2006/003297 CN2006003297W WO2007065357A1 WO 2007065357 A1 WO2007065357 A1 WO 2007065357A1 CN 2006003297 W CN2006003297 W CN 2006003297W WO 2007065357 A1 WO2007065357 A1 WO 2007065357A1
Authority
WO
WIPO (PCT)
Prior art keywords
document
objects
application software
document library
uoi
Prior art date
Application number
PCT/CN2006/003297
Other languages
English (en)
French (fr)
Inventor
Donglin Wang
Xu Guo
Changwei Liu
Haifeng Jiang
Original Assignee
Beijing Sursen 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
Priority claimed from CNB2005101266836A external-priority patent/CN100547590C/zh
Priority claimed from CN200510131072A external-priority patent/CN1979478B/zh
Application filed by Beijing Sursen Co., Ltd filed Critical Beijing Sursen Co., Ltd
Priority to JP2008543636A priority Critical patent/JP5530101B2/ja
Priority to EP06828251A priority patent/EP1965314A4/en
Priority to CN2006800456554A priority patent/CN101322126B/zh
Publication of WO2007065357A1 publication Critical patent/WO2007065357A1/zh
Priority to US12/133,296 priority patent/US8645344B2/en
Priority to US14/034,428 priority patent/US20140026230A1/en
Priority to US15/802,371 priority patent/US20180083954A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems

Definitions

  • non-consolidated and non-consolidated data which is mainly composed of Hexiu and Lixiu.
  • the comparative comparison of sheep is the medium, and its wood-based representation is mainly based on the use of historical data from the 1990s to the 1990s and has been relatively mature.
  • Non-chemicalization has no fixed number, so non-chemicalization is very unusual.
  • the current means of control are sheep and orders. According to the information, the case of the company that causes huge losses every year is not investigated.
  • Different requirements under different systems may have different storage requirements. For example, storage on the need to consider how to reduce the common to improve performance, and the embedded in the storage is not the same as the storage. For example, the same software may use different storage formats on different platforms. Therefore, the Cruadier General storage system is portable and scalable.
  • This book provides the operation, management, better security, and better query of the system and methods of the theology.
  • the ethical system includes the system, and the system includes at least software
  • Theological methods include
  • the seat software system contains the instructions of the image and operation
  • the instructions in the system store instructions.
  • the ethical system which includes the user room, system and interface, which includes at least software
  • This book presents the status quo of the unfinished software from the user interface to the storage. It will divide the force and unify the interaction between the interfaces. You can walk through the connection.
  • the system is a general-purpose wooden software operation of each god's operation function. As long as all software and systems follow the same, different software can operate with the same system, the same operation. At the same time, the same software can also be operated with different texts and different texts, without having to separate them into different scripts.
  • This book includes the introduction of general text model, the model of the software needs to be consistent.
  • the interface is the one that is not modeled, so that different software can interface not operate.
  • the general text model is also different from each script format, and the same software only operates in different text formats.
  • the general model includes commands such as group management, query, and security control, which are also included in the secondary interface composed of, Hehe, etc.
  • the general model includes the operation instructions that will also be included in the interface composed of upper and lower orders, as well as the storage and retrieval of a residence file.
  • All information security management and control functions such as fine-grained management of corners, contain corresponding operation instructions in the interface.
  • the software is no longer straight It works with the format of Hugh, and no longer specific software, so that the same text can be used in different software, and the same software can also be operated in different languages.
  • the operation of the system is multi-functional, not limited to the sheep will be divided into multiple It can be managed and controlled differently, and it is more than the same page operation of different software (it can be managed and managed in different software), and it is convenient to edit by file, and it is also a very good way to integrate information security. It can be safe to make security and control operations tightly integrated, instead of being able to hide more deeply with the deployment of security management wood phases.
  • the British generation also hides deeper, more effectively illegal, improves safety and reliability, and recently provides Degree of safety management, more
  • 3 shows the image of the silver in the general text model shown in 2. 4 the group of Chinese images shown in 3. 5 to 3 in the image group shown.
  • the system according to this book mainly includes software, interface, system and storage.
  • the software includes any existing management and content management software.
  • the software is based on the instruction operation of the interface in accordance with the system.
  • the operations are all in conformity with the general document model and the storage format.
  • the interface instructs the culture to return the result of the connection. Therefore, since the software can interface with Juyou commands and conform to the operation of the general text model, different software can operate in the same text and the same text, and the same software can also operate in different cultures and different formats.
  • the connection may include the upper access sheep element and the lower interface sheep.
  • the upper interface sheep instruction is sent to the lower interface sheep, and the lower interface sheep receives the command, and the lower interface sheep is closer to returning the results of the system to the upper interface sheep.
  • the upper sheep can be connected to the lower sheep can be in the system.
  • each system is commonly used, or can be,,,, tape, or can be stored as long as each storage capacity.
  • the storage method is not required for software.
  • the software has recently been upgraded, which includes the interface sheep of the instruction, and the instruction is in accordance with the operation of the general text model.
  • the interface sheep is used for the operation instructions conforming to the general text model.
  • Step up to the sheep you can generate the instruction from the Yuyou command, and then under the interface sheep, whether the received instruction is in compliance with the instruction is analyzed.
  • the universal model is based on the paper.
  • the mercury method is the method that has been used so far. As long as all the functions of each paper can meet the needs of work and life.
  • any specific or special characters are involved in the effect, it can have the same effect on each, and it needs to be embedded in the phase. To improve storage efficiency and resource sharing, even if the same character is used, only an embedded font is needed. Like there are also examples that may appear more often than every page is common or appears in the company, it is best to share the image in the case of God.
  • the thumbnail layout is created by each of the thumbnails in advance. You can view the unspecified pages of the thumbnail layout.
  • the general text model contains the subordinates of,,,,,, group, layout, etc.
  • the combination of the composition or the composition of the relative between the next sub-phase, the same can be very sheep combination and without the number of their own, more
  • mediators or mediators
  • pre-order pages or a certain order (pre-order), which can be different, and not necessarily rectangular, can be of any shape, and can be represented by more or less closed
  • the layout composed of any number of layouts and elephant groups refers to (Hugh, Yan, ROP, etc.), text (Fuji Temple), hoarding (straight,, filled with the specified face, etc.), solid (TF JB, JBG Etc.), information (, end, etc.), document, book, embed, embed, connect, rest, etc.
  • the media or layout can form a media group.
  • An image group can also contain any number of sub-image groups.
  • Medium and near can include information, information, miniature layout, you can also put the miniature layout in or second,,,,,,,, group of pictures can include digital information. It is best to follow the layout information.
  • Near can include, like shared resources.
  • the general text model can be assigned or determined by angle or angle.
  • angle or angle With the text,,,,,,, elephant group, and force car distribution, is the horn sheep available, is it possible, is it possible, Is it printable, etc.
  • the general model is a way of surpassing the past sheep files in a way that contains more and more centralized files.
  • the degree of consistency and security control can be changed to Chinese characters or rectangles, unlike the current management system that can only access files.
  • 3 to 9 show the general object model involved in this general text model. The groups of the images are described.
  • He is composed of mediators or multiple images (in the middle). As shown in 3, including mediated or arbitrarily
  • the said includes, angle,,, index information, script,, and so on. Sharing refers to the possible sharing of images, images, etc. in different texts.
  • mediator As shown, it includes mediator, arbitrary quantity and arbitrary quantity. Include
  • Wait. Sharing includes the different ones in, which may be used in common, like, stamp, etc.
  • the picture group includes any number of layouts, any number of picture groups and possible numbers.
  • the image group includes the image group, and the file similar to the resource manager includes the form of multiple files.
  • the layout shown in 9 includes, text, straight, arc, path, image, image, information, document, text, text, and connection.
  • Its shape includes any number of characters, characters, colors, operations, backgrounds, colors, fills, colors, connections, colors, colors, special features, transparency, and rendering modes. In Hugh, you can enhance or improve the above general text model. If it is omitted in the model, it is directly composed of images. If it is omitted in the model, it is directly composed of layout images.
  • the layout includes, straight and like.
  • angles are the sons of the elephant. 2 Can be any angle (for example,,,,,,, group, layout, etc.). If the corner
  • the system includes whether it is possible, whether it is possible, whether it is reproducible, whether it is retrievable, and its permutation and combination. It can also be other ones that need to be coordinated by the software and cannot be printed.
  • the angle can be arbitrary. It includes the child of the elephant and the referenced ones.
  • the result of the execution of the instructions of the horn is to return to the software, and the effort software is the horn of the mercury, usually P, and the custodian Hu can also be the mercury password.
  • the software identifies mercury as a certain angle, usually in harmony, that is, it uses the saved angle password to return to the system with the software software. If the result indicates that the software has an angle.
  • the harmony system can also be used in the following manner. The system will determine the software according to the sum, the software returns to the system, and the results of the saved angles are used to indicate that the software has angles. Power insurance,
  • the software can be the same as Mercury & There are some of them. At rest, you can enhance or enhance the above-mentioned general security model. Any model of the above security model is original.
  • connection can be based on the general text model, the general security model, and the commonly used operations, depending on the instructions of each operation in the general model.
  • the instructions of each operation in the described general text model conform to the interface, and each software can be connected with the instructions of the friends.
  • the interface can be an example of generating commands according to the pre-formatted format ⁇ SERT (OBJ PAGE PT 123.4 6.789 POS 3) /, and then the command is connected to the sheep to receive the command or other anti-information or the interface to the lower interface Provide some
  • parameter interface functions such as BOO O Page Page oc p age, the upper interface sheep function, and the operation itself represents the upper interface instruction or a combination of the above methods.
  • Example 20 different gods 10 operation can be 2 x 200 instructions can also be 20 and 10 god skills, but the way is greatly reduced, and in the interface
  • Checking the content found in the root can be either the information or the inaccurate information, that is, fuzzy.
  • the colors of the following background colors are filled with &,,, ROP,, ah, color, character height, character, special, transparent, rendering mode, etc.
  • the function mode of the operation is not determined by the interface. For example, every operation of the media interface function, each operation instruction can encapsulate each, and the method of fork the available operations.
  • the search program can only extract the text information in the text, and the more information can only be the text information. But in this book, the search function is integrated, That is to say, you can make full use of the information contained in the text without providing more powerful means
  • the special character is 30 to 90 degrees.
  • X4 describes the column commands. All the media elements also describe the media commands, using the elements of the image as the sub-elements of the element to describe the characters including ten images. Go up the sheep and connect the character down to the sheep to give the relative operation instructions to the system. System command, the interface will generate the character that meets the O format and return to the interface, so that the software knows the operation result. All are represented by LRT, 10, the next attribute
  • 12.1 p It can be a file or a pointer, or a pointer, or the same, or a, or other representation method that can be specified.
  • Different characters can be used in the above expressions, that is, without command format, as long as the characters are different, they can be specified in different ways. For example, each file () and
  • the "(h //") pointer is the character representation of the pointer.
  • the path of "E 12345678" is ⁇ is the path of each, and the path on the server, seve abc ⁇ de sep can be used, such as y ocBase.
  • seve abc ⁇ de sep can be used, such as y ocBase.
  • the O T contains sub-elements, mercury 2 same (C OSE) 12.
  • Ha de is the reference pointer of the image represented by the intermediary character. 222 db de, character reference. 2.3 Back to back.
  • 31.1 sage Use Ge a de "(specified), GeOb (specified), GePageBmp (page) in the media.
  • 32.5 describes the constraints, which can specify more or more content (can be set to the front corner of the door) can also specify the size of C p is not specified. sage performance GePageB p use.
  • a R T contains a meson element that contains the number of h de images represented by 1.
  • One sub-element represents the result, and the mbe sub-element represents the number of query results. You can use O GET to query each query.
  • BJGR P text O TEXT image (O AGE straight (O (OL BEZER) arc (ARC) (O PAT), document (L SRCF, background (BAC CR foreground color (CR) RP (_R P) character size (C ARSZE ⁇ (OYE CE).
  • the upper O O generates the phase O command according to X.
  • the O command is friendly, that is, it represents the phase operation command.
  • command formats can be produced. Even text format can be used, but the mode is not determined.
  • O SERT OCSET does not mean inserting a media
  • O SERT PAGE does not mean inserting a page, and the way is undecided.
  • the parameter of the function can be used or referenced, the function can be used for all.
  • e e pOb inserts the operation instruction in the way of interface function in every operation of every interface.
  • the connection function that is connected in the following way is not connected.
  • the special connection can have cross-platform, making the software and system on different platforms all
  • the same connection can be used in general, especially the software that can be uploaded on a platform can also be used to introduce the operation of the platform on the platform.
  • the software is deployed on the customer, using C, Windows operating system, the system is deployed on each using a large x operating system, but the software can still operate like a local system.
  • the software is the software that contains the upper interface sheep that conforms to the connection, such as the Oce software, content management, resource set, etc. Any software needs to be operated according to the method described above, the command is not completed, the command is not completed.
  • the system can be stored locally. For example, all the files can be stored in the media file.
  • the file system function in the operating system can also be used to page the file to fully operate the system. management.
  • the storage format you can use the format to save X, near hd.
  • the description language (the method of text, image, etc. on the surface) can be Pos Sc p, P F SPD (language used by half-life companies), but it can also be any description, as long as it conforms to the general interface.
  • the undescriptive model can be subordinate , You can completely establish the phase.
  • the execution operation is added to the tree, and the deletion operation deletes the phase execution operation, the phase return operation software is taken out, and the query operation phase.
  • the ones inserted into the insertion position (below.., Are in the village of X. There is a mediator. 4. Delete the mediator, and delete all the subnodes under the virtual one. The deletion is sub-up.
  • the layout information command first generates all layouts that are specified in the specified bit format and are identical and designated, and all layouts that are located (including only a part of them) are
  • the depth is first connected with each of the sub-villages (ie their mesons) in order.
  • the method of a certain fruit of the neutron is the AL of the first child, then the A value of the child is connected in sequence and its individual S order, and then the S of the fruit is connected, then the result is obtained. If the citation in the sub-village is needed, the meson method of the citation can also be the same as above. After it is made, we can make the existing wood of the S angle, which will not be repeated here.
  • the above-mentioned predetermined order means that sub-submissions, sub-submissions, sub-submissions, sub-submissions, sub-subjects, and sub-subjects can be arranged in any order as long as they are in a predetermined order.
  • each of the sub-villages can be either depth first or width first.
  • the characteristics of the paper are well organized to provide a wooden solution that does not change.
  • the software only adds new content to the existing text, but without modifying or deleting the existing content, the content can be changed on paper by different But the male can not modify or delete the existing content.
  • the rest method is that every software created by editing other software is added to the existing text, and the new content of this software is centered, and the previous content is not modified or deleted.
  • each content has not been modified or deleted, the number can be used.
  • the number can be the inhabitation, it can be the inhabitation and all the content generated before the inhabitation.
  • other existing wood either does not allow editing, or editing (is not).
  • the aforementioned wood plan does not allow the existing content in the modification. Even if it does not consider the compatibility of the paper characteristics with the number, the only modification is the layout editing, that is, the editing of the layout image.
  • the text model is part of the force, does not contain a large number of indispensable, and the layout is the same. Therefore, when you modify any interface layout, other layouts are not household-like. For example, if you delete the interface, leave it in its place, right The text is not left.) If the user needs to edit the existing content, and hopes to be able to edit it there, there is a solution to meet the needs.
  • the solution is to complete the editing by the software.
  • the near Embed the file stored in the format that the software has, the complete file between the images, such as the nc file
  • remove the file from the text and use file editing After the editing is completed, clear the software management, regenerate the content, and embed the newly modified file into it.
  • new build inserts the layout of the newly edited content into the new center, and copies the newly edited content (file) in the same format.
  • mercury is a document.
  • any software can print and print. 2. Any, any software can add any content, and it does not already exist.
  • a software instruction creates a new text in ocBase and stores it in oc
  • a software instruction inserts text at (x y) position semi-business O Tex ex
  • the sum makes the same text common among different softwares, so that different softwares have good operations.
  • the formation and division of labor, reducing changes, basic operations are all in the system, each software is not necessary.
  • the system is made up of, the relative wood, each, is more secure, and the software and users can have the best family culture, and the effect is consistent.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Processing Or Creating Images (AREA)

Description

文档处理系统和方法
技术领域
本发明涉及一种文档处理系统和方法。 发明背景
信息可大致分为结构化数据和非结构化数据, 其中以书面文档和流 媒体为主的非结构化数据根据资料统计占有量超过百分之七十。 结构化 数据的结构比较简单, 即一个二维表结构, 其处理技术以数据为代表, 主要是利用数据库系统进行处理, 从上世纪七八十年代开始发展, 到九 十年代达到顶峰, 研发和应用已经比较成熟。 非结构化数据则没有固定 数据结构, 因此对非结构化数据的处理非常的复杂。
目前处理各种非结构化文档的软件已经比较普及, 形成了多种文档 格式林立的状况。 例如, 文档编辑目前就存在 Microsoft的 word、 WPS, 永中的 Office, Red的 Office等。 通常, 一个内容管理软件往往要处理 二三百种文档格式, 而且这些格式还在不断更新, 给这类软件的开发带 来了巨大的困难。 如何解决文档通用性、 进行数字内容提取、 格式兼容 越来越成为人们的关注点, 人们迫切希望解决以下问题:
1 )文档不通用:
基本上, 不同用户只能交换同一种软件处理的文档, 无法交换不同 软件处理的文档, 形成信息封闭。
2 )访问接口不统一、 数据兼容代价太高:
不同的文档处理软件之间, 文件格式互不兼容, 在处理过程中要么 利用对方组件解析(前提是对方提供相应接口), 要么自己投入研发力 量从头到尾的解析对方的格式。 3 )信息安全较差:
目前针对书面文档的权限控制手段单一, 主要是数据加密、 口令认 证。 因为信息泄露, 每年造成巨大损失的公司案例层出不穷。
4 )都是针对单个文档的处理, 缺乏多文档管理手段:
每个人电脑中都有大量文档, 但多个文档之间缺乏有效的组织管 理, 而且资源共享很难。 如, 字库 /字体文件、 全文数据检索等。
5 ) 页面分层的技术不完善:
目前一些软件 , 如 Adobe的 photoshop, Microsoft的 word, 多多少 少已经有层的概念, 但层的功能还比较单一, 管理手段比较筒单, 不能 满足应用需求。
6 )检索手段不够丰富:
随着信息的海量化, 用任何一个关键词来搜索都会得到数量庞大的 检索结果, 全文检索技术基本解决了查全率的问题, 但查准率迅速上升 为首要问题。 现有技术还没有很充分地利用全部信息来解决查准率问 题, 例如每个文字的字体、 字号完全可以用来判断该文字的重要性, 但 都在检索时被忽略了。
虽然各大公司目前都努力将自己特有的文档格式发展为市场标准, 各标准组织也致力于制订通用的文档格式标准。 但不管是专有的文档格 式(如. doc )还是开放的文档格式(如 PDF ), 只要是以文档格式为标准, 就不可避免产生以下问题:
• a )重复开发, 效果不统一:
使用同一标准的不同软件都需要自己去解释、 生成该格式的文档, 造成大量重复开发, 而且会因为各家解释程序不同, 例如有的完善有的 相对简单, 有的支持新版本有的只支持旧版本数据, 同一文档在不同软 件下显现出不同的版式, 甚至出现解释错误导致无法打开文档。 b ) 阻碍创新:
软件是不断创新的行业, 但由于每增加一个新功能就需要增加描述 该功能的信息, 而且只有等到标准修订的时候才能增加新的格式, 因此 把存储格式固定死, 将会妨碍技术创新的竟争。
c )影响检索性能:
对海量信息, 需要增加大量的检索信息以提高检索性能, 但固定死 的存储格式难以增加检索信息
d )影响可移植性和可伸缩性:
在不同的系统环境下,不同的应用需求,可能会有不同的存储要求。 例如 , 存储在硬盘上就需要考虑如何减少磁头寻道的次数以提高性能 , 而在嵌入式应用中数据都相当于存储在内存中的, 就不存在这个问题。 例如, 同一个厂商的数据库软件在不同平台上就可能会使用不同的存储 格式。 因此, 设置文档存储标准将会影响系统的可移植性和可伸缩性。 · 现有技术中最开放、可交换性最好的文档是 Adobe Acrobat的 PDF。 然而, 虽然 PDF已经成为全球文档分发、 交换的事实标准, 但也不能实 现在不同的软件之间交换 PDF文档, 也就是说, 不能实现 PDF文档的 互操作性。 而且, 无论是 Acrobat还是 Office, 都只能对单文档进行处 理, 缺乏对多文档的管理功能, 不具备对文档库进行操作的功能。
另外, 在文档信息安全的方面, 现有技术也存在较多缺陷。 Word 和 PDF这些应用最广泛的文档,都是采用对数据加密或者口令认证等进 行数据安全控制, 没有提供系统的身份认证机制, 对权限的控制都是整 个文档范围的, 不能细化到文档内的任意区域, 无法对任意逻辑数据设 定加密和签名。 现有的内容管理系统虽然能够提供较好的身份认证机 制, 但由于与文档处理系统是分离的, 不仅管理粒度只能做到文档级, 而且无法在文档使用过程中对文档实施安全控制, 难以进行必要的安全 管理。 由此可见, 由于现有的安全机制与文档处理是分离的模块, 容易 出现安全缝隙。 发明内容
本发明提供了一种文档处理的系统和方法, 实现对文档的互操作、 对多文档的管理、 更好的文档安全性以及更好的查询检索。
一种文档处理系统, 该系统包括应用层和文档库系统, 所述应用 层包括至少一个应用软件;
应用软件, 用于向文档库系统发出包含动作和对象的、 对文档进 行操作的标准指令;
文档库系统, 用于对所存储的文档数据中的所述对象, 执行标准 指令指示的动作。
一种文档处理方法, 该方法包括:
应用软件向文档库系统发出包含动作和对象的、对文档进行操作 的标准指令;
文档库系统对所存储的文档数据中的所述对象,执行标准指令指 示的动作。
一种文档处理系统, 该系统包括应用层、 文档库系统和接口层, 所述应用层包括至少一个应用软件;
应用软件, 用于通过接口层, 向文档库系统发出包含所述动作和 对象的、 对文档进行操作的标准指令;
文档库系统, 用于通过接口层接收该标准指令, 对所存储的文档 数据中的对象执行标准指令指示的动作。
本发明改变了从用户界面到文档存储都由一个软件来完成的现状, 将其划分为应用层和文档库系统层, 并定义一个规范两层之间交互的接 口标准, 还可以进一步构建一个符合该接口标准的接口层。 文档库系统 是具备各种文档操作功能的通用技术平台, 应用软件要对文档进行操作 时就通过该接口层来向文档库系统发出相应指令, 文档库系统根据该指 令执行相应操作。 这样, 只要各应用软件和各文档库系统都遵循同样的 标准, 不同应用软件就可以通过同一个文档库系统对同一文档操作, 即 可实现对文档的互操作。 同样, 同一个应用软件也可以通过不同文档库 系统对不同文档进行操作, 而不用分别对每种文档格式都进行单独开 发。
本发明还包括一个通用文档模型, 该模型能与各应用软件所需要处 理的文档相符合。 接口标准就是基于该文档模型来确定的, 这样才能实 现不同的应用软件都可以通过接口层来对文档进行操作。 该通用文档模 型也适用于各种文档格式, 这样同一个应用软件才可以通过接口层来对 不同文档格式进行操作。
接口标准定义了基于该通用文档模型对文档进行操作的各种指令, 以及应用软件向文档库系统发送指令的方式。 文档库系统具备实现这些 指令的功能, 以供应用软件调用。
该通用文档模型还包括由多个文档组成的文档集、 文档库和文档仓 库等层次, 接口标准中也包含对多文档的组织管理、 查询检索、 安全控 制等指令。
该通用模型还包括将页由具有上下顺序的层组成, 接口标准中也包 含对层的各种操作指令, 以及对一个文档某一层所对应源文件的存储和 提取。
文档库系统还具备对文档的信息安全管理控制功能, 如基于角色的 细粒度权限管理, 并在接口标准中定义了相关的操作指令。
依照本发明, 使得应用层和数据处理层分离。 这样应用软件不再直 接跟具体的文档格式打交道, 文档也不再与特定应用软件绑定, 从而使 得同一文档能在不同的应用软件之间通用, 同一应用软件也能对不同文 档进行操作, 实现了文档的互操作; 整个文档处理系统还具备多文档处 理功能, 而不局限在单文档处理; 将页分成多层后, 可以实现对不同层 实施不同管理和控制, 更便于不同应用软件对同一页的操作(可以设计 成不同应用软件管理和维护不同层), 为以源文件方式进行编辑提供了 便利, 也是一种艮好的保留历史痕迹的方式; 通过将信息安全集成在文 档处理的核心层, 可以消灭安全缝隙, 还能使安全机制与文档操作紧密 地结合为一体, 而不是可以分离的两个模块, 同时有更多的空间部署安 全管理技术, 相关代码也能隐藏得更深, 能更有效地防御非法攻击, 提 高安全可靠度, 另外还能提供细粒度的安全管理手段, 如更多的权限类 别, 更小的管理单元。 附图简要说明 图 1为依照本发明的文档处理系统的结构框图。
图 2示出了依照本发明一优选实施例的通用文档模型的组织结构。 图 3示出了图 2所示通用文档模型中文档库对象的组织结构。
图 4示出了图 3所示文档库对象中文档库辅助对象的组织结构。 图 5示出了图 3所示文档库对象中文档集对象的组织结构。
图 6示出了图 5所示文档集对象中文档对象的组织结构。
图 7示出了图 6所示文档对象中页面对象的组织结构。
图 8示出了图 7所示页面对象中层对象的组织结构。
图 9示出了图 8所示层对象中版面对象的组织结构。
图 10-17为本发明的实施例中所定义的动作。
图 18为以 UOML接口为例的文档处理系统的处理示意图。 实施本发明的方式
以下结合附图及实施例,对本发明进行进一步详细说明。应当理解, 此处所描述的具体实施例仅仅用于解释本发明, 并不用于限定本发明。
如图 1所示, 依照本发明的文档处理系统主要包括应用软件、 接口 层、 文档库系统和存储设备。
其中的应用软件包括现有的任何文档处理和内容管理软件, 这些应 用软件都位于文档处理系统的应用层, 通过发送符合接口标准的指令来 对文档进行操作, 所述操作都是对符合通用文档模型的文档进行的, 与 具体存储格式无关。
其中的接口层符合规范应用层和文档库系统之间交互的接口标准, 所述应用层通过接口层向文档库系统发送标准指令, 所述文档库系统通 过接口层向应用层返回执行的结果。 由此可见, 由于应用软件均可以通 过接口层发出标准指令, 对符合通用文档模型的文档进行操作, 所以不 同的应用软件可以通过同一文档库系统对同一文档进行操作, 同一应用 软件也可以通过不同文档库系统对不同格式的文档进行操作。
优选地, 接口层可包括上接口单元和下接口单元, 应用层通过上接 口单元发送标准指令至下接口单元, 文档库系统通过下接口单元接收标 准指令, 下接口单元还用于将文档库系统的执行结果通过上接口单元返 回给庄用系统。 在实现上, 上接口单元可位于应用层中, 下接口单元可 位于文档库系统中。
其中的文档库系统为文档处理系统的核心层, 才 据应用软件通过接 口层发来的标准指令执行具体的文档处理操作。
其中的存储设备为文档处理系统的存储层, 常用的是硬盘或者内 存, 也可以是光盘、 闪存、 软盘、 磁带, 也可以是远程的存储设备, 总 之只要具备数据的存储能力即可。 在存储设备中存储有多个文档, 但对 应用软件而言并不需要关心文档的具体存储方式。
由此可见, 依照本发明, 使得应用层和数据处理层真正分离开来, 文档不再与特定应用软件绑定, 应用软件不再直接跟具体的文档格式打 交道, 不同的应用软件可以对符合通用文档模型的同一文档进行编辑, 使不同应用软件之间具有良好的文档互操作性。
本发明还公开了一种应用软件, 其包括用于发出标准指令的接口单 元, 所述标准指令用于对符合通用文档模型的文档进行操作。
本发明还公开了一种文档库系统, 其包括: 用于接收标准指令的接 口单元; 和, 用于根据该标准指令对符合通用文档模型的文档进行操作 的处理单元。
本发明还公开了一种接口层, 其包括:
上接口单元, 用于发送对符合通用文档模型的文档进行操作的标准 指令;
下接口单元, 用于接收该标准指令。
进一步, 上接口单元可以根据应用层发出的指令生成标准指令, 下 接口单元判断接收到的指令是否符合标准 , 并解析符合标准的指令。
以下对本发明的文档处理系统的具体实施方式进行阐述。
通用文档模型
可参考纸张的特性定义所述通用文档模型, 这是因为以纸张作为文 档信息的记录手段是通行至今的标准方法, 只要能具备纸张的所有功 能, 就能满足工作、 生活等实际应用的需求。
如果把文档中的一页当成一张纸, 凡是能画到纸上的就记录下来, 该通用文档模型能够描述页面上的所有可见内容。 现有技术中的页面描 述语言(如 PostScript )可以描述所有能印在纸上的信息, 因此这一部分 就不再详细阐述。 一般说来, 页面上的可见内容最终都可以归为文字、 图形、 图像三类。
如果文档中涉及到特定字体或特殊字符的话, 为了保证在各台电脑 上都能有相同的效果, 就需要在文档中嵌入相应字库。 为了提高存储效 率, 字库资源应当共享, 这样即使在多处使用了同一字符, 也只需要嵌 入一个字库。图像有时也是可能在多处出现的,例如每一页共同的底图, 或经常出现的公司标识, 这种情况下最好也能共享这些图像。
当然, 作为更加先进的信息处理工具, 不能仅仅模拟纸张的特性, 还需要增加一些增强的数字特性, 例如元数据、 导航、 导读、微缩版面。 元数据是描述数据的数据, 例如作者、 出版社、 出版时间、 ISBN号等 就是图书的元数据。 元数据是业内通用名词, 也不在此赘述。 导航是类 似图书目录的信息, 也是业内通用名词。 导读信息描述了一篇文章所在 的区域和阅读顺序, 这样当阅读者读完一屏后就可以才艮据该信息自动判 断下一屏应该显示什么, 这样还能做到自动换栏、 自动转版, 而不用阅 读者再手工指定位置。 微缩版面是事先生成的各页面的微缩图, 阅读者 可以通过查看^缩版面来指定阅读哪一页。
图 2是本发明的一优选实施例的通用文档模型。 如图 2所示, 该通 用文档模型包含文档仓库、 文档库、 文档集、 文档、 页、 层、 对象組、 版面对象等多个层次。
其中, 文档仓库由一个或多个文档库组成, 文档库之间的关系相对 于文档库之下的层次之间的关系相对要松散一些, 文档库之间可以非常 筒单地组合和拆离, 而不用对文档库本身的数据做改动, 该多个文档库 之间往往没有建立统一索引 (特别是全文索引) , 很多对文档仓库的检 索操作一般都需要遍历各文档库的索引, 而没有统一的索引可用。 每个 文档库由一个或多个文档集组成, 每个文档集由一个或多个文档组成 , 还可以包含任意数量的子文档集。 这里所说的文档相当于目前普通的一 个文档文件(例如 DOC文档) , 通用文档模型可以规定一个文档只能 属于一个文档集, 但也可以允许一个文档属于多个文档集。 文档库不是 多个文档的简单组合, 它 多个文档紧密地组织起来, 特別是为文档内 容统一建立了各种检索索引后就能带来更大的便利性。
每个文档由一页或存在一定顺序 (如前后顺序) 的多页组成, 每页 的版心可以不同, 而且版心也不一定是矩形的, 可以是任意形状, 可以 用一条或多条封闭曲线表示版心。
每页又由一层或按一定顺序 (如上下顺序) 的多层组成, 各层之间 如同玻璃板的叠加关系。 层由任意数量的版面对象和对象组组成, 版面 对象是指状态(如字体、 字号、 颜色、 ROP等) 、 文字 (包括符号) 、 图形 (如直线、 曲线、 填充了指定颜色的闭合区域、 渐变色等) 、 图象 (如 TIF、 JPEG、 BMP、 JBIG等) 、 语义信息(如标题开始、 标题结 束、 换行等) 、 源文件、 脚本、 插件、 嵌入式对象、 书签、 链接、 流媒 体、 二进制数据流等。 一个或多个版面对象可以组成一个对象组。 对象 组也可以包含任意数量的子对象组。
文档库、 文档集、 文档、 页、 层都可以还包括元数据(如名称、 最 后修改时间等, 其类型可以根据应用需求来设置)和 /或历史痕迹; 文 档中还可以包括导航信息、 导读信息、 微缩版面; 也可以把微缩版面放 在页或者层这个层次; 文档库、 文档集、 文档、 页、 层、 对象组都可以 还包括数字签名; 语义信息最好跟着版面信息走, 这样可以避免数据冗 余, 也比较容易与版面建立对应关系; 文档库、 文档还可以包括字库、 图像等共享资源。
该通用文档模型还可以定义一个或多个角色, 为每个角色分配一定 权限。 权限以文档库、 文档集、 文档、 页、 层、 对象组、 元数据为单元 进行分配, 定义每个角色对该单元是否可读、 是否可写、 是否可复制、 是否可打印, 等等。
该通用文档模型是一个超越以往单个文档对应单个文件的方式, 文 档库中包含多个文档集、 文档集中包含多个文档, 而对于文档库中文档 内容, 采用了细粒度的访问和安全控制, 可以具体访问文档库中某个文 字或者矩形, 而不像现在的文档管理系统只能访问到文件名。
图 3至图 9示出了本发明一优选实施例的通用文档模型所涉及的各 对象的组织结构示意图。 所述的各对象的组织结构是树状结构, 是逐层 展开、 细化的。
文档仓库对象是由一个或多个文档库对象组成(图中未示出) 。 如图 3所示, 文档库对象包括一个或多个文档集对象、 任意数量文 档库辅助对象和任意数量的文档库共享对象。
如图 4所示, 所述的文档库辅助对象包括元数据对象、 角色对象、 权限对象、 插件对象、 索引信息对象、 脚本对象、 数字签名对象、 历史 痕迹对象等。 文档库共享对象是指文档库中的不同文档可能共享的对 象, 如字库对象、 图像对象等。
如图 5所示, 每个文档集对象包括一个或多个文档对象、 任意数量 的文档集对象和任意数量的文档集辅助对象。 文档集辅助对象包括元数 据对象、 数字签名对象、 历史痕迹对象。 当文档集对象包括多个文档集 对象时, 其类似于资源管理器中的文件夹包括多个文件夹的形式。
如图 6所示, 每个文档对象包括一个或多个页面对象、 任意数量的 文档辅助对象和任意数量的文档共享对象。 文档辅助对象包括元数据对 象、 字库对象、 导航信息对象、 导读信息对象、 微缩版面对象、 数字签 名对象、 历史痕迹对象等。 文档共享对象包括文档中的不同页面可能共 同使用的对象, 如图像对象、 印章对象等。
如图 7所示, 每个页面对象包含一个或多个层对象和任意数量的页 面辅助对象组成。 页面辅助对象包括元数据对象、 数字签名对象、 历史 痕迹对象。
如图 8所示, 每个层对象包括一个或多个版面对象、 任意数量的对 象组和任意数量的层辅助对象。 层辅助对象包括元数据对象、 数字签名 对象、 历史痕迹对象。 对象组包括任意数量的版面对象、 任意数量的对 象组和可选的数字签名对象。 当对象组包括多个对象组时, 其类似于资 源管理器的文件夹包括多个文件夹的形式。
如图 9所示, 版面对象包括状态对象、 文字对象、 直线对象、 曲线 对象、 圓弧对象、 路径对象、 渐变色对象、 图像对象、 流媒体对象、 元 数据对象、 批注对象、 语义信息对象、 源文件对象、 脚本对象、 插件对 象、 二进制数据流对象、 书签对象以及超链接对象。
其中, 状态对象包括任意数量的字符集对象、字体对象、字号对象、 文字颜色对象, 光栅操作对象、 背景色对象、 线颜色对象、 填充色对象、 线型对象、 线宽对象、 线接头对象、 画刷对象、 阴影对象、 阴影颜色对 象、 旋转对象、 空心字对象、 勾边字对象、 透明对象和渲染模式对象。
在具体实施过程中, 可以在上述通用文档模型基础上进一步增强或 简化。 如果在简化模型中省略了文档集对象, 则文档库对象直接由文档 对象组成; 如果在简化模型中省略了层对象, 则页面对象直接由版面对 象组成。
可以理解, 最简化的通用文档模型是仅包含文档对象、 页面对象和 版面对象。 其中版面对象仅包括文字对象、 直线对象和图像对象。 完整 模型和最筒化模型之间的各种中间模型都属于本优选实施例的变形。
通用安全模型:
为了满足各种应用对文档安全性的需求, 还需要定义一种通用的文 档安全模型, 以解决由于现有软件的文档安全功能不够强, 或者是安全 管理机制与文档处理模块脱节所导致的安全缝隙。 根据本发明一优选实 施例, 通用文档安全模型包括:
1. 在文档库中设置若干角色, 角色对象是文档库对象的子对象。
2. 可以设置任意角色对任意对象(例如文档库、 文档集、 文档、 页、 层、 对象组、 版面对象等) 的访问权限。 如果设置了某角色对某对 象的访问权限, 则该权限适用于该对象的所有子对象。
3. 文档库系统实现的访问权限包括是否可读、 是否可写、 是否可 再授权、 是否可收回授权及其排列组合。 也可以定义其他需要由应用软 件来配合实现的权限, 如不可打印。
4. 角色可以对任意对象进行签名。签名范围包括该对象的子对象, 以及引用到的对象。
5. 创建角色对象的指令的执行结果是向应用软件返回一个密钥, 作为应用软件以该角色身份登录的依据, 该密钥通常是 PKI的私钥, 由 应用软件保管, 该密钥也可以是登录口令。
6. 当应用软件以某一角色身份登录时, 通常采用"挑战-应答,,机 制, 即文档库系统用保存的角色公钥加密一块随机数据发给应用软件, 应用软件解密后返回给文档库系统, 如果解密正确, 则表明应用软件确 实拥有该角色对应的私钥。 "挑战 -应答 "机制也可以用以下方式实现, 文档库系统将一块随机数据发给应用软件, 应用软件用私钥加密后返回 给文档库系统, 文档库系统用保存的角色的公钥解密, 如果解密正确, 则表明应用软件确实拥有该角色对应的私钥。 为保险起见, 该认证过程 可能会重复几次。釆用"挑战一应答"机制可以更好地保护私钥的安全性。 如果角色的密钥是登录口令, 则需要用户输入正确的登录口令。
7. 应用软件可以同时登录多个角色, 此时拥有的权限是各角色权 限的并集。 在具体实施过程中, 可以在上述通用安全模型基础上进一步增强或 简化。 针对上述安全模型的任何简化模型都是本实施例的变形。
接口层的具体实现
所述接口层的统一接口标准可根据通用文档模型、 通用安全模型和 常用的文档操作而定义, 用于发送对通用文档模型中各对象进行操作的 指令。 所述的对通用文档模型中各对象进行操作的指令符合接口标准, 各种应用软件可以通过接口层发出标准指令。
现在介绍接口标准的实现方式。 接口标准的实现可以是上接口单元 按照预先定义的标准格式生成命令串, 例如" <UOML— INSERT (OBJ=PAGE, PARENT=123.456.789, POS=3) />,,, 将该命令串发送给下 接口单元 , 并从下接口单元接收文档库系统对该命令的执行结果或其它 反馈信息; 或者, 接口标准的实现是下接口单元提供一些具有标准名称 和参数的接口函数, 例如: "BOOL UOI— InsertPage (UOI— Doc *pDoc, int nPage)", 上接口单元调用这些标准函数, 调用操作本身就代表上接口单 元发出了标准指令; 或者是上述方法的组合。
接口标准采用 "操作动作 +操作对象"的方式来实现便于学习和理解, 也便于保持接口标准的稳定性。例如,对 20种不同对象进行 10种操作, 可以定义 20x10=200种指令, 也可以定义 20种对象和 10种动作, 但显 然后一种方式大大减轻了记忆的负担, 而且今后在对接口标准进行 "充 时, 增加一个对象或动作也 f艮简单。 所述操作对象为通用文档模型所包 含的对象。
例如, 定义以下 7种操作动作:
打开: 用于创建或打开文档库;
关闭: 用于关闭会话句柄、 关闭文档库;
获取: 用于获取对象列表、 对象相关属性和数据; 设置: 用于设置 /修改对象数据;
插入: 插入指定对象或数据;
删除: 用于删除对象的某个子对象;
检索查询: 用于根据定义条件在文档中找到符合条件的内容, 这些 条件既可以是准确的信息, 也可以是不准确的信息, 即模糊查找。
定义如下对象: 文档库、 文档集、 文档、 页、 层、 对象组、 文字、 图像、 图形、 路径(由一组顺序图形连接组成, 可以是闭合也可以不闭 合的) 、 源文件、 脚本、 插件、 音频、 视频、 角色等。
对象还包括下列状态对象: 背景色、 线的颜色、 填充色、 线型、 线 宽、 ROP、 画刷、 阴影、 阴影颜色、 字符高、 字符宽、 旋转、 透明、 渲 染模式等。
可以理解,在采用 "操作动作 +操作对象,,方式实现接口标准时, 不能 自动理解为每一个对象和每一个动作的所有组合都一定能构成有实际 意义的操作指令, 一些组合是没有意义的。
还可以用非"操作动作 +操作对象"的函数方式来定义接口标准, 例 如对每一个对象的每一种操作都定义一个接口函数, 这样各种操作指令 就是上接口单元以调用下接口单元的接口函数来发送给文档库系统。
还可以封装各个对象类, 如文档库类, 把该对.象可以进行的操作定 义成该类的方法。
特别地, 如果在接口标准中定义了获取版面位图的指令, 将对保障 版面一致性和文档互操作性起到非常关键的作用。
在检索查询指令中, 除了常规的关键词检索外, 还可以提供更加丰 富的检索手段。 在常规的搜索技术中, 搜索是和文档处理分离的, 搜索 程序只能从文档中提取純文本信息, 而无法获取更多信息, 只能基于文 本信息检索。但在本发明中,检索查询功能是集成在文档处理的核心层, 即文档库系统 , 这样就可以更充分地利用文档中蕴含的信息来提供更为 强大的检索手段, 如:
1. 基于字体信息的检索,如检索黑体字的"书生", Times New Roman 字体的 "Sursen"
2. 基于字号信息的检索, 如检索三号字的"书生", 20 磅以上的 "Sursen", 长字 (即字高超过字宽) 的"文档库"
3. 基于颜色的检索, 如检索红色的 "书生,,, 蓝色的 "Sursen"
4. 基于版面位置的检索, 如检索位于页面上半部分的 "书生", 位于 页脚的 "Sursen"
5. 基于特殊修饰效果的检索 , 如检索斜体字的"书生", 顺时针旋转 30度至 90度之间的" Sursen", 空心字的" SEP" , 勾边字的"文档库"
6. 根据类似的思路,还可以进一步提供其它类型的检索, 如检索反 白 (黑底白字) 的"书生", 压图的 "Sursen"等
7. 可以检索多个版面对象的组合, 如"书生"距离" Sursen"不超过 5 厘米
8. 上述检索条件的任意组合
以下是用 "操作动作 +操作对象"的方式实现接口标准的一个实施例, 在该实施例中, 接口称为非结构操作标记语言(UOML ),是用可扩展标 记语言(XML )描述的一系列的命令。每个动作都对应一个 XML元素, 每个对象也都对应一个 XML元素;描述一个命令时,将描述对象的 XML 元素作为描述动作的 XML元素的子元素,即可生成包括动作 +对象的字 符串。 上接口单元将该字符串发送给下接口单元, 就将相应的操作指令 发送给了文档库系统。 文档库系统执行这些命令后, 下接口单元将执行 结果也生成一个符合 UOML格式的字符串,返回给上接口单元,使应用 软件能够知晓操作执行结果。 所有执行结果都由 UOML— RET表示, 参见图 10, 其定义如下: 属性:
SUCCESS:值为真(true ) 时表明操作成功, 否则失败。'
子元素:
ERR_INFO: 可选, 仅当操作失败时出现, 描述了相应的错误信息。 其它子元素: 根据具体命令确定, 可参考各命令说明。
UOML动作包括:
1 UOML— OPEN创建或打开文档库, 参见图 11。
1.1属性
1.1.1 create: 为 true时是创建, 否则是打开已有文档库。
1.2子元素:
1.2.1 path:文档库路径。 可以是磁盘文件名, 也可以是 URL, 或者 是内存指针, 或者是网络路径, 或者是文档库的逻辑名称, 或者其它能 够指定文档库的表示方法。 可以用不同特征的字符串区分上述各种情 况, 即不用改变命令格式, 只要给字符串设置不同特征, 就可以用不同 的方法指定文档库。 例如, 磁盘文件名采用设备名称(如盘符)和": "开 头 (如" C:,,、 "D:" ) , 而且紧跟着":,,不会是 /,,, 也不会是又一个":,,; URL釆用协议名称和" ://"开头(如" http://" ); 内存指针用 "MEM::"开头, 后面是指针的字符串表示方式,例如" MEM::1234:5678,,; 网絡路径是 "\\" 开头, 后面是服务器名, 以及服务器上的路径, 如 "\\server\abc\def.sep"; 文档库的逻辑名称可以用" *,,开头, 如" *MyDocBasel,,。在下接口单元解 析时,如果第一个字母是" *,,就表明该字符串代表文档库的逻辑名称; 否 则如果头两个字母是 "\\"就表明该字符串代表网络路径;否则如果头五个 字母是 "MEM::"就表明该字符串代表内存指针; 否则寻找字符串的第一 个":", 如果该": "后面是" //,, 该就表明字符串代表 URL, 否则就代表本 地设备上的文件。 对于打开服务器上的文档库的情形, 可以设立一个专 门的 URL协议来区分, 例如用 "Docbase://myserver/mydoc2"指明打开服 务器 myserver上运行的文档库系统月 务器系统所管理的 mydoc2文档库。 总之, 只要能给字符串设置不同特征, 就可以用不同的方式来指定文档 库。 根据上述说明, 还可以定义各种不同的字符串特征; 该方式不仅能 应用于指定文档库路径, 还能应用于其它场合, 特别是用来指定特定资 源位置的应用场合。 在 4艮多情况下, 希望能够用一种新方式来指定相关 资源, 但又不能或不希望改变现有的协议或函数, 这时就可以通过在字 符串中设置不同特征的方式来指定, 这种方法具有最好的通用性, 这是 因为, 无论何种协议或函数, 只要支持磁盘文件名或 URL, 就支持字符 串。
1.3返回值:
如果成功, 则在 UOML— RET中包含一个" handle"子元素, 记录句柄 2 关闭(UOML— CLOSE), 参见图 12。
2.1属性: 无。
2.2子元素:
2.2.1 handle: 对象句柄, 是一个字符串表示的对象的引用指针。
2.2.2 db— handle: 文档库句柄, 字符串表示的文档库的引用指针。 2.3返回值: 无返回值。
3 UOML— GET获取, 参见图 13。
3.1属性
3.1.1 usage: 用途,为" GetHandle" (获取指定对象句柄)、 "GetObj" (获取指定对象数据) 、 "GetPageBmp" (获取版面位图) 中的一个。
3.2子元素
3.2.1 parent: 父对象句柄, usage属性为 "GetHandle"时使用。 3.2.2 pos: : f立置顺序号, usage属性为 "GetHandle,,时使用。
3.2.3 handle: 指定对象的句柄, 当 usage属性为 "GetObj"时使用。
3.2.4 page:需要显示的页面的句柄,当 usage属性为 "GetPageBmp" 时使用。
3.2.5 input: 描述了对输入页面的约束, 其中可以指定显示一层或 者多层的内容(可以显示的层一定是当前角色有权限访问的层) ; 也可 以通过指定 Clip 区域来指定显示区域的大小。 当 usage 属性 为" GetPageBmp"时使用。
3.2.6 output: 描述了版面位图的输出方式, 当 usage 属性 为" GetPageBmp"时使用。
3.3返回值:
3.3.1 当 usage属性为 "GetHandle"时, 执行成功时在 UOML— RET 中包含一个" handle"子元素, 记录 parent下第 pos个子对象的句柄。
3.3.2 当 usage属性为 "GetObj"时, 执行成功时在 UOML— RET中 包含一个" xobj"子元素 , 含有 handle对象的数据的 xml表示。
3.3.3 当 usage属性为 "GetPageBmp"时, 执行成功时在 output指定 位置输出版面位图。
4 UOML— SET 设置, 参见图 14。
4.1属性: 无。
4.2子元素:
4.2.1 Handle: 设置对象的句柄。
4.2.2 xobj: 对象的描述。
4.3返回值: 无返回值。
5 UOML— INSERT 插入, 参见图 15
5.1属性: 无。 5.2子元素:
5.2.1 parent: 父对象句柄。
5.2.2 xobj: 对象的描述。
5.2.3 pos: 插入位置。
5.3返回值:如果执行成功,则将 xobj参数表示的对象,插入到 parent 中成为其第 pos个子对象,并在 UOML— RET中包含一个" handle"子元素, 表示新插入对象的句柄。
6 UOML— DELETE 删除, 参见图 16
6.1属性: 无。
6.2子元素:
6.2.1 handle: 需要删除的对象的句柄。
6.3返回值: 无返回值。
7 UOML_QUERY 检索查询, 参见图 17
7.1属性: 无。
7.2子元素:
7.2.1 handle: 需要查詢的文档库句柄。
7.2.2 condition: 查询条件。
7.3返回值: 如果成功, 在 UOML— RET中包含一个" handle"子元素 代表查询结果的句柄, 一个" number"子元素代表查询结果的数量, 可以 用 UOML— GET来获取每一个查询结果。
UOML对象包括:
文档库(UOML— DOCBASE)、 文档集(UOML— DOC SET)、 文档 (UOML— DOC)、 页(UOML— PAGE)、 层(UOML— LAYER)、 对象组 (UOML— OBJGROUP)、 文字 (UOML— TEXT)、 图像 (UOML_IMAGE)、 直 线 (UOML—LINE)、 曲线 (UOML— BEIZER)、 圓弧 (UOML— ARC)、 路径 ( UOML— PATH ) 、 源 文 件 (UOML— SRCFILE) 、 背 景 色 ( UOML— BACKCOLOR ) 、 前 景 颜 色 (UOML— COLOR) 、
ROP(UOML_ROP) 、 字 符 尺 寸 (UOML— CHARSIZE) 、 字 体
(UOML— TYPEFACE)。
下文以 UOML— DOC、 UOML— TEXT和 UOML— CHARSIZE为例说 明其定义方式:
1 UOML— DOC
1.1属性: 无。
1.2子元素:
1.2.1 metadata: 元数据。
1.2.2 pageset: 各页面。
1.2.3 fontinfo: 嵌入字库。
1.2.4 navigation: 导航信息。
1.2.5 thread: 导读信息。
1.2.6 minipage: 缩版面。
1.2.7 signiture: 数字签名。
1.2.8 sharesource: 共享资源。
2 UOML— TEXT
2.1属性:
2.1.1 Encoding: 文字编码方式。
2.2子元素:
2.2.1 TextData: 文字内容。
2.2.2 CharSpacingList: 对非等间距文字的字间距列表。
2.2.3 StartPos: 起点位置。
3 UOML— CHARSIZE 3.1属性:
3.1.1 width: 字符宽度。
3.1.2 height: 字符高度。
3.2子元素: 无。
以此类推, 可以用同样的方法来描述所有的 UOML对象。 当应用软 件对文档库进行操作时, 由上述 UOML动作与 UOML对象依照 XML 语法生成相应的 UOML命令, 将该 UOML命令发给文档库系统, 即代 表向文档库系统发出了相应操作指令。
例如,对创建文档库操作,可以用以下命令来完成:
<UOML— OPEN create="true">
<path val="f:\\data\\docbase 1.sep"/>
</UOML_OPEN>
对创建文档集操作,可以用以下命令来完成:
<UOML— INSERT >
<parent val= "123.456.7897>
<pos val="l"/>
<xobj>
<docset/>
</xobj>
</UOML_INSERT>
需要说明的是, 虽然 UOML是用 XML定义的, 但为了显得更加筒 洁, 在前面省略了类似" <?xml version-" 1.0" encoding="UTF-8"?>,,以及 "xmlns:xsi= "http://www.w3.org/200 l/XMLSchema-instance",,之类的常规 XML格式,只要是熟悉 XML语法的实施者都可以在实施过程中自行添 加。
也可以不用 XML方式定义命令串,例如改用类似 PostScript那样的 方式, 这样上例变成:
1, "f:\\data\\docbasel .sep", /Open
/docset, 1, "123.456.789", /Insert
根据同样的思路, 还可以定义出其它类型的命令串格式, 甚至还可 以不用文本方式, 而用二进制方式来定义命令串。
现在介绍对每一个对象的每一个操作都用一个命令来表示的方式的 一个具体实例, 在本实例中, 用" UOMLJNSERT— DOCSET"来表示插入 一个文档集, 用" UOMLJNSERT— PAGE"来表示插入一页, 以这样的方 式来定义每个命令:
UOMLJNSERT— DOCSET在文档库中创建一个文档集 属' 1·生: 无
子元素:
parent: 文档库句柄
pos: 插入位置
返回值:如果执行成功,则在 U0ML—RET中包含一个" handle" 子元素, 表示新插入文档集的句柄
这样上例就变为:
<U0ML— INSERT— DOCSET >
<parent val="123.456.789 >
<pos val="1 >
</UOML— INSERT— DOCSET >
用这种方法定义命令格式需要对每个对象的每种合法操作都单独定 义一条命令, 缺点是比较繁瑣。
现在介绍用函数调用的方式来实现接口标准的实例, 在该实例中, 通过上接口调用下接口的接口函数的方式来发送操作指令给文档库系 统。 以下以 C++语言为例说明, 该实例称为 UOI。 在该实例中, 定义了 UOI_Object作为所有对象的基类 , 为每个动作定义了一个函数, 该函数 的参数可以是对基类的指针或引用, 这样该函数就可适用于所有对象。
先定义一个 UOI返回值结构:
struct UOI— Ret {
BOOL m— bSuccess;
C String m—Errlnfo;
};
定义所有 UOI对象的基础类:
class UOI— Object {
public:
enum Type {
TYPE— DOCBASE,
TYPE—DOCSET,
TYPE— DOC,
TYPE— PAGE,
TYPE— LAYER,
TYPE— TEXT,
TYPE CHARSIZE,
};
Type m— Type;
UOI— Object();
virtual〜 UOI— Object();
static UOI— Object Create(Type objType);
}; 然后定义如下几个 UOI函数,与 "操作动作 +操作对象"方式实例中 的几个 UOML动作相对应:
UOI—RET UOI_Open(char *path, BOOL bCreate, HANDLE *pHandle);
UOI—RET UOI_Close(HANDLE handle, HANDLE db— handle);
UOI—RET UOI_GetHandle(HA DLE hParent, int nPos, HANDLE *pHandle);
UOI—RET UOI_GetObjType(HANDLE handle, UOI— Object :: Type *pType);
UOI—RET UOI_GetObj(HA DLE handle, UOI— Object *pObj);
UOI_RET UOI_GetPageBmp(HANDLE liPage, RECT rect, void *pBuf);
UOI—RET UOI_SetObj(HANDLE handle, UOI— Object *pObj);
UOI—RET UOI_Insert(HANDLE hParent, int nPos, UOI— Object *pObj, HANDLE *pHandle = NULL);
UOI—RET UOI_Delete(HANDLE handle);
UOI—RET UOI_Query(HA DLE liDocbase, const char *strCondition, HANDLE *phResult);
然后定义各 UOI 对象, 依然以 UOI— Doc、 UOI_Text 和 UOML— CharSize为例说明:
class UOI— Doc: public UOI— Object {
public:
UOI— MetaData m_MetaData;
int m_nPages;
UOI— Page **m_pPages;
int m— nFonts;
UOI— Font * * m_pFonts; UOI— Navigatio m— Navigation;
UOI— Thread m— Thread;
UOI— MiniPage *m__pMiniPages; UOI— Signature m— Signature;
int m— nShared;
UOI— Obj *m_p Shared;
UOI_Doc();
virtual〜UOI— Doc();
}; class UOI— Text: public UOI— Object { public:
enum Encoding {
ENCODE— ASCII,
ENCODE_GB 13000,
ENCODE— UNICODE,
} ;
Encoding m— Encoding;
char *m_pText;
Point m— Start;
int *m— CharSpace;
UOI— Text();
virtual〜 UOI— Text();
};
class UOI— CharSize: public UOI— Object { public:
int m— Width;
int m— Height;
UOI— CharSize();
virtual ~UOI— CharSize();
};
以下说明 UOI的使用方法。 首先是创建文档库操作:
ret = UOI_Open("f:\\data\\docbasel.sep", TRUE, &hDocBase); 然后是构建一个创建新对象的函数:
HANDLE InsertNewObj (HANDLE hParent, int nPos UOI— Object "Type type)
{
UOI— Ret ret;
HAD LE handle;
UOI— Obj *pNewObj = UOI_Obj::Create(type);
if (pNewObj = NULL)
return NULL;
ret = UOI_Insert(hParent, nPos, pNewObj, &handle);
delete pNewObj;
return ret.m— bSuccess? handle: NULL;
}
然后是直接获取对象的函数:
UOI— Obj *GetObj(HANDLE handle)
{
UOI— Ret ret;
UOI_Object:: Type type;
UOI— Obj *pObj; ret = UOI_GetObjType(handle, &type);
if ( !ret. m— bSuccess )
return NULL;
pObj = UOI_Obj::Create(type);
if (pObj == NULL)
return NULL;
ret = UOI_GetObj(handle, pObj);
if ( !ret. m— bSuccess ) {
delete pObj;
return NULL;
}
return pObj;
}
在对每一个对象的每一种操作都定义一个接口函数的方式中, 插入 文档集的操作指令就是上接口以下列方式调用下接口的接口函数来发 送给文档库系统的:
UOI_InsertDocset(pDocbase, 0);
在封装各个对象类 (如文档库类) 的方式中, 把该对象可以进行的 操作定义成该类的方法, 如:
class UOI— DocBase: public UOI—Obj
{
public:
/*!
* \brief 创建文档库
* \param szPath: 文档库全路径
* \param bOverride:是否覆盖原文件
* \return UOI— DocBase对象 BOOL Create(const char * szPath, bool bOverride =
/*!
* \brief 打开文档库 .
* \param szPath: 文档库全路径
* \return UOI— DocBase对象
*/
BOOL Open(const char * szPath);
/* !
* \brief 关闭文档库
* \param 无
* \return 无
*/
void Close();
/*!
* \brief 获取角色列表
* \param 无
* \return UOI— RoleList对象
* \sa UOI—RoleList
*/
UOI—RoleList GetRoleList();
/*!
* \brief 存储文档库
* \param szPath: 存储文档库全路径
* \retura 无 void Save(char *szPath = 0);
/*!
* \brief 插入文档集
* \param nPos:插入文档集的位置
* \return UOI— DocSet对象
* \sa UOI— DocSet
*/
UOI DocSet InsertDocSet(int nPos);
/* !
* \brief 获取指定索引的文档集
* \param nlndex: 文档列表的索引号
* \return UOI— DocSet对象
* \sa UOI— DocSet
*/
UOI— DocSet GetDocSet(int nlndex);
/*!
* \brief 获取文档集的总数
* \param 无
* \return 文档集个数
*/
int GetDocSetCountO;
/*!
* \brief 设置文档库的名称
* \param nLen: 文档库名称长度
* \param szName: 文档库名称 * \return 无
*/
void SetName(int nLen, const char* szName);
/*!
* \brief 获取文档库名称长度
* \param 无
* \return 长度
*/
int GetNameLen();
/*!
* \brief 获取文档库名称
* \param 无
* \return 文档库名称
*/
const char* GetName();
/*!
* \brief 获取文档库 id长度
* \param 无
* \return 长度
*/ ·
int GetIDLen();
/*!
* \brief 获取文档库 id
* \param 无
* \return id
*/ const char* GetID();
//! 构造函数
UOI—DocBase();
//! 析构函数 ' virtual〜UOI— DocBase();
};
这样插入文档集的操作指令就是上接口以下列方式调用下接口的接 口函数来发送给文档库系统的:
pDocBase.InsertDocset(O);
还可以用同样的方法为 Java、 C#、 VB、 Delphi等各种编程语言开发 的应用软件设计各种不同的接口标准。
只要在接口标准中不含有与特定的操作系统 (如 WINDOWS、 UNIX/LINUX. MAC OS, SYMBIAN )或特定的硬件平台(如 x86CPU、 MIPS, POWER PC等)相关连的特征, 该接口标准就可以具有跨平台 性, 使得不同平台上运行的应用软件和文档库系统都可以统一使用同样 的接口标准, 特别是可以让一个平台上运行的应用软件可以调用另一个 平台上运行的文档库系统来执行相应操作。 例如, 应用软件部署在客户 端, 使用的是 PC机, Windows操作系统, 文档库系统部署在服务器端, 使用的是大型机, Linux操作系统, 但应用软件依然可以像调用本地文 档库系统一样调用服务器上的文档库系统来执行相应文档操作。
如果在接口标准中不含有与特定编程语言相关的特征, 则该接口标 准还能做到与编程语言无关。 可以看出, 用命令串的方式容易构造与平 台无关、 与编程语言无关的接口标准, 更具有通用性。 特别是用 XML 来构造命令串的话, 由于目前在各种不同平台、 不同编程语言都存在易 于获得的 XML生成解析工具, 因此不仅该接口标准具有很好的跨平台 性和与编程语言无关性, 也非常便于工程师开发上接口单元和下接口单 元。
以上列举了多种接口标准的实现方法, 按照类似的思路设计的更多 种类的接口标准也包含在本发明的保护范围之内。
应该理解, 可以在上述实例的基础上按同样的思路增加操作指令, 也可以简化操作指令, 特别是文档模型被筒化时操作指令也会相应被筒 化。 最筒化情况下只有文档的创建、 页面的创建、 各版面对象的创建这 几个操作指令。
文档操作处理
现在, 参见图 1 , 继续描述依照本发明一优选实施例的文档处理系 统的工作过程。
应用软件是包含符合接口标准的上接口单元的软件, 例如 Office软 件、 内容管理、 资源采集等。 任一应用软件在需要对文档进行操作时, 依照前述方法将指令传递给文档库系统, 文档库系统根据指令来完成具 体操作过程。
文档库系统可以自由地存储、 组织文档库数据, 例如可以把一个文 档库的文件全部都存储在一个磁盘文件中; 可以一个文档对应一个磁盘 文件, 利用操作系统中的文件系统功能实现多文档组织; 也可以一页对 应一个磁盘文件; 还可以完全抛开操作系统, 在磁盘上留出一块空间后 直接对磁道、 扇区进行管理。 对文档库数据的存储格式, 可以用二进制 格式保存, 可以用 XML, 还可以用二进制 XML。 页面描述语言 (定义 页面上的文字、 图形、 图像等对象的方法)可以采用 PostScript, 可以采 用 PDF、 SPD (书生公司使用的页面描述语言) , 当然也可以采用自定 义的任何页面描述语言, 只要其符合统一的接口标准。
例如, 可以用 XML来描述文档库数据, 当文档模型是层次型的时 候,可以完全对照建立相应的 ML树。执行创建操作时就在 XML树中 增加一个结点, 执行删除操作就删掉相应结点, 执行设置操作就设置相 应结点的属性, 执行获取操作就取出相应结点的属性并返回给应用软 件, 执行查询操作时就遍历相关结点查找。
以下是该实施例的进一步说明:
1.用 XML来描述每个对象。 也就是说, 为每个对象都建立了一个 对应的 XML树。有的对象属性比较简单,其对应的 XML树就只有根结 点, 有的对象比较复杂, 其对应的 XML树还有子结点。 具体描述方法 可以参见前面用 XML来定义操作对象的说明。
2. 当新建一个文档库时就新建一个^ ^艮结点为文档库对象的 XML文 件。
3.每当在文档库中插入一个对象时, 如文字对象, 就将该对象对应 的 XML树插入到插入位置的父结点 (如层)之下。 这样, 文档库中的 每个对象都在文档库为根结点的 XML树中有一个对应的结点。
4. 当删除一个对象时, 就删除该对象对应的结点, 其下属所有子结 点也都被删除。 删除过程是从叶子结点开始自下而上遍历的。
5.设置一个对象属性时, 将该对象对应的结点的属性设置成该属 性。 如果该属性是用子结点表示的, 则设置对应的子结点。
6.获取一个对象属性时, 访问该对象对应的结点, 根据该结点的属 性和子结点获得该对象的属性。
7.获取一个对象的句柄时, 返回该对象对应结点的 XML路径。
8.复制一个对象(如页面)到指定位置时, 就将该对象对应的结点 开始的整个子树都复制到目标位置对应的父结点 (如文档)之下。 如果 是复制到另一个文档库中, 则需要将该子树引用的对象(如嵌入字库) 也一起复制过去。 9.执行获取版面信息指令时, 先生成一个指定位图格式的空白位 图, 其尺寸和指定区域相同, 然后遍历指定页面的所有版面对象, 凡是 位于指定区域内 (包括只有一部分在该区域内) 的版面对象, 都解释其 含义, 并在版面上相应体现。 具体过程虽然比较复杂比较专业, 但均属 于现有 RIP技术范畴, 不在此赘述。
文档安全处理
在创建角色对象时, 生成一对随机公私钥对(例如 512位的 RSA密 钥) , 将公钥存储在角色对象中, 将私钥返回给应用软件。
当应用软件登录时, 随机生成一块(例如 128字节)数据, 用相应 角色对象中的公钥加密该数据发给应用软件, 应用软件解密后比较臉 证, 如果正确则表明应用软件确实拥有该角色对应的私钥, 登录成功。 为保险起见, 该认证过程可以重复三次, 三次全部通过才算登录成功。
当对某一对象进行签名时, 也就是对其对应的结点开始的子树进行 签名。 为了能够使签名不受具体物理存储方式的影响, 需要先做一个正 则化, 使得逻辑上等效的变化(例如存储位置的改变导致相应指针的变 化) 不会影响签名有效性。 该正则化的方法如下:
按深度优先遍历以目标对象为根节点的子树中的各个节点(即目标 对象及其各个子对象), 按照遍历顺序依次计算每个节点的正则结果并 连接起来。
其中, 对子树的某一节点计算正则结果的方法为: 先计算该节点的 子节点数的 HASH值, 然后再依次计算该节点类型及其各个属性的 HASH值并按顺序连接在该节点的子节点数的 HASH值的后面,再计算 该连接结果的 HASH值, 得到该节点的正则结果。 如果需要对子树中的 某个节点引用的对象也一起做签名, 则可以将该节点引用的对象也作为 该节点的一个子节点来处理, 方法同上。 正则化以后,再做 HASH并用角色的私钥进行签名的处理可采用现 有技术, 这里不再赘述。
在上述正则化过程中, 可以把计算一个节点正则结果的方法改成如 下方案: 将该节点的子节点数、 类型及其各属性用分隔符隔开后按照顺 序连接起来, 计算该连接的结果的 HASH值, 得到该节点的正则结果。 还可以把计算一个节点正则结果的方法改成如下方案: 将该节点的子节 点数、 类型及其各属性的长度用分隔符隔开后按照顺序连接起来, 再与 子节点数、 类型、 各属性连接起来, 即得到该节点的正则结果。 总之, 计算一个节点正则结果的方法可以采用以下各种方案中的任意一种: 对 树的某一节点, 其子节点数、 类型、 各属性, 子节点数 /类型 /各属性 的长度(可选的), 原值或经过特定变换(如 HASH、 压缩), 按照预定 顺序连接起来(直接连接或用分隔符隔开)。
上述预定顺序的意思是, 子节点数长度、 类型长度、 各属性长度、 子节点数、 类型、各属性可以按任意顺序排列, 只要是预定的顺序即可。
另外, 在遍历子树中各个节点时, 既可以采用深度优先遍历也可以 采用宽度优先遍历。
不难给出上述方案的各种变化方式, 如每个结点的子结点数用分隔 符隔开后按照深度优先的顺序连接起来, 再与各结点其它数据的正则结 果连接起来。 总之, 只要对该子树中的所有结点的子结点数、 类型和各 属性, 按照确定的方法排列在一起就属于本实施例的变化。
当对某一对象设置权限时, 最简单的实现方式是简单记录各角色对 该对象(及其子对象) 的权限, 并在今后各角色访问时加以比较, 符合 权限的则允许相应操作, 否则报错返回。 更好的实现方式是对相应数据 加密, 并用密钥来控制权限, 如果该角色没有相应密钥就没有对应的权 限, 这种方式抗攻击能力要更强。 具体方案为: a) 对受保护的数据区域(通常为一个子树, 对应某对象及其所 有子对象) , 有一对对应的 PKI密钥对, 用其中的加密密钥对该数据区 域进行加密。
b) 对具有读权限的角色, 授予其解密密钥, 该角色可以用该密 钥解密该数据区域, 从而正确读取这些数据。
c) 对具有写权限的角色, 将授予其加密密钥, 该角色可以将修 改后的数据用该密钥加密, 从而可以正确写入该区域的数据。
d) 鉴于 PKI的加密 /解密效率较低, 为提高运行效率, 也可以 用对称密钥来对该数据区域加密, 加密密钥用于对该对称密钥进行加 密, 解密密钥用于解密经过加密后的密钥数据, 从而获得正确的对称密 钥。 为防止只有读权限的角色在获得对称密钥后用其修改数据, 可以用 加密密钥来对该数据区域进行数字签名, 每次拥有写权限的角色修改该 数据区域后都重新做一次签名, 从而确保数据不会被没有写权限的角色 篡改。
e) 当授予某一角色加密密钥或解密密钥时, 可以用该角色的公 钥对该密钥加密后存储, 这样只有拥有该角色的私钥时才能取出该密钥 需要说明的是, 本发明中所说明的文档安全技术, 如基于角色的权 限管理、 角色的认证方式、 多重角色登陆、 对树结构的正则化技术、 细 粒度的权限管理单元、 基于加密的权限设置等, 都不仅适用于本发明所 述的文档处理系统, 还可以运用于更为广泛的其它应用场合。
对层的管理
在本发明中, 为了使本文档处理系统能很好地模拟纸张的特性, 提 供了一种"只加不改"的技术方案。 也就是说, 每个应用软件都只在现有 文档内容基础上添加新的内容, 但不修改、 不删除已有的内容, 使文档 的一个页面就象一张纸一样, 可以由不同的人用不同的笔在纸上不断写 写画画, 但谁都不能修改、 删除已有内容。 具体方法是每一个应用软件 在编辑其它软件生成的文档时, 都在现有文档基础上新增加一层, 将本 软件新编辑的内容都放到这一层中, 不修改和删除前面各层的内容。 这 样, 每个文档的每一层只由一个应用软件来管理和维护, 其他应用软件 不能对该层进行编辑。 由于现有社会就是基于纸张来运转的, 因此只要 能符合纸张的特性就能满足现有应用的需求, 具备足够的实用价值。
为了确保每一层内容在生成后没有被修改、 删除, 可以利用每一层 的数字签名对象。 数字签名可以是对本层内容进行签名, 优选地, 可以 是对本层以及本层之前生成的所有层的内容一起签名。 签名以后并不妨 碍对文档做进一步的批注等编辑, 只要新的内容是位于新建的层, 没有 修改破坏签名时存在的各层, 签名依然是有效的, 但签名者只对签名以 前的内容负责, 不对签名以后的内容负责。 这是一个非常符合应用需求 的技术方案, 具有很大的实用价值。 相比之下, 现有的其它技术或者签 名后不允许编辑, 或者编辑后(尽管是"只加不改,,的编辑)签名被破坏。
前述技术方案不允许修改文档中的已有内容, 即使不考虑与纸张特 性的兼容以及数字签名问题, 需要修改的话也只能做版面级编辑, 即对 每个版面对象的编辑(增、删、 改)都不会对其它版面对象产生影响(这 是由于通用文档模型是基于可见部分为基础构建的, 不包含大量不可见 的、 关于版面对象之间的关系, 因此修改任何一个版面对象时, 其它版 面对象不会产生相应的调整,例如删掉一个字,就会在其位置留下空白, 右边的文字不会自动左移) 。 如果用户需要对文档中的已有内容进行编 辑, 并且还希望能像在原来那样编辑的话, 有一个技术方案可以很好地 满足这个应用需求。 该方案是当应用软件完成初始编辑时, 除了新建一 层存放当前编辑的内容外,还将源文件(按照应用软件自有的格式存储, 记录了各对象之间完整关系的文件, 例如. doc文件)嵌入到文档中。 当 下次需要进行继续编辑时, 从文档中取出该源文件, 并使用该源文件继 续编辑。编辑完成后清除该软件所管理的那一层,重新生成该层的内容, 并继续将新修改的源文件嵌入到文档中。
具体方法如下:
1.应用软件第一次处理该文档时, 新建一层, 将新编辑内容对应的 版面对象插入到新建层中, 同时用自身格式另存一份新编辑的内容(即 源文件) 。
2.在文档对象中新建一个源文件子对象 , 用来嵌入源文件(例如用 二进制数据的方式整体嵌入) , 并记录是哪一层对应该源文件对象。
3.用同一应用软件再次编辑该文档时, 从对应的源文件对象中取出 对应的源文件。
4.使用该源文件继续编辑该层内容。 由于该源文件是该应用软件自 身的格式, 可以按照该应用软件自身的功能继续对该层内容进行编辑。
5.再次编辑结束后, 根据新编辑后的结果更新该层内容(例如用全 部清除后全部重新生成的方式) , 同时将新修改后的源文件重新嵌入到 文档对象中。
6.如此循环往复, 就可以用原有应用软件按照原有方式对文档中的 已有内容进行编辑。
采用上述技术方案, 可以最大程度地实现文档的互操作性。 在应用 软件、 文档都采用本发明技术时, 在有足够安全权限的前提下, 可以实 现以下功能:
1.对任何文档, 用任何应用软件都可以正确打开、 显示、 打印。
2.对任何文档, 用任何应用软件都可以新添加任何内容, 而且不会 破坏文档已有签名。
3.对任何文档, 在不必考虑文档已有签名 (没有签名或者虽有签名 但允许破坏) 的前提下, 用任何症用软件都可以对文档已有内容进行版 面级编辑。
4.对任何文档, 使用文档已有内容的原始编辑软件可以对该内容进 行正常编辑。
由此可见, 通过本发明中对层的管理, 对文档的管理、 互操作、 安 全设置都带来极大的便利。
下面以 A软件创建一个文档并且 B软件对其进行编辑为例说明其工 作过程。 在本例中选用 UOI作为接口标准:
1. A软件发出指令,创建文档库 c:\sample\mydocbase.sep,将其句 柄存放在 hDocBase:
UOI_Open("c:\\sample\\mydocbase.sep", TRUE, &hDocBase);
2. A软件发出指令,在文档库 hDocBase中新建文档集,将其句柄 存放在 hDocSet:
hDocSet = InsertNewObj(hDocBase, 0, UOI—Obj:: TYPE— DOCSET); 在本 实例中, 该文档库中只有一个文档集, 即第一个文档集;
3. A软件发出指令,在文档集 hDocBase中新建文档,将其句柄存 放在 hDoc:
hDoc = InsertNewObj(hDocSet, 0, UOI_Obj:: TYPE_DOC); 在本实例中, 该文档集只有一个文档, 即第一个文档;
4. A软件发出指令,在文档 hDoc中新建一页,版心大小是宽 w,高 h, 将其句柄存放在 hPage:
UOI— Page page;
page.size.w = w;
page.size.h = h;
UOI_Insert(hDoc, 0, &page, &hPage); 在本实例中, 该文档中只有一页, 即第一页;
5. A软件发出指令,在页 hPage 中创建一层, 将其句柄存放在 hLayer:
hLayer = InertNewObj(hPage, 0, UOI—Obj::TYPE— LAYER); 在本实例中, 该页只有一层, 即第一层;
6. Α软件发出指令,设置字号为 s:
UOI_CharSize charSize;
charSize.m_Width = charSize.m— Height = s;
UOI— Insert(hLayer, 0, &charSize); 在本实例中, 该层的第一个版面对象 是字号对象;
7. A软件发出指令,在坐标 (xl,yl)位置插入文字串"书生意气挥 斥方遒":
UOI— Text text;
text.m_pText = Duplicate ("书生意气挥斥方遒,,);
textm— Encoding = UOI— Text:: ENCODE—GB 13000;
text.m_Start.x = xl;
text.m_Start.y = yl;
UOI_Insert(hLayer, 1, &text); 在本实例中, 该层的第二个对象是文字对 象;
8. A软件发出指令,关闭文档库 hDocBase:
UOI— Close(hDocBase);
B 软件发出指令,打开文档库 c:\sample\mydocbase.sep, 将其句柄存 放在 hDocBase:
UOI— Open("c:\\sample\\mydocbase.sep,,, FALSE, &hDocBase);
B软件发出指令,获取文档库 hDocBase第一个文档集的指针, 将其 句柄存放在 liDocSet: UOI_GetHandle(hDocBase, 0, &hDocSet);
9. B软件发出指令,获取文档集 hDocSet第一个文档的指针, 将 其句柄存放在 hDoc:
UOI_GetHandle(hDocSet, 0, &hDoc);
10. B软件发出指令,获取文档 hDoc第一页的指针,将其句柄存放 在 hPage:
UOI_GetHandle(hDoc, 0, &hPage);
11. B软件获取该页版面位图, 用于显示该页
UOI_GetPageBmp(hPage, rect, buf);
12. B软件发出指令,获取 hPage第一层的指针, 将其句柄存放在 hLayer:
UOI_GetHandle(hPage, 0, &hLayer);
13. B软件发出指令,获取第一个版面对象的句柄 hObj:
UOI_GetHandle(hLayer, 0, &hObj);
14. B软件发出指令,荻取 hObj的类型
UOI_GetObj Type(hObj , &type);
15. B软件发现这是一个字号对象, 获取该对象
U0I_Get0bj(h0bj, &charSize);
16. B软件将字高放大一倍:
chai'Size.m— Height *= 2;
UOI_SetObj(hObj, &charSize);
B软件重新获取版面位图并显示,这时会发现屏幕上的 "书生意气挥 斥方遒"变成长体字了
下面, 参照图 10描述依照本发明的文档操作系统执行一操作的一 个实例。在该实例中,应用软件通过统一的接口标准(例如 U0ML接口) 请求对文档的操作。 文档库系统可能会有不同厂商的不同型号, 但是对 于应用开发厂商来说面向的都是同一个接口标准, 因此都可以与之配套 使用。 Red Office、 OCR, 网页生成软件、 乐谱编辑软件、 书生阅读器、 Office编辑软件、其他阅读器等通过 UOML接口指示文档库系统进行操 作, 文档库系统可以有多个, 在图中显示为文档库系统 1、 文档库系统 2和文档库系统 3 , 文档库系统根据 UOML发来的统一标准指令对符合 通用文档模型的文档进行操作, 例如创建、 保存、 显示、 呈现文档。 在 本发明中, 不同的应用软件可以同时或不同时调用同一个文档库系统, 同一应用软件可以同时或不同时调用不同的文档库系统。
依照本发明, 使得应用层和数据处理层分离, 使得同一文档能在不 同的应用软件之间通用, 使不同应用软件之间具有良好的文档互操作 性。
依照本发明, 形成产业分工, 减少重复开发, 并更加专业、 完备、 正确; 对文档的基本操作都在文档库系统中处理, 各应用软件不必重复 开发。 而且由于文档库系统是由专业厂商开发, 相关技术的专业性、 完 备性、 正确性较有保障, 而且应用软件厂商和用户可以选择做的最好的 一家大档库系统厂商 , 从而保证处理效果的正确性和一致性。
依照本发明, 提供多文档甚至海量文档的管理机制, 使文档之间能 够有效组织起来, 便于检索、 查询、 保管, 便于嵌入较强的信息安全机 制。
依照本发明, 提供更好的安全机制, 可以设置多种角色, 细粒度地 设置每个角色的权限。 其中细粒度是双重的, 一方面可以对整个文档或 文档的一个细微之处进行权限设置, 另一方面可以设置种类非常多的权 限, 而不仅仅是传统的读 /写 /不可访问三级。
依照本发明, 鼓励创新, 合理竟争。 形成合理的产业分工后, 各文 档库系统厂商和各应用软件厂商就会在领域展开竟争, 而不会再出现 Microsoft Word—样靠文档格式来垄断应用软件的情形发生。 各文档库 系统厂商也可以在标准之外增加新的功能以吸引用户, 标准并不会对创 新形成束缚。
依照本发明, 便于优化性能, 有更好的可移植性和可伸缩性。 无论 是什么平台, 什么样的性能, 都可以遵循同样的调用接口, 使得在不改 变接口标准的情况下可以不断优化性能, 并移植到不同的平台。
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应 包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种文档处理系统, 其特征在于, 该系统包括应用层和文档 库系统, 所述应用层包括至少一个应用软件;
应用软件, 用于向文档库系统发出包含动作和对象的、 对文档进 行操作的标准指令;
文档库系统, 用于对所存储的文档数据中的所述对象, 执行标准 指令指示的动作。
2、 根据权利要求 1所述的系统, 其特征在于,
应用软件包含上接口单元, 用于发出包含动作和对象的标准指 令;
文档库系统包含下接口单元, 用于接收所述标准指令。
3、 根据权利要求 1 所述的系统, 其特征在于, 所述动作包括以 下至少其中一个: 打开、 关闭、 获取、 设置、 插入、 删除、 检索查询。
4、 根据权利要求 1 所述的系统, 其特征在于, 所述对象包括以 下至少其中一个: 文档库对象、 文档集对象、 文档对象、 页对象、 层 对象、 对象组、 状态对象、 文字对象、 图像对象、 图形对象、 路径对 象、 源文件对象、 脚本对象、 插件对象、 流媒体对象、 链接对象、 印 章对象、 二进制数据流对象、 书签对象、 批注对象、 语义信息对象、' 元数据对象、 角色对象、 权限对象、 数字签名对象、 字库对象、 导航 信息对象、 导读信息对象、 微缩版面对象、 索引信息对象、 历史痕迹 对象。
5、 一种文档处理方法, 其特征在于, 该方法包括:
应用软件向文档库系统发出包含动作和对象的、对文档进行操作 的标准指令; 文档库系统对所存储的文档数据中的所述对象,执行标准指令指 示的动作。
6、 根据权利要求 5所述的方法, 其特征在于, 所述发出标准指 令包括: 分别定义各对象和各动作, 确定应用软件的操作需求针对的. 对象和动作, 根据所述对象和动作的定义生成对应的标准指令。
7、 根据权利要求 6所述的方法, 其特征在于, 所述标准指令为 包含动作和对象的字符串。
8、 根据权利要求 7所述的方法, 其特征在于, 所述字符串为可 扩展标记语言 XML。
9、 根据权利要求 8所述的方法, 其特征在于, 所述每个动作对 应一个 XML元素, 所述每个对象对应一个 XML元素;
所述生成标准指令包括:
生成与动作对应的第一 XML元素, 将与对象对应的 XML元素 作为所述第一 XML元素的子元素。
10、 根据权利要求 6所述的方法, 其特征在于, 所述每个对象对 应同一个基类派生的一种类型, 所述每个动作对应一个接口函数, 该 接口函数的参数包括对基类的指针或引用;
所述发出标准指令包括: 根据操作需求调用接口函数。
1 1、 根据权利要求 10所述的方法, 其特征在于, 所述接口函数 是(3、 C++、 Java、 C#、 VB或 Delphi的函数。
12、 根据权利要求 5至 1 1任一项所述的方法, 其特征在于, 所 述动作包括以下至少其中一个: 打开、 关闭、 获取、 设置、 插入、 删 除、 检索查询。
13、 根据权利要求 12所述的方法, 其特征在于,
所述打开动作包括以下参数: 路径; 所述关闭动作包括以下参数: 被关闭对象或其句柄; 所述获取动作包括以下参数: 用途属性、 父对象或其句柄; 所述设置动作包括以下参数: 待设置对象或其句柄、 对象描述; 所述插入动作包括以下参数: 父对象或其句柄、 对象描述、 插入 位置;
所述删除动作包括以下参数: 待删除对象或其句柄;
所述检索查询动作包括以下参数: 待查询对象或其句柄、 查询条 件。
14、 根据权利要求 5至 11任一项所述的方法, 其特征在于, 所 述对象包括以下至少其中一个: 文档库对象、文档集对象、文档对象、 页对象、 层对象、 对象组、 状态对象、 文字对象、 图像对象、 图形对 象、 路径对象、 源文件对象、 脚本对象、 插件对象、 流媒体对象、 链 接对象、 印章对象、 二进制数据流对象、 书签对象、 批注对象、 语义 信息对象、 元数据对象、 角色对象、 权限对象、 数字签名对象、 字库 对象、导航信息对象、导读信息对象、微缩版面对象、 索引信息对象、 历史痕迹对象。
15、 根据权利要求 5所述的方法, 其特征在于, 所述应用软件发 出标准指令包括: 预先定义对每个对象执行每种动作的标准指令, 根 据应用软件的操作需求确定对应的标准指令。
16、 一种文档处理系统, 其特征在于, 该系统包括应用层、 文档 库系统和接口层, 所述应用层包括至少一个应用软件;
应用软件, 用于通过接口层, 向文档库系统发出包含所述动作和 对象的、 对文档进行操作的标准指令;
文档库系统, 用于通过接口层接收该标准指令, 对所存储的文档 数据中的对象执行标准指令指示的动作。
PCT/CN2006/003297 2005-12-05 2006-12-05 Système et procédé de traitement de documents WO2007065357A1 (fr)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2008543636A JP5530101B2 (ja) 2005-12-05 2006-12-05 文書処理システム及びその方法
EP06828251A EP1965314A4 (en) 2005-12-05 2006-12-05 SYSTEM AND METHOD FOR DOCUMENT PROCESSING
CN2006800456554A CN101322126B (zh) 2005-12-05 2006-12-05 文档处理系统和方法
US12/133,296 US8645344B2 (en) 2005-12-05 2008-06-04 Document processing system and method therefor
US14/034,428 US20140026230A1 (en) 2005-12-05 2013-09-23 Method, System, Login Device, and Application Software Unit for Logging in to Document Management System
US15/802,371 US20180083954A1 (en) 2005-12-05 2017-11-02 Method, system, login device, and application software unit for logging into docbase management system

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CNB2005101266836A CN100547590C (zh) 2005-12-05 2005-12-05 文档处理系统
CN200510126683.6 2005-12-05
CN200510131072A CN1979478B (zh) 2005-12-09 2005-12-09 文档处理系统和文档处理方法
CN200510131072.0 2005-12-09

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072602 Continuation WO2012126350A1 (zh) 2005-12-05 2012-03-20 登录文档库系统的方法、系统、登录器及应用软件单元

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/133,296 Continuation US8645344B2 (en) 2005-12-05 2008-06-04 Document processing system and method therefor

Publications (1)

Publication Number Publication Date
WO2007065357A1 true WO2007065357A1 (fr) 2007-06-14

Family

ID=38122486

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/003297 WO2007065357A1 (fr) 2005-12-05 2006-12-05 Système et procédé de traitement de documents

Country Status (4)

Country Link
US (1) US8645344B2 (zh)
EP (1) EP1965314A4 (zh)
JP (1) JP5530101B2 (zh)
WO (1) WO2007065357A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1965310A4 (en) * 2005-12-05 2009-02-11 Sursen Corp DOCUMENTARY PROCESSING METHOD
US9081977B2 (en) * 2005-12-05 2015-07-14 Donglin Wang Method and apparatus for privilege control
EP2069972A1 (en) 2006-09-12 2009-06-17 International Business Machines Corporation System and method for dynamic context-sensitive integration of content into a web portal application
CN101599011B (zh) * 2008-06-05 2016-11-16 天津书生投资有限公司 文档处理系统和方法
CN101477516B (zh) * 2008-09-10 2010-12-01 北京书生国际信息技术有限公司 一种电子数据处理方法和系统
CN101783787A (zh) * 2009-01-16 2010-07-21 北京书生国际信息技术有限公司 客户端/服务器模式的非结构化数据处理系统及方法
US20110060627A1 (en) * 2009-09-08 2011-03-10 Piersol Kurt W Multi-provider forms processing system with quality of service
US8504907B2 (en) * 2011-03-07 2013-08-06 Ricoh Co., Ltd. Generating page and document logs for electronic documents
US9773070B2 (en) 2014-06-30 2017-09-26 Microsoft Technology Licensing, Llc Compound transformation chain application across multiple devices
US9396698B2 (en) 2014-06-30 2016-07-19 Microsoft Technology Licensing, Llc Compound application presentation across multiple devices
US9356913B2 (en) 2014-06-30 2016-05-31 Microsoft Technology Licensing, Llc Authorization of joining of transformation chain instances
US9659394B2 (en) 2014-06-30 2017-05-23 Microsoft Technology Licensing, Llc Cinematization of output in compound device environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006242A (en) * 1996-04-05 1999-12-21 Bankers Systems, Inc. Apparatus and method for dynamically creating a document
US20030144982A1 (en) * 2002-01-30 2003-07-31 Benefitnation Document component management and publishing system
US20040205656A1 (en) * 2002-01-30 2004-10-14 Benefitnation Document rules data structure and method of document publication therefrom
US20050050444A1 (en) * 2003-09-03 2005-03-03 Vasey Philip E. Cross-reference generation

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5434962A (en) * 1990-09-07 1995-07-18 Fuji Xerox Co., Ltd. Method and system for automatically generating logical structures of electronic documents
JPH11110391A (ja) * 1997-09-30 1999-04-23 Hitachi Ltd 文書管理方法
US6308179B1 (en) * 1998-08-31 2001-10-23 Xerox Corporation User level controlled mechanism inter-positioned in a read/write path of a property-based document management system
AUPR264301A0 (en) 2001-01-19 2001-02-15 Keyset Phototype Pty Ltd System and method for editing computer files independently of the creator software application
US7043637B2 (en) * 2001-03-21 2006-05-09 Microsoft Corporation On-disk file format for a serverless distributed file system
US20050086584A1 (en) * 2001-07-09 2005-04-21 Microsoft Corporation XSL transform
US20030055871A1 (en) * 2001-07-31 2003-03-20 Javier Roses Document/poster composition and printing
US7203900B2 (en) * 2001-09-14 2007-04-10 Canon Kabushiki Kaisha Apparatus and method for inserting blank document pages in a print layout application
JP2003271584A (ja) * 2002-03-14 2003-09-26 Ricoh Co Ltd 文書管理装置、クライアント装置、文書管理システム、プログラム及び記憶媒体
EP1499964A2 (en) 2002-04-15 2005-01-26 Koninklijke Philips Electronics N.V. Method, system, computer program product and storage device for displaying a document
US7532340B2 (en) * 2002-04-19 2009-05-12 Toshiba Tec Kabushiki Kaisha Document management system rule-based automation
US20040003248A1 (en) * 2002-06-26 2004-01-01 Microsoft Corporation Protection of web pages using digital signatures
US7191186B1 (en) 2002-11-27 2007-03-13 Microsoft Corporation Method and computer-readable medium for importing and exporting hierarchically structured data
US7562215B2 (en) * 2003-05-21 2009-07-14 Hewlett-Packard Development Company, L.P. System and method for electronic document security
JP4136842B2 (ja) 2003-08-19 2008-08-20 キヤノン株式会社 文書編集方法および文書編集装置
JP3778190B2 (ja) * 2003-09-01 2006-05-24 コニカミノルタビジネステクノロジーズ株式会社 画像処理装置
JP2005122398A (ja) 2003-10-15 2005-05-12 Fujitsu Ltd 動的文書生成プログラム、その記録媒体、動的文書生成装置、及び動的文書生成方法
CN100337423C (zh) 2004-01-14 2007-09-12 哈尔滨工业大学 一种电子文档的保密、认证、权限管理与扩散控制的处理方法
US20050216886A1 (en) * 2004-03-12 2005-09-29 Onfolio, Inc. Editing multi-layer documents
JP2005301756A (ja) * 2004-04-13 2005-10-27 Fuji Xerox Co Ltd アクセス制御システム
US8661332B2 (en) * 2004-04-30 2014-02-25 Microsoft Corporation Method and apparatus for document processing
CN100547590C (zh) 2005-12-05 2009-10-07 北京书生国际信息技术有限公司 文档处理系统
EP1965310A4 (en) * 2005-12-05 2009-02-11 Sursen Corp DOCUMENTARY PROCESSING METHOD

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006242A (en) * 1996-04-05 1999-12-21 Bankers Systems, Inc. Apparatus and method for dynamically creating a document
US20030144982A1 (en) * 2002-01-30 2003-07-31 Benefitnation Document component management and publishing system
US20040205656A1 (en) * 2002-01-30 2004-10-14 Benefitnation Document rules data structure and method of document publication therefrom
US20050050444A1 (en) * 2003-09-03 2005-03-03 Vasey Philip E. Cross-reference generation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OPEN DOCUMENT MANAGEMENT API, 18 December 1995 (1995-12-18), pages 1 - 31

Also Published As

Publication number Publication date
EP1965314A4 (en) 2009-04-01
JP5530101B2 (ja) 2014-06-25
US8645344B2 (en) 2014-02-04
US20080270464A1 (en) 2008-10-30
EP1965314A1 (en) 2008-09-03
JP2009518719A (ja) 2009-05-07

Similar Documents

Publication Publication Date Title
WO2007065353A1 (fr) Systeme et procede de traitement de documents
WO2007065357A1 (fr) Système et procédé de traitement de documents
CN101599011A (zh) 文档处理系统和方法
US8171389B2 (en) Method of hierarchical processing of a document and system therefor
US20090320141A1 (en) Document data security management method and system therefor
CN1979478B (zh) 文档处理系统和文档处理方法
CN1979511B (zh) 一种文档数据安全管理系统和方法
CA2501667C (en) System and method for managing data using static lists
US20080263333A1 (en) Document processing method
US9081977B2 (en) Method and apparatus for privilege control
CN100507913C (zh) 一种文档处理方法及系统
CN107066437B (zh) 数字作品标注的方法及装置
CN102043821B (zh) 一种显示文档的方法
CN1979479B (zh) 文档处理系统和文档处理方法
Davidson SGML authoring tools for technical communication
TWI249687B (en) On-line approval method of scalable vector graphics electronic document
Magyar CHANNELS TO THE FUTURE

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200680045655.4

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2008543636

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2006828251

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 2006828251

Country of ref document: EP