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/afp/modca/AxisOrientation.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$ */

package org.apache.fop.afp.modca;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Represents the 4 bytes that specify the axis-area rotation reference coordinate system
 */
public enum AxisOrientation {

    RIGHT_HANDED_0(Rotation.ROTATION_0, Rotation.ROTATION_90),
    RIGHT_HANDED_90(Rotation.ROTATION_90, Rotation.ROTATION_180),
    RIGHT_HANDED_180(Rotation.ROTATION_180, Rotation.ROTATION_270),
    RIGHT_HANDED_270(Rotation.ROTATION_270, Rotation.ROTATION_0);

    /**
     * The object area's X-axis rotation from the X axis of the reference coordinate system
     */
    private final Rotation xoaOrent;
    /**
     * The object area's Y-axis rotation from the Y axis of the reference coordinate system
     */
    private final Rotation yoaOrent;

    public void writeTo(byte[] out, int offset) {
        xoaOrent.writeTo(out, offset);
        yoaOrent.writeTo(out, offset + 2);
    }

    private AxisOrientation(Rotation xoaOrent, Rotation yoaOrent) {
        this.xoaOrent = xoaOrent;
        this.yoaOrent = yoaOrent;
    }

    /**
     * Writes the axis orientation area bytes to the output stream.
     *
     * @param stream the output stream to write to
     * @throws IOException if an I/O error occurs
     */
    public void writeTo(OutputStream stream) throws IOException {
        byte[] data = new byte[4];
        writeTo(data, 0);
        stream.write(data);
    }

    /**
     * Gets the right-handed axis orientation object for a given orientation in degrees.
     *
     * @param orientation the orientation in degrees
     * @return the {@link AxisOrientation} object
     */
    public static AxisOrientation getRightHandedAxisOrientationFor(int orientation) {
        switch (orientation) {
            case 0: return RIGHT_HANDED_0;
            case 90: return RIGHT_HANDED_90;
            case 180: return RIGHT_HANDED_180;
            case 270: return RIGHT_HANDED_270;
            default: throw new IllegalArgumentException(
            "The orientation must be one of the values 0, 90, 180, 270");
        }
    }
}

org/apache/fop/afp/modca/AxisOrientation.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

What Is fop-2.7-bin.zip

Download and Installing of FOP 2.x

⇑⇑ FAQ for FOP (Formatting Object Processor)

2016-07-07, 36502👍, 0💬