VLAN之access,trunk,hybrid三种模式区别
2015-07-16 16:04
465 查看
//创建一个文档对象 Document doc = new Document(); try { //定义输出文件的位置 PdfWriter.getInstance(doc, new FileOutputStream("c:/hello.pdf")); //开启文档 doc.open(); //设定字体 为的是支持中文 BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); Font FontChinese = new Font(bfChinese, 12, Font.NORMAL); //向文档中加入文字 doc.add(new Paragraph("Hello你好!世界world",FontChinese)); //关闭文档并释放资源 doc.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (DocumentException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }
相关文章推荐
- Sqlite语法
- routos配置与使用
- springmvc+easyui实现界面控制quartz的暂停、恢复、修改、添加
- Ubuntu下搭建svn服务器
- 前端工程师新手必读:掌握网页设计的基本技能和弄清设计的概念
- eclipse template里面的${user}更改
- secureCRT自动化脚本
- 在Vi里面实现字符串的批量替换
- oracle 定时任务
- ATL和WTL中的消息反射
- 修改窗口STYLE属性
- 计数排序的理解与实现
- javassist学习一
- Ubuntu中的vim一些简单配置
- Enterprise Solution 2.3
- windows服务器下IIS7 安装URL Rewrite(URL重写)模块
- 线索化二叉树
- Spring -- 第一个简单的Spring程序
- iOS 启动画面设置
- linux inode