PDF生成器概要设计说明书(精品)

上传人:仙*** 文档编号:30469184 上传时间:2021-10-10 格式:DOC 页数:12 大小:98.19KB
收藏 版权申诉 举报 下载
PDF生成器概要设计说明书(精品)_第1页
第1页 / 共12页
PDF生成器概要设计说明书(精品)_第2页
第2页 / 共12页
PDF生成器概要设计说明书(精品)_第3页
第3页 / 共12页
资源描述:

《PDF生成器概要设计说明书(精品)》由会员分享,可在线阅读,更多相关《PDF生成器概要设计说明书(精品)(12页珍藏版)》请在装配图网上搜索。

1、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背景说

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,TXT

3、PSD,PCL,RAWSVG程序日志文件记录日志PDFCreator设置合并/合并全部打印设置文件名文档大小 PDF生成器2.4功能子模块结构(11204229姚国梁)语言打印一页一文件文档属性邮戳文档打印设置保存后动作保存前动作动作保存自动保存文件名替换保存文件名Ghostscript程序文字常规设置增删语言包设置当前系统语言测试程序字体额外的的Ghostscript参数额外的的Ghostscript搜索路径发送电子邮件的方法系统外壳集成进程优先级PDFCreeator设置属性模块调用函数(11204231张颖)属性函数功能需求属性模块名虚拟打印机设置1.添加打印机2.删除打印机3.新建打印

4、机名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 cCountOfPrintjob

5、s() 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 StringPubl

6、ic 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

7、 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 Va

8、riantPublic 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

9、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 Pro

10、perty 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

11、() 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 c

12、StandardOption(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(ByVa

13、l 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, Opt

14、ional 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 cDele

15、teProfile(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

16、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

17、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 Str

18、ing, 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, B

19、yVal 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 deprecate

20、d! 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 Jo

21、bNumber 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 ByVa

22、l 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,

23、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

24、();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: http:/www.pdfforge.org/pr

25、oducts/pdfcreator/ Windows Scripting Host version: 5.1/ Version: 1.0.0.0/ 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

26、, 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.clsP

27、DFCreator, PDFCreator_);PDFCreator.cTestEvent(Ready);PDFCreator.cTestEvent(Error);PDFCreator.cTestEvent(Unknown);PDFCreator.cClose();/- PDFCreator events -function PDFCreator_eReady() WScript.Echo(Ready!);function PDFCreator_eError() WScript.Echo(An error is occured!rnrn + Error + PDFCreator.cErrorD

28、etail(Number) + : + PDFCreator.cErrorDetail(Description);3接口设计COM接口从版本0.8.1 RC9 PDFCreator的一个COM接口。因此,有可能使用任何其他应用程序的命令行控制的PDFCreator。几乎所有可能性的方案是使用COM接口。 COM接口包括公共类,公共属性,公共方法和公共事件。4运行设计4.1运行模块组合说明对系统施加不同的外界运行控制时所引起的各种不同的运行模块组合,说明每种运行所历经的内部模块和支持软件。4.2运行控制说明每一种外界的运行控制的方式方法和操作步骤。4.3运行时间说明每种运行模块组合将占用各种资源

29、的时间。5系统出错处理设计1出错信息用一览表的方式说朗每种可能的出错或故障情况出现时,系统输出信息的形式、含意及处理方法。5.2补救措施说明故障出现后可能采取的变通措施,包括:a. 后备技术说明准备采用的后备技术,当原始系统数据万一丢失时启用的副本的建立和启动的技术,例如周期性地把磁盘信息记录到磁带上去就是对于磁盘媒体的一种后备技术;b. 降效技术说明准备采用的后备技术,使用另一个效率稍低的系统或方法来求得所需结果的某些部分,例如一个自动系统的降效技术可以是手工操作和数据的人工记录;c. 恢复及再启动技术说明将使用的恢复再启动技术,使软件从故障点恢复执行或使软件从头开始重新运行的方法。5.3系统维护设计说明为了系统维护的方便而在程序内部设计中作出的安排,包括在程序中专门安排用于系统的检查与维护的检测点和专用模块。 各个程序之间的对应关系,可采用如下的矩阵图的形式;

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!