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/pdf/PDFGState.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: PDFGState.java 1758773 2016-09-01 13:02:29Z ssteiner $ */ package org.apache.fop.pdf; import java.util.Map; import java.util.Set; /** * Class representing a /ExtGState object. */ public class PDFGState extends PDFObject { /** Line width (LW) */ public static final String GSTATE_LINE_WIDTH = "LW"; /** Line cap (LC) */ public static final String GSTATE_LINE_CAP = "LC"; /** Line join (LJ) */ public static final String GSTATE_LINE_JOIN = "LJ"; /** Miter limit (ML) */ public static final String GSTATE_MITER_LIMIT = "ML"; /** Dash pattern (D) */ public static final String GSTATE_DASH_PATTERN = "D"; /** Rendering intent (RI) */ public static final String GSTATE_RENDERING_INTENT = "RI"; /** Overprint for stroke (OP) */ public static final String GSTATE_OVERPRINT_STROKE = "OP"; /** Overprint for fill (op) */ public static final String GSTATE_OVERPRINT_FILL = "op"; /** Overprint mode (OPM) */ public static final String GSTATE_OVERPRINT_MODE = "OPM"; /** Font (Font) */ public static final String GSTATE_FONT = "Font"; /** Black generation (BG) */ public static final String GSTATE_BLACK_GENERATION = "BG"; /** Black generation with default (BG2) */ public static final String GSTATE_BLACK_GENERATION2 = "BG2"; /** Undercolor removal function (UCR) */ public static final String GSTATE_UNDERCOLOR_REMOVAL = "UCR"; /** Undercolor removal function with default (UCR2) */ public static final String GSTATE_UNDERCOLOR_REMOVAL2 = "UCR2"; /** Transfer function (TR) */ public static final String GSTATE_TRANSFER_FUNCTION = "TR"; /** Transfer function with default (TR2) */ public static final String GSTATE_TRANSFER_FUNCTION2 = "TR2"; /** Halftone dictionary or stream (HT) */ public static final String GSTATE_HALFTONE_DICT = "HT"; /** Halftone phase (HTP, does not show up anymore in PDF 1.4)*/ public static final String GSTATE_HALFTONE_PHASE = "HTP"; /** Flatness (FL) */ public static final String GSTATE_FLATNESS = "FL"; /** Smoothness (SM) */ public static final String GSTATE_SMOOTHNESS = "SM"; /** Strike adjustment (SA) */ public static final String GSTATE_STRIKE_ADJ = "SA"; /** Blend mode (BM, PDF 1.4) */ public static final String GSTATE_BLEND_MODE = "BM"; /** Soft mask (SMask, PDF 1.4) */ public static final String GSTATE_SOFT_MASK = "SMask"; /** Stroking Alpha (CA, PDF 1.4) */ public static final String GSTATE_ALPHA_STROKE = "CA"; /** Nonstroking Alpha (ca, PDF 1.4) */ public static final String GSTATE_ALPHA_NONSTROKE = "ca"; /** Alpha Source Flag (AIS, PDF 1.4) */ public static final String GSTATE_ALPHA_SOURCE_FLAG = "AIS"; /** Text Knockout Flag (TK, PDF 1.4) */ public static final String GSTATE_TEXT_KNOCKOUT = "TK"; /** Default GState object */ public static final PDFGState DEFAULT; static { DEFAULT = new PDFGState(); Map vals = DEFAULT.values; /*vals.put(LW, new Float(1.0)); vals.put(LC, Integer.valueOf(0)); vals.put(LJ, Integer.valueOf(0)); vals.put(ML, new Float(10.0)); vals.put(D, "0 []"); vals.put(RI, "RelativeColorimetric"); vals.put(OP, Boolean.FALSE); vals.put(op, Boolean.FALSE); vals.put(OPM, Integer.valueOf(1)); vals.put(Font, "");*/ vals.put(GSTATE_ALPHA_STROKE, 1.0f); vals.put(GSTATE_ALPHA_NONSTROKE, 1.0f); } private Map values = new java.util.HashMap(); private int objNum; /** * Returns the name of this object * @return the name */ public String getName() { if (objNum == 0) { objNum = ++getDocument().gStateObjectCount; } return "GS" + objNum; } /** * Sets the alpha value. * @param val alpha value (0.0 - 1.0) * @param fill True if alpha should be set for non-stroking operations, * False if for stroking operations */ public void setAlpha(float val, boolean fill) { if (fill) { values.put(GSTATE_ALPHA_NONSTROKE, val); } else { values.put(GSTATE_ALPHA_STROKE, val); } } /** * Adds all values from another GState object to this one. * @param state source object to copy from */ public void addValues(PDFGState state) { values.putAll(state.values); } /** * Adds all values from a Map to this object. * @param vals source object to copy from */ public void addValues(Map vals) { values.putAll(vals); } /** * {@inheritDoc} */ public String toPDFString() { StringBuffer sb = new StringBuffer(64); sb.append("<<\n/Type /ExtGState\n"); appendVal(sb, GSTATE_ALPHA_NONSTROKE); appendVal(sb, GSTATE_ALPHA_STROKE); sb.append(">>"); return sb.toString(); } private void appendVal(StringBuffer sb, String name) { Object val = values.get(name); if (val != null) { sb.append("/" + name + " " + val + "\n"); } } /* * example * 29 0 obj * << * /Type /ExtGState * /ca 0.5 * >> * endobj */ /** {@inheritDoc} */ protected boolean contentEquals(PDFObject obj) { if (obj == this) { return true; } if (!(obj instanceof PDFGState)) { return false; } Map vals1 = values; Map vals2 = ((PDFGState)obj).values; if (vals1.size() != vals2.size()) { return false; } for (Map.Entry<Object, Object> e : (Set<Map.Entry<Object, Object>>) vals2.entrySet()) { Object str = e.getKey(); Object obj1 = vals1.get(str); if (!obj1.equals(e.getValue())) { return false; } } return true; } }
⏎ org/apache/fop/pdf/PDFGState.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, 22174👍, 0💬
Popular Posts:
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...