已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
pdf生成器软件概要设计说明书参考:开源项目pdfcreator1引言21.1编写目的21.2背景21.3定义21.4参考资料22总体设计22.1需求规定22.2运行环境22.3基本设计概念和处理流程32.4结构32.5功能器函数33接口设计34运行设计44.1运行模块组合44.2运行控制44.3运行时间45系统出错处理设计55.1出错信息55.2补救措施55.3系统维护设计概要设计说明书1引言1.1编写目的pdf生成器总体设计说明书是面向系统分析员和程序员的,系统分析员依据软件需求说明书和总体设计说明书设计数据库和软件的详细设计,同时也是系统分析员向程序员分配代码设计任务的依据。1.2背景说明:a. pdf生成器需求分析说明书b. pdf生成器开发小组1.3参考资料l 国家软件工程开发标准l pdf生成器需求分析说明书2.总体设计2.1 需求规定参见pdf生成器需求分析说明书2.2 运行环境参见pdf生成器需求分析说明书2.3 基本设计概念和处理流程2.4 pdf生成器功能结构示意图:(11204226肖志辉)添加打印机删除打印机虚拟打印机设置新建打印机名打印/停止打印打印机描述文件添加文档标题删除状态顶部/向上创建时间底部/向下打印监视器日志常规设置ghostscript文档保存动作打印程序字体语言文件格式设置pdf,png,jepgbmp,pcx,tiffps,eps,txtpsd,pcl,rawsvg程序日志文件记录日志pdfcreator设置合并/合并全部打印设置文件名文档大小 pdf生成器2.4功能子模块结构(11204229姚国梁)语言打印一页一文件文档属性邮戳文档打印设置保存后动作保存前动作动作保存自动保存文件名替换保存文件名ghostscript程序文字常规设置增删语言包设置当前系统语言测试程序字体额外的的ghostscript参数额外的的ghostscript搜索路径发送电子邮件的方法系统外壳集成进程优先级pdfcreeator设置属性模块调用函数(11204231张颖)属性函数功能需求属性模块名虚拟打印机设置1.添加打印机2.删除打印机3.新建打印机名4.打印机描述文pdfcreatorapplication打印监视器1.文档标题2.状态3.创建时间4.创建时间5.文档大小6.文件名windowsversion打印设置1.打印/停止打印2.添加3.删除4.顶部/向上5.底部/向下6.合并/合并全部printjobpdfcreator设置1.常规设置2.ghostscript3.文档4.动作5.打印6.程序字体7.语言8.文件格式设置installedasserver日志1.记录日志2.日志文件logfileclspdfcreator函数com接口propertiespublic property get ccountofprintjobs() as longpublic property get cdefaultprinter() as stringpublic property let cdefaultprinter(byval printername as string)public property get cerror() as clspdfcreatorerrorpublic property get cerrordetail(byval propertyname as string) as variantpublic property get cghostscriptversion() as stringpublic property get cinstalledasserver() as booleanpublic property get cinstancecounter() as longpublic property get cisclosed() as booleanpublic property get cisconverted() as booleanpublic property let cisconverted(byval value as boolean)public property get cislogfiledialogdisplayed() as booleanpublic property get cisoptionsdialogdisplayed() as booleanpublic property get coption(byval propertyname as string) as variantpublic property let coption(byval propertyname as string, byval value as variant)public property get coptionprofile(byval profilename as string, byval propertyname as string) as variantpublic property let coptionprofile(byval profilename as string, byval propertyname as string, byval value as variant)public property get coptions() as clspdfcreatoroptionspublic property set coptions(byval options1 as clspdfcreatoroptions)public property get coptionsnames() as collectionpublic property get coptionsprofile(byval profilename as string) as clspdfcreatoroptionspublic property set coptionsprofile(byval profilename as string, byval options1 as clspdfcreatoroptions)public property get coutputfilename() as stringpublic property get cpdfcreatorapplicationpath() as stringpublic property get cpostscriptinfo(byval postscriptfilename as string, byval propertyname as string) as stringpublic property get cprinterprofile(byval printername as string) as stringpublic property let cprinterprofile(byval printername as string, byval profilename as string)public property get cprinterstop() as booleanpublic property let cprinterstop(byval value as boolean)public property get cprintjobfilename(byval jobnumber as long) as stringpublic property get cprogramisrunning() as booleanpublic property get cprogramrelease(optional byval withbeta as boolean = true) as stringpublic property get cstandardoption(byval propertyname as string) as variantpublic property get cstandardoptions() as clspdfcreatoroptionspublic property get cstopurlprinting() as booleanpublic property let cstopurlprinting(byval value as boolean)public property get cvisible() as booleanpublic property let cvisible(byval value as boolean)public property get cwindowstate() as longpublic property let cwindowstate(byval value as long) value must be 0 = normal or 1 = minimized or 2 = maximizedpublic property get cwindowsversion() as string functionspublic function caddpdfcreatorprinter(byval printername as string, optional byval profilename as string = ) as booleanpublic function caddprofile(byval profilename as string, optional byval options1 as clspdfcreatoroptions) as booleanpublic function cclose() as booleanpublic function cdeletepdfcreatorprinter(byval printername as string) as booleanpublic function cdeleteprofile(byval profilename as string) as booleanpublic function cgetlogfile() as stringpublic function cgetpdfcreatorprinters() as collectionpublic function cgetprinterprofiles() as collectionpublic function cgetprofilenames() as collectionpublic function cghostscriptrun(arguments() as variant) as booleanpublic function cisadministrator() as booleanpublic function cisprintable(byval filename as string) as booleanpublic function cprinterisinstalled(byval printername as string) as booleanpublic function cprofileexists(byval profilename as string) as booleanpublic function creadoptions(optional byval profilename as string = ) as clspdfcreatoroptionspublic function creadoptionsfromfile(byval inifilename as string) as clspdfcreatoroptionspublic function crenameprofile(byval oldprofilename as string, byval newprofilename as string) as booleanpublic function cstart(optional byval params as string, optional byval forceinitialize as boolean = false) as booleansubroutinespublic sub caddprintjob(byval filename as string) supported file types: postscript, jpeg, bmppublic sub cclearcache()public sub cclearlogfile()public sub ccombineall()public sub cconvertfile(byval inputfilename as string, byval outputfilename as string, optional byval subformat as string = ) allowed values for subformat: pdf/a-1b for pdf/a-1bfiles; pdf/a-2b for pdf/a-2bfiles; pdf/x for pdf/x-filespublic sub cconvertpostscriptfile(byval inputfilename as string, byval outputfilename as string) this function is deprecated! use cconvertfile() instead.public sub cdeleteprintjob(byval jobnumber as long)public sub cerrorclear()public sub cmoveprintjobbottom(byval jobnumber as long)public sub cmoveprintjobdown(byval jobnumber as long)public sub cmoveprintjobtop(byval jobnumber as long)public sub cmoveprintjobup(byval jobnumber as long)public sub cprintfile(byval filename as string)public sub cprintpdfcreatortestpage()public sub cprintprintertestpage(optional byval printername as string)public sub cprinturl(byval url as string, optional byval timebetweenloadandprint as long = 0)public sub csaveoptions(optional byval options1 as variant, optional byval profilename as string = ) options1 must be a clspdfcreatoroptions typepublic sub csaveoptionstofile(byval inifilename as string, optional byval options1 as variant) options1 must be a clspdfcreatoroptions typepublic sub csendmail(byval outputfilename as string, byval recipients as string)public sub cshowlogfiledialog(byval value as boolean)public sub cshowoptionsdialog(byval value as boolean)public sub ctestevent(byval eventname as string)public sub cwritetologfile(byval logstr as string)函数实现代码(11204227谢明煜)例如:使用c# 实现两个pdf文件的合并pdf pdf = new pdfforge.pdf.pdf();string testpdffiles = new string2;testpdffiles0 = path.combine(temppath, testpdffile1.pdf);testpdffiles1 = path.combine(temppath, testpdffile2.pdf);pdf.mergepdffiles(ref files, mergedfile.pdf, false);测试代码/ testevents.js script/ part of pdfcreator/ license: gpl/ homepage: /products/pdfcreator/ windows scripting host version: 5.1/ version: / date: march, 19 2007/ author: frank heind鰎fer/ comments: test the events of the com interface of pdfcreator.var maxtime = 30 / in secondsvar sleeptime = 250 / in millisecondsvar objargs, ifname, fso, pdfcreator, defaultprinter, readystate, i, c, scriptname;fso = new activexobject(scripting.filesystemobject);scriptname = fso.getfilename(wscript.scriptfullname);if (wscript.version 5.1) wscript.echo(you need the windows scripting host version 5.1 or greater!); wscript.quit();pdfcreator = wscript.createobject(pdfcreator.clspdfcreator, pdfcreator_);pdfcreator.ctestevent(ready);pdfcreator.ctestevent(error);pdfcreator.ctestevent(unkno
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 农转非未签就业协议书
- 北京建房施工合同范本
- 制药衣服采购合同范本
- 2026年投资项目管理师之宏观经济政策考试题库300道【必考】
- 冷冻生鲜外包合同范本
- 2026年企业人力资源管理师之四级人力资源管理师考试题库300道含完整答案(各地真题)
- 可乐机器租售合同范本
- 一级2026年注册建筑师之设计前期与场地设计考试题库300道附答案【考试直接用】
- 卤菜购销合同协议范本
- 农民蜜蜂销售合同范本
- 2025内蒙古呼和浩特市总工会工会社会工作者、专职集体协商指导员招聘29人备考考试题库附答案解析
- 2024年注册安全工程师考试《安全生产法律法规》真题及答案
- 学堂在线 中国传统艺术-篆刻、书法、水墨画体验与欣赏 章节测试答案
- 轮机概论-大连海事大学
- 初中生必须掌握的3500字带拼音
- 大学生心理健康教育常见困扰与自我调适知到章节答案智慧树2023年浙江师范大学
- 广西民族大学624生物化学2007-2010,2012-2015,2017-2018,20-22年考研初试真题
- 室内燃气管道安装与验收标准
- 行政区域代码表Excel
- 题型06 函数的性质之周期性及蛙跳函数(解析版)
- 土壤质地分类
评论
0/150
提交评论