pdflib textflow
来源:互联网 发布:知乎回答怎么复制 编辑:程序博客网 时间:2024/04/28 19:12
帮leadercheck问题,发现pdflib真心强大
首先pdflib支持在Wrapping Text around Paths and Images
效果图如下:
其次pdflib支持Placing text in two fitboxes on multiplepages.
效果图如下:
代码如下:
/* Loop until all of the text is placed; create new pages as long as more text needs* to be placed. Two columns will be created on all pages.*/do{String optlist = "verticalalign=justify linespreadlimit=120%";p.begin_page_ext(0, 0, "width=a4.width height=a4.height");/* Fill the first column */result = p.fit_textflow(tf, llx1, lly1, urx1, ury1, optlist);/* Fill the second column if we have more text*/if (!result.equals("_stop"))result = p.fit_textflow(tf, llx2, lly2, urx2, ury2, optlist);p.end_page_ext("");/* "_boxfull" means we must continue because there is more text;* "_nextpage" is interpreted as "start new column"*/} while (result.equals("_boxfull") || result.equals("_nextpage"));/* Check for errors */if (!result.equals("_stop")){/* "_boxempty" happens if the box is very small and doesn't hold any text at all.*/if (result.equals( "_boxempty"))throw new Exception("Error: " + p.get_errmsg());else{/* Any other return value is a user exit caused by the "return" option;* this requires dedicated code to deal with.*/}}p.delete_textflow(tf);
最后还有更牛的,你们感受下
0 0
- pdflib textflow
- TextFlow 文本可视化
- Flex的TextFlow
- PDFlib 8
- PDFLib学习
- PDFLib学习
- Flex 4 :导出 TextFlow 对象
- 使用PDFlib生成pdf
- pdflib的使用
- pdflib输出中文pdf
- pdflib的使用代码
- pdflib 下载地址
- C++ 操作PDFlib实例
- 利用PDFLib生成PDF文档
- 浅谈PDFlib中文输出(三)
- PHP下PDFLIB的安装
- 利用PDFLib生成PDF文档
- 利用PDFLib生成PDF文档
- MyEclipse关联Oracle数据库
- 内江三桥医院如何
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- shell函数返回值(执行状态)的获取
- iOS开发判断是否是身份证号
- pdflib textflow
- Vector删除指定元素
- CodeForces 622A-Infinite Sequence
- Hust oj 1073 病毒(并查集)
- Android Parcelable和Serializable的区别
- 通过子div覆盖父div的border-bottom
- python编辑器sublime
- iOS 【读取图片数据 UIImageJPEGRepresentation和UIImagePNGRepresentation】
- Fiddler中显示IP的设置方法