Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is fop.jar in fop-2.7-bin.zip
What Is fop.jar? I got it from the fop-2.7-bin.zip.
✍: FYIcenter.com
fop.jar in fop-2.7-bin.zip is the JAR file for FOP 2.7, which is a print formatter driven by XSL formatting objects (XSL-FO). You can obtain fop.jar from the build folder of the fop-2.7-bin.zip file.
Below is the information about the fop.jar (2.2) file:
JAR File Size and Download Location:
JAR name: fop.jar, fop-2.7.jar Target JDK version: 1.7 File name: fop.jar File size: 4442817 bytes Release date: 20-Jan-2022 Download: Apache FOP Website
Java source code files for fop.jar:
⏎ org/apache/fop/render/bitmap/MultiFileRenderingUtil.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* $Id: MultiFileRenderingUtil.java 820637 2009-10-01 12:56:26Z jeremias $ */ package org.apache.fop.render.bitmap; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; /** * This utility class helps renderers who generate one file per page, * like the PNG renderer. */ public class MultiFileRenderingUtil { /** The file syntax prefix, eg. "page" will output "page1.png" etc */ private String filePrefix; private String fileExtension; /** The output directory where images are to be written */ private File outputDir; /** * Creates a new instance. * <p> * The file name must not have an extension, or must have extension "png", * and its last period must not be at the start (empty file prefix). * @param ext the extension to be used * @param outputFile the output file or null if there's no such information */ public MultiFileRenderingUtil(String ext, File outputFile) { this.fileExtension = ext; // the file provided on the command line if (outputFile == null) { //No filename information available. Only the first page will be rendered. outputDir = null; filePrefix = null; } else { outputDir = outputFile.getParentFile(); // extracting file name syntax String s = outputFile.getName(); int i = s.lastIndexOf("."); if (i > 0) { // Make sure that the file extension was "png" String extension = s.substring(i + 1).toLowerCase(); if (!ext.equals(extension)) { throw new IllegalArgumentException("Invalid file extension ('" + extension + "') specified"); } } else if (i == -1) { i = s.length(); } else { // i == 0 throw new IllegalArgumentException("Invalid file name ('" + s + "') specified"); } if (s.charAt(i - 1) == '1') { i--; // getting rid of the "1" } filePrefix = s.substring(0, i); } } /** * Creates a new {@link OutputStream} for the given page number. * @param pageNumber the page number (zero-based) * @return the output stream for the page * @throws IOException if there's an I/O error while setting up the output stream */ public OutputStream createOutputStream(int pageNumber) throws IOException { if (filePrefix == null) { return null; } else { File f = new File(outputDir, filePrefix + (pageNumber + 1) + "." + fileExtension); OutputStream os = new BufferedOutputStream(new FileOutputStream(f)); return os; } } }
⏎ org/apache/fop/render/bitmap/MultiFileRenderingUtil.java
Or download all of them as a single archive file:
File name: fop-2.7-src.zip File size: 3401312 bytes Release date: 2022-01-20 Download
⇒ "fop" Command in fop-2.7-bin.zip
2016-07-07, 36255👍, 0💬
Popular Posts:
XStream is a simple library to serialize objects to XML and back again. JAR File Size and Download L...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.0.2? The if y...
xml-commons External Source Code Files are provided in the source package file, xml-commons-external...
What Is jaxb-impl-2.1.12.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Jav...
What Is poi-3.5.jar - Part 2? poi-3.5.jar is one of the JAR files for Apache POI 3.5, which provides...