- 浏览: 357847 次
- 性别:
- 来自: 广东珠海
文章分类
最新评论
-
cuiyijing:
[size=small]马士兵 26_homework_dml ...
SQL面试题 -
utobe:
兄弟 你真的出名了,尚学堂 oracle 马士兵的视频拿你的题 ...
SQL面试题 -
tlqtangok:
没看懂,能解释一下吗?
安装Oracle后java的jvm会报错 -
a114d:
itling 写道尚学堂的demo楼上威武
hibernate 全面学习【hibernate抓取策略 】 -
wohenshuaiba:
不错,但是没写return checkimg( this ); ...
图片上传
请教各们同仁.怎么能够控制到itext 生成最后一页的时候.加入一个汇总本页合计.
源码和生成的pdf在附件中.
package pdf; import java.awt.Color; import java.io.ByteArrayOutputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.TreeSet; import com.lowagie.text.Cell; import com.lowagie.text.Chunk; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.Element; import com.lowagie.text.Font; import com.lowagie.text.FontFactory; import com.lowagie.text.Image; import com.lowagie.text.PageSize; import com.lowagie.text.Paragraph; import com.lowagie.text.Phrase; import com.lowagie.text.Rectangle; import com.lowagie.text.Table; import com.lowagie.text.pdf.BaseFont; import com.lowagie.text.pdf.PdfContentByte; import com.lowagie.text.pdf.PdfGState; import com.lowagie.text.pdf.PdfPCell; import com.lowagie.text.pdf.PdfPTable; import com.lowagie.text.pdf.PdfPageEventHelper; import com.lowagie.text.pdf.PdfTable; import com.lowagie.text.pdf.PdfTemplate; import com.lowagie.text.pdf.PdfWriter; public class PDFTestUtil extends PdfPageEventHelper { private static PdfTemplate template ; private static BaseFont bfChinese; public static BaseFont arial; private static Font fontChinese; private static Font fontCN; private static PdfContentByte cb; private static Font normalFont = new Font(arial, 20, Font.BOLD); Paragraph paragraph = null; private int temp =0; /** An Image that goes in the header. */ public Image headerImage; /** The headertable. */ /** The Graphic state */ public PdfGState gstate; /** A template that will hold the total number of pages. */ public PdfTemplate tpl; /** The font that will be used. */ public BaseFont helv; public static Table getEmptyTable() { Table emptyTable = null; try { emptyTable = new Table(1); emptyTable.setWidth(100); emptyTable.setBorder(Rectangle.NO_BORDER); Cell c = new Cell(new Phrase("\n", normalFont)); c.setBorder(Rectangle.NO_BORDER); emptyTable.addCell(c); } catch( Exception e ) { e.printStackTrace(); } return emptyTable; } // Override iText's class to handle total page number. /** * @see com.lowagie.text.pdf.PdfPageEventHelper#onOpenDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document) */ public void onOpenDocument(PdfWriter writer, Document document) { try { // initialization of the template tpl = writer.getDirectContent().createTemplate(100, 100); tpl.setBoundingBox(new Rectangle(-20, -20, 100, 100)); } catch (Exception e) { e.printStackTrace(); } } /** * @see com.lowagie.text.pdf.PdfPageEventHelper#onEndPage(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document) */ public void onEndPage(PdfWriter writer, Document document) { // write the headertable try { temp = writer.getPageNumber(); PdfPTable table = new PdfPTable(4);//fourth columns int headerwidths[] = {40, 30, 10,20}; // percentage table.setWidths(headerwidths); table.setWidthPercentage(100); table.getDefaultCell().setBorder(0); table.getDefaultCell().setHorizontalAlignment(0); //first Row PdfPCell newCell = new PdfPCell(); newCell.addElement(new Paragraph(" ")); newCell.setBorder(Rectangle.NO_BORDER); table.addCell(newCell); table.getDefaultCell().setHorizontalAlignment(2); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); Paragraph paragraph = new Paragraph("本页合计",fontCN); paragraph.setAlignment(Rectangle.ALIGN_CENTER); newCell.addElement(paragraph); table.addCell(newCell); table.getDefaultCell().setHorizontalAlignment(2); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("2,771"); paragraph.setAlignment("right"); newCell.addElement(paragraph); table.addCell(newCell); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("267,362,55"); paragraph.setAlignment("right"); newCell.addElement(paragraph); table.addCell(newCell); //2nd Row table.getDefaultCell().setBorder(1); PdfPCell second = new PdfPCell(); second.setColspan(4); second.setBorder(Rectangle.BOTTOM); table.addCell(second); //fourth Row PdfPCell fourth = new PdfPCell(); fourth.setBorder(Rectangle.NO_BORDER); fourth.addElement(new Paragraph(" ")); table.addCell(fourth); table.getDefaultCell().setHorizontalAlignment(Rectangle.RIGHT); fourth.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("订购方签名及戳章:",fontCN); paragraph.setAlignment(Rectangle.ALIGN_RIGHT); fourth.addElement(paragraph); table.addCell(fourth); table.getDefaultCell().setBorder(1); fourth = new PdfPCell(); fourth.setBorder(Rectangle.BOTTOM); fourth.setColspan(2); table.addCell(fourth); //five Row PdfPCell five = new PdfPCell(); five.addElement(new Paragraph(" ")); five.setBorder(Rectangle.NO_BORDER); table.addCell(five); five = new PdfPCell(); five.setColspan(3); five.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("日期 : 年 月 日",fontCN); paragraph.setAlignment(Rectangle.ALIGN_RIGHT); five.addElement(paragraph); table.addCell(five); document.add(table); PdfContentByte cb = writer.getDirectContent(); cb.saveState(); String text = "**注意:此报表内容含本公司机密资料,严根禁向无关人透露!** Page " + writer.getPageNumber() + " of "; float textSize = bfChinese.getWidthPoint(text, 12); float textBase = document.bottom() - 20; cb.beginText(); cb.setFontAndSize(bfChinese, 12); float adjust = bfChinese.getWidthPoint("0", 12); cb.setTextMatrix(document.right() - textSize - adjust, textBase); cb.showText(text); cb.endText(); cb.addTemplate(tpl, document.right() - adjust, textBase); cb.saveState(); } catch (Exception e) { e.printStackTrace(); } } /** * @see com.lowagie.text.pdf.PdfPageEventHelper#onStartPage(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document) */ public void onStartPage(PdfWriter writer, Document document) { Paragraph paragraph = new Paragraph("许可经销商品合同",fontCN); paragraph.setAlignment("center"); try { document.add(paragraph); document.add(getEmptyTable()); document.add(createHeader(fontCN)); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } /** * @see com.lowagie.text.pdf.PdfPageEventHelper#onCloseDocument(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document) */ public void onCloseDocument(PdfWriter writer, Document document) { if((temp) == (writer.getPageNumber()-1)){ } tpl.beginText(); tpl.setFontAndSize(bfChinese, 12); tpl.setTextMatrix(0, 0); tpl.showText(Integer.toString(writer.getPageNumber() - 1)); tpl.endText(); } public static void main(String[] args) throws Exception { bfChinese = BaseFont.createFont("STSong-Light","UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); fontCN = new com.lowagie.text.Font(bfChinese, 12,com.lowagie.text.Font.NORMAL); // step 1 Document document = new Document(PageSize.A4, 30, 30, 30, 100); //定义纸张类型及方向,页边距 //step2 PdfWriter writer = PdfWriter.getInstance(document,new FileOutputStream("Contract.pdf")); writer.setPageEvent(new PDFTestUtil()); // step3 document.open(); //step 4 for(int i =0 ;i<10; i++){ document.add(createBody(fontCN));//body } // step 5: we close the document (the outputstream is also closed internally) document.close(); } public static PdfPTable createBody(Font fontCN) throws DocumentException{ Paragraph paragraph =null; PdfPTable table = new PdfPTable(4);//fourth columns int headerwidths[] = {20 ,50, 10,20}; // percentage table.setWidths(headerwidths); table.setWidthPercentage(100); table.getDefaultCell().setBorder(0); table.getDefaultCell().setHorizontalAlignment(0); PdfPTable headerTable = new PdfPTable(2); headerTable.setWidthPercentage(20); headerTable.getDefaultCell().setBorder(0); headerTable.getDefaultCell().setHorizontalAlignment(1); PdfPCell newCell = new PdfPCell(); //first row newCell.setBorder(Rectangle.NO_BORDER); newCell.setColspan(2); Paragraph prargraph = new Paragraph("310094030"); prargraph.setAlignment("center"); newCell.addElement(prargraph); headerTable.getDefaultCell().setHorizontalAlignment(1); headerTable.addCell(newCell); //2nd row newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); newCell.setColspan(2); prargraph = new Paragraph("第3期",fontCN); prargraph.setAlignment("center"); newCell.addElement(prargraph); headerTable.addCell(newCell); //three row newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); newCell.addElement(new Paragraph("进货价",fontCN)); headerTable.addCell(newCell); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); newCell.addElement(new Paragraph("零售价",fontCN)); headerTable.addCell(newCell); newCell = new PdfPCell(); //forth row newCell.setBorder(Rectangle.NO_BORDER); prargraph = new Paragraph("53.55"); prargraph.setAlignment("left"); newCell.addElement(prargraph); headerTable.addCell(newCell); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); prargraph = new Paragraph("119.00"); prargraph.setAlignment("left"); newCell.addElement(prargraph); headerTable.addCell(newCell); table.addCell(headerTable);//first column PdfPTable sizeTable = new PdfPTable(6); //first row PdfPCell sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("-S-",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("-M-",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("-L-",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("-XL-",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("-XXL-",fontCN)); sizeTable.addCell(sizeCell); //2nd row sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("01",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("34",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("43",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("54",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("5",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeTable.addCell(sizeCell); //three row sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("33",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("43",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("43",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("54",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("54",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeTable.addCell(sizeCell); //fourth row sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("52",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("43",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("4",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("4",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("45",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeTable.addCell(sizeCell); //five row sizeTable.getDefaultCell().setBorder(1); sizeCell = new PdfPCell(); sizeCell.setColspan(6); sizeCell.setBorder(Rectangle.BOTTOM); sizeTable.addCell(sizeCell); //six row sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("120",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("90",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("112",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeCell.addElement(new Paragraph("104",fontCN)); sizeTable.addCell(sizeCell); sizeCell = new PdfPCell(); sizeCell.setBorder(Rectangle.NO_BORDER); sizeTable.addCell(sizeCell); table.addCell(sizeTable);//2nd column PdfPTable numTable = new PdfPTable(1); numTable.setWidthPercentage(100); numTable.getDefaultCell().setBorder(0); numTable.getDefaultCell().setHorizontalAlignment(0); PdfPCell numCell = new PdfPCell(); numCell.setBorder(Rectangle.NO_BORDER); numCell.addElement(new Paragraph(" ")); numTable.addCell(numCell); numCell = new PdfPCell(); numCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("136"); paragraph.setAlignment("right"); numCell.addElement(paragraph); numTable.addCell(numCell); numCell = new PdfPCell(); numCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("194"); paragraph.setAlignment("right"); numCell.addElement(paragraph); numTable.addCell(numCell); numCell = new PdfPCell(); numCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("96"); paragraph.setAlignment("right"); numCell.addElement(paragraph); numTable.addCell(numCell); numTable.getDefaultCell().setBorder(1); numCell = new PdfPCell(); numCell.setColspan(1); numCell.setBorder(Rectangle.BOTTOM); numTable.addCell(numCell); numTable.getDefaultCell().setHorizontalAlignment(2); numCell = new PdfPCell(); numCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("426"); paragraph.setAlignment("right"); numCell.addElement(paragraph); numTable.addCell(numCell); table.addCell(numTable);//three column PdfPTable orderTable = new PdfPTable(1); orderTable.setWidthPercentage(100); orderTable.getDefaultCell().setBorder(0); orderTable.getDefaultCell().setHorizontalAlignment(2); PdfPCell orderCell = new PdfPCell(); orderCell.addElement(new Paragraph(" ")); orderCell.setBorder(Rectangle.NO_BORDER); orderTable.addCell(orderCell); orderCell = new PdfPCell(); orderCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("7.282.80"); paragraph.setAlignment("right"); orderCell.addElement(paragraph); orderTable.addCell(orderCell); orderCell = new PdfPCell(); orderCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("10.388.70"); paragraph.setAlignment("right"); orderCell.addElement(paragraph); orderTable.addCell(orderCell); orderCell = new PdfPCell(); orderCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("5.140.80"); paragraph.setAlignment("right"); orderCell.addElement(paragraph); orderTable.addCell(orderCell); orderTable.getDefaultCell().setBorder(1); orderCell = new PdfPCell(); orderCell.setColspan(1); orderCell.setBorder(Rectangle.BOTTOM); orderTable.addCell(orderCell); orderCell = new PdfPCell(); orderCell.setBorder(Rectangle.NO_BORDER); paragraph = new Paragraph("22.812.30"); paragraph.setAlignment("right"); orderCell.addElement(paragraph); orderTable.addCell(orderCell); table.addCell(orderTable);//fourth column return table; } private PdfPTable createHeader(Font fontCN ) throws Exception{ PdfPTable table = new PdfPTable(1); table.setWidthPercentage(100); table.setSpacingBefore(3f); //设置标题和第一个表格间的距离.不然会粘在一起 table.getDefaultCell().setBorder(0); //frist row PdfPTable headerTable = new PdfPTable(4); int headerwidths[] = {20, 30, 30,20}; // percentage headerTable.setWidths(headerwidths); headerTable.setWidthPercentage(100); headerTable.setSpacingBefore(3f); //设置标题和第一个表格间的距离.不然会粘在一起 headerTable.getDefaultCell().setBorder(0); headerTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT); PdfPCell cell = new PdfPCell(); paragraph =new Paragraph("订单地区: 厦门",fontCN); paragraph.setAlignment("left"); cell.addElement(paragraph); cell.setBorder(Rectangle.NO_BORDER); headerTable.addCell(cell); headerTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER); cell = new PdfPCell(); paragraph =new Paragraph("出货店号: 169",fontCN); paragraph.setAlignment("left"); cell.addElement(paragraph); cell.setBorder(Rectangle.NO_BORDER); headerTable.addCell(cell); headerTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT); cell = new PdfPCell(); paragraph =new Paragraph("订货店号:207,209,211,219,261,275,276,277,281,408",fontCN); paragraph.setAlignment("right"); cell.addElement(paragraph); cell.setColspan(2); cell.setBorder(Rectangle.NO_BORDER); headerTable.addCell(cell); table.addCell(headerTable); //2nd row table.getDefaultCell().setBorder(1); PdfPCell newCell = new PdfPCell(); newCell.setBorder(Rectangle.BOTTOM); newCell.setColspan(4); table.addCell(newCell); //three row PdfPTable newTable = new PdfPTable(4); float widths[] = {20, 50, 10,20}; // percentage //newTable.setWidths(); newTable.setTotalWidth(widths); newTable.setWidthPercentage(100); newTable.setSpacingBefore(3f); //设置标题和第一个表格间的距离.不然会粘在一起 newTable.getDefaultCell().setBorder(0); newTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); paragraph =new Paragraph("款号",fontCN); paragraph.setAlignment("left"); newCell.addElement(paragraph); newTable.addCell(newCell); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); paragraph =new Paragraph("颜色",fontCN); paragraph.setAlignment("left"); newCell.addElement(paragraph); newTable.addCell(newCell); newTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); paragraph =new Paragraph("数量总数",fontCN); paragraph.setAlignment("right"); newCell.addElement(paragraph); newTable.addCell(newCell); newCell = new PdfPCell(); newCell.setBorder(Rectangle.NO_BORDER); paragraph =new Paragraph("订单总金额",fontCN); paragraph.setAlignment("right"); newCell.addElement(paragraph); newTable.addCell(newCell); table.addCell(newTable); //forth row table.getDefaultCell().setBorder(1); newCell = new PdfPCell(); newCell.setBorder(Rectangle.BOTTOM); newCell.setColspan(4); table.addCell(newCell); return table; } }
- pdf.rar (8.9 KB)
- 下载次数: 51
发表评论
-
aspect jar包
2013-06-17 14:35 1006aspectj需要的jar包 -
mockejb
2012-04-28 14:37 0<?xml version="1.0" ... -
ohfp
2012-04-20 17:58 0Hi All, Thanks a lot for your ... -
conditional import
2012-04-20 13:19 0Introduction In RBP, single c ... -
datasource
2012-04-12 15:38 0import java.util.ArrayList; imp ... -
java
2012-03-23 12:59 0package com.hsbc.esf.cache.impl ... -
java
2012-03-23 12:57 0package com.hsbc.esf.cache.impl ... -
java
2012-03-23 11:52 0package com.hsbc.esf.cache; im ... -
java
2012-03-07 11:40 0XmlTestUtil public final class ... -
trace
2012-03-07 11:28 0AbstractFormatter import java ... -
EAM系统(MAXIMO)石油天然气行业解决方案
2008-07-24 13:50 2660EAM系统(MAXIMO)石油天 ... -
深入浅出java Io
2007-04-01 13:57 2153一.Input和Output 1.stream代 ... -
在程序中更新jar文件
2007-04-01 13:29 2399我们知道,用ZIP,jar可以将多个文件一起打包,如class ... -
java中timer用法
2007-04-01 13:15 8649所有类型的 Java 应用程序一般都需要计划重复执行的任务。企 ... -
csdn上的反射和代理的好例子
2007-03-07 11:25 2201/** *这个程序的功能是通过反射技术得到一个类(SrcC ... -
一个java反射例子
2007-03-01 11:04 14459package com.spring.event; impor ... -
贴几个自定义usertype
2007-02-24 08:38 1527import java.io.IOException; ... -
修改Structs,Hibernate部份框架为我所用
2007-02-24 08:30 93package com.ideal.common.contro ... -
java基础试题
2007-02-21 09:06 7954一.选择题(每道题3分,共45分) 1 2 3 4 5 6 7 ... -
java学习资料推存
2007-02-20 16:14 1728JAVA 学习资料(吐血推荐) A.书名:《Thinking ...
相关推荐
1.程序实现了将一个PDF文件分成一页一页的,同时也可以抽取任意一页或者几页,分好的页面存放在工程目录的image文件夹下。 2.也可以将一页一页的PDF文件整合成一个PDF 3.程序还实现了在web 页面的查询功能
可以批量提取PDF文件的第一页,支持子文件夹,还可以批量统计PDF的页数。TK按钮界面没加入多线程,数量多的话按下按钮界面会卡顿一会,但不影响结果,等待处理完成就行。
可以快速批量统计PDF页数。用后便知。
《统计陷阱》一书之所以能够历久弥新,是因为其实用性。随着我国经济持续发展,我们将接触到越来越我我的统计数据等等,去粗取精、去集思广益存真、进行鉴现了一些统计语和方法,但作者重说明、轻证明,重文字描述、...
实现 在生成的PDF封面显示总页数, 在每页显示页眉、页脚, 在页脚显示 第几页/共几页 实现 在生成的PDF封面显示总页数, 在每页显示页眉、页脚, 在页脚显示 第几页/共几页
非常好的贝叶斯统计学资料,详细讲解了有关统计推断的应用知识点
spire.pdf 5.12.15 去水印可超10页
它能够使用户在不用Adobe Acrobat和其他外部控件的情况下,运用.NET 应用程序阅读,编写和操纵PDF 文档。Spire.PDF for .NET不仅可以运用在服端比如:ASP.NET 或者其他环境,还可以应用在Windows Forms 应用程序中。...
在每节末都有软件使用注解,给出了如何分别用R、SPSS和SAS等软件对例子数据进行分析的具体步骤。每章末都有相关的练习题,以便读者练习使用有关检验方法
董大钧sas统计分析应用教程,帮助sas初学者快速掌握sas基本
pdf.js 是一个技术原型主要用于在 HTML5 平台上展示 PDF 文档,无需任何本地技术支持。pdf.js是一个HTML5技术的实验,探索实现一个没有本地代码支持,有效率的PDF渲染。 pdf.js是社区驱动和Mozilla Labs的支持。我们...
PDFBox是一个开源的可以操作PDF文档的Java PDF类库。它可以创建一个新PDF文档,操作现有PDF文档并提取文档中的内容。 它具有以下特性: 1.将一个PDF文档转换输出为一个文本文件。 2.可以从文本文件创建一个PDF文档。 ...
《PDF阅读控件》简称PDF OCX,是一款适用于Windows平台开发人员使用,可自行定制的ActiveX控件产品。开发人员可以将它嵌入到自己的程序中,用以显示PDF格式文件。功能描述如下: 1.支持Adobe Pdf 1.4标准; 2.支持VC...
最全最详细的flink 中文教程,详细介绍各个接口,并附带demo(一千多页pdf) 最全最详细的flink 中文教程,详细介绍各个接口,并附带demo(一千多页pdf)
概率论与数理统计(浙大四版)
概率论与数理统计(浙江大学第四版)教程和答案pdf版本-带目录 概率论与数理统计(浙江大学第四版)_目录.pdf 概率论与数理统计答案_目录.pdf 免积分下载,如要积分为系统添加
概率论与数理统计(陈希孺)概率论与数理统计(陈希孺)概率论与数理统计(陈希孺)概率论与数理统计(陈希孺)
阿斌分享PDF转换工具是一款永久免费,没有任何限制,不限文件大小与数量,不限转换页数的,具有转换效率高,转换质量高等特点,软件界面简洁美观,操作简单,软件大小仅有50KB,支持选择一个或多个文件,支持拖拽一...
能够在PDF文件中自动生成三段页码:封面、版权页用大写英文字母,目录页用小写罗马字母,正文页用阿拉伯数字;能够将BookInfo.dat作为文本添加到PDF文件中,并用其中内容填写PDF的Document Properties,包括Title、...