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/fo/expr/RGBNamedColorFunction.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: RGBNamedColorFunction.java 1328964 2012-04-22 20:09:49Z gadams $ */ package org.apache.fop.fo.expr; import org.apache.fop.datatypes.PercentBase; import org.apache.fop.datatypes.PercentBaseContext; import org.apache.fop.fo.pagination.ColorProfile; import org.apache.fop.fo.pagination.Declarations; import org.apache.fop.fo.properties.ColorProperty; import org.apache.fop.fo.properties.Property; /** * Implements the rgb-named-color() function. * @since XSL-FO 2.0 */ class RGBNamedColorFunction extends FunctionBase { /** {@inheritDoc} */ public int getRequiredArgsCount() { return 5; } /** {@inheritDoc} */ @Override public PercentBase getPercentBase() { return new RGBNamedPercentBase(); } /** {@inheritDoc} */ public Property eval(Property[] args, PropertyInfo pInfo) throws PropertyException { // Map color profile NCNAME to src from declarations/color-profile element String colorProfileName = args[3].getString(); String colorName = args[4].getString(); Declarations decls = (pInfo.getFO() != null ? pInfo.getFO().getRoot().getDeclarations() : null); ColorProfile cp = null; if (decls != null) { cp = decls.getColorProfile(colorProfileName); } if (cp == null) { PropertyException pe = new PropertyException("The " + colorProfileName + " color profile was not declared"); pe.setPropertyInfo(pInfo); throw pe; } float red = 0; float green = 0; float blue = 0; red = args[0].getNumber().floatValue(); green = args[1].getNumber().floatValue(); blue = args[2].getNumber().floatValue(); /* Verify rgb replacement arguments */ if ((red < 0 || red > 255) || (green < 0 || green > 255) || (blue < 0 || blue > 255)) { throw new PropertyException("sRGB color values out of range. " + "Arguments to rgb-named-color() must be [0..255] or [0%..100%]"); } // rgb-named-color is replaced with fop-rgb-named-color which has an extra argument // containing the color profile src attribute as it is defined in the color-profile // declarations element. StringBuffer sb = new StringBuffer(); sb.append("fop-rgb-named-color("); sb.append(red / 255f); sb.append(',').append(green / 255f); sb.append(',').append(blue / 255f); sb.append(',').append(colorProfileName); sb.append(',').append(cp.getSrc()); sb.append(", '").append(colorName).append('\''); sb.append(")"); return ColorProperty.getInstance(pInfo.getUserAgent(), sb.toString()); } private static final class RGBNamedPercentBase implements PercentBase { /** {@inheritDoc} */ public int getBaseLength(PercentBaseContext context) throws PropertyException { return 0; } /** {@inheritDoc} */ public double getBaseValue() { return 255f; } /** {@inheritDoc} */ public int getDimension() { return 0; } } }
⏎ org/apache/fop/fo/expr/RGBNamedColorFunction.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, 4863👍, 0💬
Popular Posts:
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
JDK 11 java.compiler.jmod is the JMOD file for JDK 11 Compiler module. JDK 11 Compiler module compil...
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool. JDK 11 JDI tool com...