资源说明:java操作pdf文档,将pdf转化为图片
public void Pdf_Png(int pageNumber ) {
int pagen= pageNumber;
File file = new File("D:/test.pdf");
PDFFile pdffile=null;
// set up the PDF reading
try{
RandomAccessFile raf = new RandomAccessFile(file, "r");
FileChannel channel = raf.getChannel();
ByteBuffer buf = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size());
pdffile = new PDFFile(buf);
}
catch(Exception e){}
if(pagen
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。