上一页 1 ··· 10 11 12 13 14
摘要: 首先我们需要的是itext.jar包。itext是一个开源的rtf、pdf读写项目,属于sourceforge。rtf即是Rich Text Format,由微软公司开发的跨平台文档格式,缺点在于保存的大小会比较大,可能是由于考虑了兼容性的关系。它的读写方式是比较通用的,无论是写rtf、pdf还是html,都有统一的Document,不同的格式有不同的写入器。如RTFWriter\PDFWriter。下面记录几个概念:1、 Font,字体对象2、 Chunk,文本块,处理文本的最小单位,可以设置字体,颜色,等。3、 Phrase,短语,由一个或多个Chunk组成。4、 Paragraph,段落 阅读全文
posted @ 2012-03-07 17:11 荒土 阅读(1118) 评论(2) 推荐(0) 编辑
摘要: 1、增加菜单项,需要扩展org.eclipse.ui.actionSets,该扩展点的说明如下:This extension point is used to add menus, menu items and toolbar buttons to the common areas in the Workbench window. These contributions are collectively known as an action set and appear within the Workbench window by the user customizing a perspect 阅读全文
posted @ 2012-03-07 17:04 荒土 阅读(2252) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14