WO2023115589A1 - 一种基于cdn的动态文档生成方法及装置 - Google Patents

一种基于cdn的动态文档生成方法及装置 Download PDF

Info

Publication number
WO2023115589A1
WO2023115589A1 PCT/CN2021/141407 CN2021141407W WO2023115589A1 WO 2023115589 A1 WO2023115589 A1 WO 2023115589A1 CN 2021141407 W CN2021141407 W CN 2021141407W WO 2023115589 A1 WO2023115589 A1 WO 2023115589A1
Authority
WO
WIPO (PCT)
Prior art keywords
document
processing
cdn
processing parameters
template
Prior art date
Application number
PCT/CN2021/141407
Other languages
English (en)
French (fr)
Inventor
孙涛
Original Assignee
江苏云工场信息技术有限公司
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 江苏云工场信息技术有限公司 filed Critical 江苏云工场信息技术有限公司
Publication of WO2023115589A1 publication Critical patent/WO2023115589A1/zh

Links

Images

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/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/258Heading extraction; Automatic titling; Numbering

Definitions

  • the present application relates to a document editing method, in particular to a CDN-based dynamic document generation method.
  • the present application also relates to a CDN-based dynamic document generation device.
  • the present application provides a CDN-based dynamic document generation method.
  • the present application also relates to a CDN-based dynamic document generation device.
  • the present application provides a method for generating dynamic documents based on CDN, which is characterized in that it includes:
  • the document processing service in the CDN node is invoked according to the tag characters, and the document processing service performs document processing according to the processing parameters.
  • the processing parameters include: adding a file title parameter, adding a watermark parameter, or adding a page number parameter.
  • the execution process of the document processing service includes:
  • processing parameters include:
  • a template serial number calling the modification template of the document according to the template serial number, and processing the document according to the modification template.
  • the modification template includes: a pre-selected addition and document format template or a modification template generated according to the modified document generated by the processing.
  • the present application also provides a CDN-based dynamic document generation device, including:
  • a modifying module configured to call a document processing service in the CDN node according to the tag characters, and the document processing service performs document processing according to the processing parameters.
  • the processing parameters include: adding a file title parameter, adding a watermark parameter, or adding a page number parameter.
  • the execution process of the document processing service includes:
  • processing parameters include:
  • the modification template includes: a pre-selected addition and document format template or a modification template generated according to the modified document generated by the processing.
  • the present application provides a method for generating a dynamic document based on CDN, which is characterized in that it includes: adding markup characters and processing parameters to the uniform resource identifier of the document; invoking the document processing service in the CDN node according to the markup characters, by the The document processing service performs document processing according to the processing parameters.
  • This application automatically modifies the documents in the CDN node server by adding mark characters and processing parameters to the uniform resource identifier, without opening other document software for document modification, which greatly saves the user's time and improves work efficiency.
  • Fig. 1 is a flowchart of CDN-based dynamic document generation in this application.
  • Fig. 2 is a flow chart of document processing in this application.
  • Fig. 3 is a schematic diagram of a CDN-based dynamic document generation device in this application.
  • the present application provides a method for generating a dynamic document based on CDN, which is characterized in that it includes: adding markup characters and processing parameters to the uniform resource identifier of the document; invoking the document processing service in the CDN node according to the markup characters, by the The document processing service performs document processing according to the processing parameters.
  • This application automatically modifies the documents in the CDN node server by adding mark characters and processing parameters to the uniform resource identifier, without opening other document software for document modification, which greatly saves the user's time and improves work efficiency.
  • S101 adds mark characters and processing parameters to the uniform resource identifier of the document.
  • the Uniform Resource Identifier includes: a character string used to identify a network resource name.
  • the uniform resource identifier allows users to perform interactive operations on any (including local and Internet) resources through specific protocols.
  • the uniform resource identifier includes: a host name, an identifier and a relative URI, wherein the host name is the host name of the storage address of the network resource, and is represented by a path of the resource; the identifier is the internal URL of the host name.
  • the pointer is used to indicate the internal path of the host of the network resource, which is also represented by the path; the relative URI refers to the relative position under the premise of a host name, for example: /file D, this is a relative URI, he The full name of should be protocol://domain name/directory a/directory b/file D.
  • each network resource has a unique uniform resource identifier
  • the present application adds mark characters and processing parameters to the uniform resource identifier.
  • the mark character is used for the CDN node to detect whether the document corresponding to the uniform resource identifier needs to be modified.
  • the uniform resource identifier contains mark characters, it is determined that the document needs to be modified.
  • the processing parameters that is, parameters for modifying the document, include location information and modification information.
  • S102 invokes the document processing service in the CDN node according to the tag characters, and the document processing service performs document processing according to the processing parameters.
  • the CDN node server judges whether there are mark characters and processing parameters in the URI, and if there are mark characters, it judges that the document resource corresponding to the URI needs to be modified.
  • the processing parameters include adding types: adding file title parameters, adding watermark parameters or adding page number parameters.
  • the processing parameters may also include modification types: parameters corresponding to specified text, picture modification or deletion, and when performing the adding, modifying or deleting operations at the same time, the marking characters are set to different marking characters, using corresponding to different modification types.
  • the CDN node server After the CDN node server determines that the document corresponding to the uniform resource identifier needs to be modified, it calls the document processing service to perform subsequent steps.
  • Fig. 2 is a flow chart of document processing in this application.
  • S201 receives the document and processing parameters.
  • the CDN sends the document and processing parameters to a document processing service.
  • the document processing service is built into the CDN node server, including directly using the hardware facilities in the processor of the CDN node to run.
  • the document processing service may exist in the form of a plug-in, that is, another document service processing device is set to connect to the CDN node.
  • each document processing service described in this application The service can connect to multiple CDN nodes and receive calls from multiple CDN nodes.
  • S202 parses the document and processes parameters.
  • the document processing service After receiving the document and processing parameters, the document processing service parses the document. Including, but not limited to, accessing the information in the document and the format of the document. At the same time, the processing parameters are analyzed to obtain direct parameters for modifying the document.
  • S203 modifies the document according to the processing parameters.
  • the document is modified according to the direct parameters obtained through parsing.
  • modifying the document as described in this application includes: obtaining location information and modification information from the direct parameters.
  • the modification is performed at the location provided by the location information according to the modification information.
  • the present application provides a modification method including performing multiple modifications according to the modification information.
  • the steps for modifying the watermark based on the above information are as follows:
  • the size of the watermark is calculated according to the character parameters in the file, and the size of the watermark can be preset.
  • the size of the watermark is twice the size of the text.
  • H and S are the horizontal and vertical intervals of the watermark
  • L and N are the horizontal and vertical lengths of the file
  • the b is the preset blank interval
  • the ⁇ means Round up
  • the ⁇ means round down.
  • S204 returns the modified document to the CDN node.
  • the processing parameter in this application may also be a template serial number, and the modification template of the document is invoked according to the template serial number, and the document is processed according to the modification template.
  • the modification template includes: a pre-selected addition and document format template or a modification template generated according to the modified document generated by the processing.
  • the modification template includes: at least one of title type, text type, paragraph type, header and footer type, picture size, color, and other parameters.
  • the present application also provides a CDN-based dynamic document generation device, including: an adding module 301, used to add markup characters and processing parameters on the uniform resource identifier of the document; a modification module 302, used to call the CDN according to the markup characters
  • the document processing service in the node performs document processing according to the processing parameters.
  • Fig. 3 is a schematic diagram of a CDN-based dynamic document generation device in this application.
  • the adding module 301 is used to add markup characters and processing parameters on the Uniform Resource Identifier of the document.
  • the Uniform Resource Identifier includes: a character string used to identify a network resource name.
  • the uniform resource identifier allows users to perform interactive operations on any (including local and Internet) resources through specific protocols.
  • the uniform resource identifier includes: a host name, an identifier and a relative URI, wherein the host name is the host name of the storage address of the network resource, and is represented by a path of the resource; the identifier is the internal URL of the host name.
  • the pointer is used to indicate the internal path of the host of the network resource, which is also represented by the path; the relative URI refers to the relative position under the premise of a host name, for example: /file D, this is a relative URI, he The full name of should be protocol://domain name/directory a/directory b/file D.
  • each network resource has a unique uniform resource identifier
  • the present application adds mark characters and processing parameters to the uniform resource identifier.
  • the mark character is used for the CDN node to detect whether the document corresponding to the uniform resource identifier needs to be modified.
  • the processing parameters that is, parameters for modifying the document, include location information and modification information.
  • the modifying module 302 is configured to call a document processing service in the CDN node according to the tag characters, and the document processing service performs document processing according to the processing parameters.
  • the CDN node server judges whether there are mark characters and processing parameters in the URI, and if there are mark characters, it judges that the document resource corresponding to the URI needs to be modified.
  • the processing parameters include adding types: adding file title parameters, adding watermark parameters or adding page number parameters.
  • the processing parameters may also include modification types: parameters corresponding to specified text, picture modification or deletion, and when performing the adding, modifying or deleting operations at the same time, the marking characters are set to different marking characters, using corresponding to different modification types.
  • the CDN node server After the CDN node server determines that the document corresponding to the uniform resource identifier needs to be modified, it calls the document processing service to perform subsequent steps.
  • Fig. 2 is a flow chart of document processing in this application.
  • S201 receives the document and processing parameters.
  • the CDN sends the document and processing parameters to a document processing service.
  • the document processing service is built into the CDN node server, including directly using the hardware facilities in the processor of the CDN node to run.
  • the document processing service may exist in the form of a plug-in, that is, another document service processing device is set to connect to the CDN node.
  • each document processing service described in this application The service can connect to multiple CDN nodes and receive calls from multiple CDN nodes.
  • S202 parses the document and processes parameters.
  • the document processing service After receiving the document and processing parameters, the document processing service parses the document. Including, but not limited to, accessing the information in the document and the format of the document. At the same time, the processing parameters are analyzed to obtain direct parameters for modifying the document.
  • S203 modifies the document according to the processing parameters.
  • the document is modified according to the direct parameters obtained through parsing.
  • modifying the document as described in this application includes: obtaining location information and modification information from the direct parameters.
  • the modification is performed at the location provided by the location information according to the modification information.
  • the present application provides a modification manner including performing multiple modifications according to the modification information.
  • the steps for modifying the watermark based on the above information are as follows:
  • the size of the watermark is calculated according to the character parameters in the file, and the size of the watermark can be preset.
  • the size of the watermark is twice the size of the text.
  • H and S are the horizontal and vertical intervals of the watermark
  • L and N are the horizontal and vertical lengths of the file
  • the b is the preset blank interval
  • the ⁇ means Round up
  • the ⁇ means round down.
  • S204 returns the modified document to the CDN node.
  • the processing parameter in the present application may also be a template serial number, and the modified template of the document is invoked according to the template serial number, and the document is processed according to the modified template.
  • the modification template includes: a pre-selected addition and document format template or a modification template generated according to the modified document generated by the processing.
  • the modification template includes: at least one of title type, text type, paragraph type, header and footer type, picture size, color, and other parameters.
  • the modified template When the modified template is called, first read the format data of the modified template sequentially according to the preset modifiable format type, and when the modified template lacks the preset modifiable format type, set The modifiable format is not modified. Then a modification queue is generated, and the documents are modified sequentially according to the modification queue.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Document Processing Apparatus (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

本申请提供一种基于CDN的动态文档生成方法,其特征在于,包括:在文档的统一资源标识符上添加标记字符和处理参数;根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。本申请通过统一资源标识符上添加标记字符和处理参数,自动对CDN节点服务器中的文档进行修改,无需再打开其他文档软件进行文档修改,极大的节省使用者的时间,提供工作效率。

Description

一种基于CDN的动态文档生成方法及装置 技术领域
本申请涉及一种文档编辑方法,尤其涉及基于CDN的动态文档生成方法。本申请还涉及一种基于CDN的动态文档生成装置。
背景技术
现有技术中,文档存储到CDN节点的服务器中之后,如果需要进行文档的编辑,则需要在通过文档的编辑应用打开所述文档进行文档编辑,从而导致工作人员在工作中需要额外打开应用软件,导致工作效率低。
发明内容
为解决常规的CDN节点服务器中文档编辑效率低下的问题,本申请提供一种基于CDN的动态文档生成方法。本申请还涉及一种基于CDN的动态文档生成装置。
本申请提供一种基于CDN的动态文档生成方法,其特征在于,包括:
在文档的统一资源标识符上添加标记字符和处理参数;
根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。
可选的,所述处理参数包括:添加文件标题参数、添加水印参数或者添加页码参数。
可选的,所述文档处理服务的执行流程包括:
接收所述文档和处理参数;
解析所述文档和处理参数;
根据所述处理参数对所述文档进行修改;
将修改后的所述文档返回到所述CDN节点中。
可选的,所述处理参数包括:
模板序号,根据所述模板序号调用所述文档的修改模板,并根据所述修改模板对所述文档进行处理。
可选的,所述修改模板包括:预选添加和文档格式模板或者根据所述处理生成的修改后的文档生成的修改模板。
本申请还提供一种基于CDN的动态文档生成装置,包括:
添加模块,用于在文档的统一资源标识符上添加标记字符和处理参数;
修改模块,用于根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。
可选的,所述处理参数包括:添加文件标题参数、添加水印参数或者添加页码参数。
可选的,所述文档处理服务的执行流程包括:
接收所述文档和处理参数;
解析所述文档和处理参数;
根据所述处理参数对所述文档进行修改;
将修改后的所述文档返回到所述CDN节点中。
可选的,所述处理参数包括:
模板序号,根据所述模板序号调用所述文档的修改模板,并根据所述修改 模板对所述文档进行处理。
可选的,所述修改模板包括:预选添加和文档格式模板或者根据所述处理生成的修改后的文档生成的修改模板。
本申请相对与现有技术的优点:
本申请提供一种基于CDN的动态文档生成方法,其特征在于,包括:在文档的统一资源标识符上添加标记字符和处理参数;根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。本申请通过统一资源标识符上添加标记字符和处理参数,自动对CDN节点服务器中的文档进行修改,无需再打开其他文档软件进行文档修改,极大的节省使用者的时间,提供工作效率。
附图说明
图1是本申请中基于CDN的动态文档生成的流程图。
图2是本申请中文档处理流程图。
图3是本申请中基于CDN的动态文档生成装置示意图。
具体实施方式
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
本申请提供一种基于CDN的动态文档生成方法,其特征在于,包括:在文档的统一资源标识符上添加标记字符和处理参数;根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档 处理。本申请通过统一资源标识符上添加标记字符和处理参数,自动对CDN节点服务器中的文档进行修改,无需再打开其他文档软件进行文档修改,极大的节省使用者的时间,提供工作效率。
请参照图1所示,S101在文档的统一资源标识符上添加标记字符和处理参数。
在本申请中,所述统一资源标识符(URI)包括:用于标识网络资源名称的字符串。所述统一资源标识符允许用户对任何(包括本地和互联网)的资源通过特定的协议进行交互操作。
具体的,所述统一资源标识符包括:主机名称、标志符和相对URI,其中所述主机名称是网络资源存放地址的主机名称,由资源的路径表示;所述标志符是所述主机名称内部的指向符,用于表示网络资源的主机内部的路径,也是由路劲表示;所述相对URI是指在一个主机名称的前提下的相对位置,例如:/文件D,这是个相对URI,他的全称应当是协议://域名/目录a/目录b/文件D。
在网络存储中,每一个所述网络资源都有唯一的统一资源标识符,本申请在所述统一资源标识符中添加标记字符和处理参数。所述标记字符是用于CDN节点进行检测,所述统一资源标识符对应的文档是否要进行修改。优选的,在本申请中当所述统一资源标识符中具有标记字符,则判断所述文档要进行修改。所述处理参数,即对文档进行修改的参数,包括位置信息、修改信息。
请参照图1所示,S102根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。
CDN节点服务器在接收到所述统一资源标识符后,即判断所述统一资源标识符中是否具有标记字符和处理参数,若有标记字符则判断所述统一资源标识符对应文档资源需要进行修改。所述处理参数包括添加类型的:添加文件标题参数、添加水印参数或者添加页码参数。所述处理参数还可以包括修改类型的:指定的文字、图片修改或者删除所对应的参数,在同时在执行所述添加、修改或者删除操作时,所述标记字符设置为不同的标记字符,用于分别对应不同的修改类型。
所述CDN节点服务器在确定所述统一资源标识符对应的文档要进行修改之后,即调用文档处理服务进行后续步骤。
图2是本申请中文档处理流程图。
请参照图2所示,S201接收所述文档和处理参数。
所述CDN将所述文档和处理参数发送给文档处理服务。在本申请中,所述文档处理服务是内置到所述CDN节点服务器中的,包括直接采用CDN节点的处理器中的硬件设施运行。在另一种选择中,所述文档处理服务可以是外挂的形式存在的,即另外设置一个文档服务处理设备连接到所述CDN节点上,在此基础上,本申请中所述每一个文档处理服务可以连接多个CDN节点,并接收多个CDN节点的调用。
请参照图2所示,S202解析所述文档和处理参数。
所述文档处理服务接收到所述文档和处理参数后,解析所述文档。包括但不限于获取所述文档中的信息和文档格式。于此同时,解析所述处理参数,获取到用于修改所述文档的直接参数。
请参照图2所示,S203根据所述处理参数对所述文档进行修改。
在获取到文档以及所述文档的格式后,根据解析获取到的直接参数对所述文档进行修改。
具体的,本申请所述对文档进行修改,包括:从所述直接参数中获取位置信息和修改信息。根据所述修改信息在位置信息提供的位置处进行修改。本申请提供一种修改方式包括,根据所述修改信息进行多次修改。
例如,所述位置信息为文件全文,所述修信息为“XXX”水印,则根据以上信息进行水印修改的步骤如下:
首先根据所述文件中文字参数计算水印大小,所述水印的大小可以预先设置。优选的,所述水印大小为文字大小的两倍。
然后计算水印布局,其公式为:
H=↑(L/(2A 1+b))
S=↓(N/(2A 2+b))
其中H、S是水印的横竖间隔,所述L、N是文件的横竖长度,A 1、A 2所述文件中文字的横竖长度,所述b是预设的留白间隔,所述↑表示向上取整,所述↓表示向下取整。
最后基于所述水印布局进行多个相同水印的添加。
请参照图2所示,S204将修改后的所述文档返回到所述CDN节点中。
到此,完成本申请中的文档修改流程,所述文档将缓存到所述CDN节点服务器,或者回源到云端进行存储,以待后用。
另外,本申请所述处理参数还可以是模板序号,根据所述模板序号调用所述文档的修改模板,并根据所述修改模板对所述文档进行处理。所述修改模板包括:预选添加和文档格式模板或者根据所述处理生成的修改后的文档生成的修改模板。具体的,所述修改模板包括:标题类型、文字类型,段落类型、页眉页脚类型以及图片大小、颜色以及其他参数中的至少一种。当所述修改模板被调取后,首先根据预先设置的可修改格式种类,依次读取所述修改模板的格式数据,当所述修改模板中缺少所述预先设置的可修改格式种类,则设置为该可修改格式为不修改。然后生产修改队列,并根据所述修改队列对文档依次进行修改。
本申请还提供一种基于CDN的动态文档生成装置,包括:添加模块301,用于在文档的统一资源标识符上添加标记字符和处理参数;修改模块302,用于根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。
图3是本申请中基于CDN的动态文档生成装置示意图。
请参照图3所示,添加模块301,用于在文档的统一资源标识符上添加标 记字符和处理参数。
在本申请中,所述统一资源标识符(URI)包括:用于标识网络资源名称的字符串。所述统一资源标识符允许用户对任何(包括本地和互联网)的资源通过特定的协议进行交互操作。
具体的,所述统一资源标识符包括:主机名称、标志符和相对URI,其中所述主机名称是网络资源存放地址的主机名称,由资源的路径表示;所述标志符是所述主机名称内部的指向符,用于表示网络资源的主机内部的路径,也是由路劲表示;所述相对URI是指在一个主机名称的前提下的相对位置,例如:/文件D,这是个相对URI,他的全称应当是协议://域名/目录a/目录b/文件D。
在网络存储中,每一个所述网络资源都有唯一的统一资源标识符,本申请在所述统一资源标识符中添加标记字符和处理参数。所述标记字符是用于CDN节点进行检测,所述统一资源标识符对应的文档是否要进行修改。优选的,在本申请中当所述统一资源标识符中具有标记字符吗,则判断所述文档要进行修改。所述处理参数,即对文档进行修改的参数,包括位置信息、修改信息。
请参照图3所示,修改模块302,用于根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。
CDN节点服务器在接收到所述统一资源标识符后,即判断所述统一资源标识符中是否具有标记字符和处理参数,若有标记字符则判断所述统一资源标识符对应文档资源需要进行修改。所述处理参数包括添加类型的:添加文件标题参数、添加水印参数或者添加页码参数。所述处理参数还可以包括修改类型的:指定的文字、图片修改或者删除所对应的参数,在同时在执行所述添加、修改或者删除操作时,所述标记字符设置为不同的标记字符,用于分别对应不同的修改类型。
所述CDN节点服务器在确定所述统一资源标识符对应的文档要进行修改之后,即调用文档处理服务进行后续步骤。
图2是本申请中文档处理流程图。
请参照图2所示,S201接收所述文档和处理参数。
所述CDN将所述文档和处理参数发送给文档处理服务。在本申请中,所述文档处理服务是内置到所述CDN节点服务器中的,包括直接采用CDN节点的处理器中的硬件设施运行。在另一种选择中,所述文档处理服务可以是外挂的形式存在的,即另外设置一个文档服务处理设备连接到所述CDN节点上,在此基础上,本申请中所述每一个文档处理服务可以连接多个CDN节点,并接收多个CDN节点的调用。
请参照图2所示,S202解析所述文档和处理参数.
所述文档处理服务接收到所述文档和处理参数后,解析所述文档。包括但不限于获取所述文档中的信息和文档格式。于此同时,解析所述处理参数,获取到用于修改所述文档的直接参数。
请参照图2所示,S203根据所述处理参数对所述文档进行修改。
在获取到文档以及所述文档的格式后,根据解析获取到的直接参数对所述文档进行修改。
具体的,本申请所述对文档进行修改,包括:从所述直接参数中获取位置信息和修改信息。根据所述修改信息在位置信息提供的位置处进行修改。本申请提供一种修改方式包括,根据所述修改信息进行多个修改。
例如,所述位置信息为文件全文,所述修信息为“XXX”水印,则根据以上信息进行水印修改的步骤如下:
首先根据所述文件中文字参数计算水印大小,所述水印的大小可以预先设置。优选的,所述水印大小为文字大小的两倍。
然后计算水印布局,其公式为:
H=↑(L/(2A 1+b))
S=↓(N/(2A 2+b))
其中H、S是水印的横竖间隔,所述L、N是文件的横竖长度,A 1、A 2所述文件中文字的横竖长度,所述b是预设的留白间隔,所述↑表示向上取整,所述↓表示向下取整。
最后基于所述水印布局进行多个相同水印的添加。
请参照图2所示,S204将修改后的所述文档返回到所述CDN节点中。
到此,完成本申请中的文档修改流程。
另外,本申请所述处理参数还可以模板序号,根据所述模板序号调用所述文档的修改模板,并根据所述修改模板对所述文档进行处理。所述修改模板包括:预选添加和文档格式模板或者根据所述处理生成的修改后的文档生成的修改模板。
具体的,所述修改模板包括:标题类型、文字类型,段落类型、页眉页脚类型以及图片大小、颜色以及其他参数中的至少一种。当所述修改模板被调取后,首先根据预先设置的可修改格式种类,依次读取所述修改模板的格式数据,当所述修改模板中缺少所述预先设置的可修改格式种类,则设置为该可修改格式为不修改。然后生产修改队列,并根据所述修改队列对文档依次进行修改。

Claims (10)

  1. 一种基于CDN的动态文档生成方法,其特征在于,包括:
    在文档的统一资源标识符上添加标记字符和处理参数;
    根据所述标记字符调用CDN节点中的文档处理服务,由所述文档处理服务根据所述处理参数进行文档处理。
  2. 根据权利要求1所述基于CDN的动态文档生成方法,其特征在于,所述处理参数包括:添加文件标题参数、添加水印参数或者添加页码参数。
  3. 根据权利要求1所述基于CDN的动态文档生成方法,其特征在于,所述文档处理服务的执行流程包括:
    接收所述文档和处理参数;
    解析所述文档和处理参数;
    根据所述处理参数对所述文档进行修改;
    将修改后的所述文档返回到所述CDN节点中。
  4. 根据权利要求1所述基于CDN的动态文档生成方法,其特征在于,所述处理参数包括:
    模板序号,根据所述模板序号调用所述文档的修改模板,并根据所述修改模板对所述文档进行处理。
  5. 根据权利要求4所述基于CDN的动态文档生成方法,其特征在于,所述修改模板包括:预选添加和文档格式模板或者根据所述处理生成的修改后的文档生成的修改模板。
  6. 一种基于CDN的动态文档生成装置,其特征在于,包括:
    添加模块,用于在文档的统一资源标识符上添加标记字符和处理参数;
    修改模块,用于根据所述标记字符调用CDN节点中的文档处理服务,由 所述文档处理服务根据所述处理参数进行文档处理。
  7. 根据权利要求1所述基于CDN的动态文档生成装置,其特征在于,所述处理参数包括:添加文件标题参数、添加水印参数或者添加页码参数。
  8. 根据权利要求1所述基于CDN的动态文档生成装置,其特征在于,所述文档处理服务的执行流程包括:
    接收所述文档和处理参数;
    解析所述文档和处理参数;
    根据所述处理参数对所述文档进行修改;
    将修改后的所述文档返回到所述CDN节点中。
  9. 根据权利要求1所述基于CDN的动态文档生成装置,其特征在于,所述处理参数包括:
    模板序号,根据所述模板序号调用所述文档的修改模板,并根据所述修改模板对所述文档进行处理。
  10. 根据权利要求9所述基于CDN的动态文档生成装置,其特征在于,所述修改模板包括:预选添加和文档格式模板或者根据所述处理生成的修改后的文档生成的修改模板。
PCT/CN2021/141407 2021-12-20 2021-12-25 一种基于cdn的动态文档生成方法及装置 WO2023115589A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111564003.4A CN114329262B (zh) 2021-12-20 2021-12-20 一种基于cdn的动态文档生成方法及装置
CN202111564003.4 2021-12-20

Publications (1)

Publication Number Publication Date
WO2023115589A1 true WO2023115589A1 (zh) 2023-06-29

Family

ID=81052067

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/141407 WO2023115589A1 (zh) 2021-12-20 2021-12-25 一种基于cdn的动态文档生成方法及装置

Country Status (2)

Country Link
CN (1) CN114329262B (zh)
WO (1) WO2023115589A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071446A (zh) * 2007-06-22 2007-11-14 腾讯科技(深圳)有限公司 标记性语言文档的解析方法、解析模块和用户终端
US20110320626A1 (en) * 2010-06-28 2011-12-29 Hulu Llc. Method and apparatus for synchronizing paused playback across platforms
CN105593831A (zh) * 2013-10-08 2016-05-18 索尼公司 服务器装置、客户端装置、信息处理方法和记录介质
CN109918605A (zh) * 2019-03-07 2019-06-21 杭州又拍云科技有限公司 一种基于内容分发网络的生成动态图片的方法
CN113177390A (zh) * 2021-05-07 2021-07-27 深圳市欧瑞博科技股份有限公司 文档的智能处理方法、装置、计算机可读介质及电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320679B (zh) * 2014-10-11 2019-02-15 中兴通讯股份有限公司 一种基于hls协议的用户信息获取方法和服务器
CA2972593A1 (en) * 2014-12-31 2016-07-07 Level 3 Communications, Llc Network address resolution
US10452766B2 (en) * 2015-11-25 2019-10-22 Box, Inc. Creating shared content in a device-independent content editor using a native operating system interface
US20190251146A1 (en) * 2018-02-14 2019-08-15 Pearson Education, Inc. Device for rendering markup language with structured data
US11055268B2 (en) * 2018-03-19 2021-07-06 Fast Technologies, Inc. Automatic updates for a virtual index server
CN110909520A (zh) * 2019-11-14 2020-03-24 北京天融信网络安全技术有限公司 一种文档构建方法及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071446A (zh) * 2007-06-22 2007-11-14 腾讯科技(深圳)有限公司 标记性语言文档的解析方法、解析模块和用户终端
US20110320626A1 (en) * 2010-06-28 2011-12-29 Hulu Llc. Method and apparatus for synchronizing paused playback across platforms
CN105593831A (zh) * 2013-10-08 2016-05-18 索尼公司 服务器装置、客户端装置、信息处理方法和记录介质
CN109918605A (zh) * 2019-03-07 2019-06-21 杭州又拍云科技有限公司 一种基于内容分发网络的生成动态图片的方法
CN113177390A (zh) * 2021-05-07 2021-07-27 深圳市欧瑞博科技股份有限公司 文档的智能处理方法、装置、计算机可读介质及电子设备

Also Published As

Publication number Publication date
CN114329262B (zh) 2022-07-26
CN114329262A (zh) 2022-04-12

Similar Documents

Publication Publication Date Title
JP6381599B2 (ja) ホバーに応答した発呼
US8321503B2 (en) Context-specific network resource addressing model for distributed services
US9311281B2 (en) Methods for facilitating web page image hotspots and devices thereof
US8281284B2 (en) Method and software for editing web documents
US9876879B2 (en) Distributed network page generation
CA2606917A1 (en) System, method and engine for playing smil based multimedia contents
WO2021093673A1 (zh) 邮件发送方法、装置、设备及计算机可读存储介质
WO2023115589A1 (zh) 一种基于cdn的动态文档生成方法及装置
JPH1115723A (ja) マルチメディアデータ供給方法及びマルチメディアデータサーバ
CN109918605B (zh) 一种基于内容分发网络的生成动态图片的方法
CN116450383A (zh) 一种通过网页调用操作系统的方法
JP5747128B2 (ja) マイクロブログベースのドキュメントファイルの共有の方法及び装置
CN112257394B (zh) 一种版式文档协同批注展示方法及处理终端
CN109933382B (zh) 基于owa服务的在线ppt文件预览工具
JP2005149131A (ja) 情報処理装置、方法及びプログラム
CN107844537A (zh) 一种标记网页的方法及系统
KR20160132854A (ko) 콘텐츠의 캡처를 통한 자산 수집 서비스 제공 기법
CN113810738B (zh) 一种基于集线器渲染‘伪’b端的方法、装置及存储介质
KR101433830B1 (ko) Url 기반 이미지 처리 시스템 및 방법
JP2005004629A (ja) ページ生成方法及びその装置
CN118094030A (zh) 渲染方法、装置、设备及存储介质
JPH09223004A (ja) プログラム開発支援方法
JP2008009674A (ja) 巡回型画面キャプチャーシステム
CN116757171A (zh) 一种提取文本内容生成融合信息模板的方法
CN117235404A (zh) 一种支持结构化及文本化的Nginx配置系统、方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21968718

Country of ref document: EP

Kind code of ref document: A1