* $Id: PDFViewer.java,v 1.10 2009-08-07 23:18:33 tomoke Exp $ * * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, * Santa Clara, California 95054, U.S.A. All rights reserved. * * This library is free software; you can redistribute it and
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
合并文本代码,读取文件,合并为一个txt public static final int BUFSIZE = 1024 * 8; public static void mergeFiles(String outFile, ArrayList files) { FileChannel outChannel = null; try { outChannel = new FileOutputStream(outFile).getChannel(); for(String f : files){ By
h264转码MP4 支持html5播放格式 示例代码: H264TrackImpl h264TrackImpl = new H264TrackImpl(new FileDataSourceImpl("C://a.264")); Movie movie = new Movie(); movie.addTrack(h264TrackImpl); Container mp4f = new DefaultMp4Builder().build(movie); FileChannel fChannel =