首页> 外国专利> METHOD AND APPARATUS FOR DOWNLOADING DATA BASED ON PDF DOCUMENT, AND STORAGE MEDIUM AND TERMINAL

METHOD AND APPARATUS FOR DOWNLOADING DATA BASED ON PDF DOCUMENT, AND STORAGE MEDIUM AND TERMINAL

机译:基于pdf文档的数据下载方法及装置,存储媒体和终端

摘要

Disclosed are a method and apparatus for downloading data based on a PDF document, and a storage medium and a terminal, which relate to the technical field of data processing, and mainly aim to solve the problem that because both the format and content of data required to be downloaded from existing websites are not fixed, the processing pressure of the websites is increased when the data is added to a fixed PDF document template. The method comprises: when a data download request is received, acquiring text data and picture data according to the request content carried in the data download request; respectively converting the text data and the picture data into a first-class object and a second-class object, and reading a pre-created PDF document template; adding the first-class object and the second-class object to a class object X and a class object Y in a matching manner, and establishing an output byte stream of a PDF document after matching; and writing the established output byte stream of the PDF document into a pre-established empty compressed file, and storing the compressed file written into the PDF document in a temporary storage path of a server.
机译:公开了一种基于PDF文档的数据下载方法,装置,存储介质和终端,涉及数据处理技术领域,主要目的是解决由于数据的格式和内容均要求的问题。要从现有网站下载的文件并不固定,将数据添加到固定的PDF文档模板中会增加网站的处理压力。该方法包括:当接收到数据下载请求时,根据数据下载请求中携带的请求内容获取文本数据和图片数据;将文本数据和图片数据分别转换为一类对象和二类对象,并读取预先创建的PDF文档模板;以匹配的方式将第一类对象和第二类对象添加到类对象X和类对象Y,并在匹配后建立PDF文档的输出字节流。将建立的PDF文档的输出字节流写入预先建立的空压缩文件,并将写入PDF文档的压缩文件存储在服务器的临时存储路径中。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号