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/afp/AFPRendererConfigurator.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: AFPRendererConfigurator.java 1866691 2019-09-09 13:20:08Z ssteiner $ */ package org.apache.fop.render.afp; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.fop.afp.AFPEventProducer; import org.apache.fop.afp.AFPResourceLevelDefaults; import org.apache.fop.afp.fonts.AFPFontCollection; import org.apache.fop.afp.fonts.AFPFontInfo; import org.apache.fop.apps.FOPException; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.apps.io.InternalResourceResolver; import org.apache.fop.fonts.FontCollection; import org.apache.fop.render.PrintRendererConfigurator; import org.apache.fop.render.RendererConfig.RendererConfigParser; import org.apache.fop.render.afp.AFPFontConfig.AFPFontConfigData; import org.apache.fop.render.intermediate.IFDocumentHandler; import org.apache.fop.util.LogUtil; /** * AFP Renderer configurator */ public class AFPRendererConfigurator extends PrintRendererConfigurator { private static Log log = LogFactory.getLog(AFPRendererConfigurator.class); private final AFPEventProducer eventProducer; /** * Default constructor * * @param userAgent user agent */ public AFPRendererConfigurator(FOUserAgent userAgent, RendererConfigParser rendererConfigParser) { super(userAgent, rendererConfigParser); eventProducer = AFPEventProducer.Provider.get(userAgent.getEventBroadcaster()); } @Override public void configure(IFDocumentHandler documentHandler) throws FOPException { AFPRendererConfig config = (AFPRendererConfig) getRendererConfig(documentHandler); if (config != null) { AFPDocumentHandler afpDocumentHandler = (AFPDocumentHandler) documentHandler; configure(afpDocumentHandler, config); } } private void configure(AFPDocumentHandler documentHandler, AFPRendererConfig config) { Boolean colorImages = config.isColorImages(); if (colorImages != null) { documentHandler.setColorImages(colorImages); if (colorImages) { documentHandler.setCMYKImagesSupported(config.isCmykImagesSupported()); } else { documentHandler.setBitsPerPixel(config.getBitsPerPixel()); } } if (config.getDitheringQuality() != null) { documentHandler.setDitheringQuality(config.getDitheringQuality()); } if (config.isNativeImagesSupported() != null) { documentHandler.setNativeImagesSupported(config.isNativeImagesSupported()); } if (config.getShadingMode() != null) { documentHandler.setShadingMode(config.getShadingMode()); } if (config.getResolution() != null) { documentHandler.setResolution(config.getResolution()); } if (config.isWrapPseg() != null) { documentHandler.setWrapPSeg(config.isWrapPseg()); } if (config.isGocaWrapPseg() != null) { documentHandler.setWrapGocaPSeg(config.isGocaWrapPseg()); } if (config.isFs45() != null) { documentHandler.setFS45(config.isFs45()); } if (config.allowJpegEmbedding() != null) { documentHandler.canEmbedJpeg(config.allowJpegEmbedding()); } if (config.getBitmapEncodingQuality() != null) { documentHandler.setBitmapEncodingQuality(config.getBitmapEncodingQuality()); } if (config.getLineWidthCorrection() != null) { documentHandler.setLineWidthCorrection(config.getLineWidthCorrection()); } if (config.isGocaEnabled() != null) { documentHandler.setGOCAEnabled(config.isGocaEnabled()); } if (config.isStrokeGocaText() != null) { documentHandler.setStrokeGOCAText(config.isStrokeGocaText()); } if (config.getDefaultResourceGroupUri() != null) { documentHandler.setDefaultResourceGroupUri(config.getDefaultResourceGroupUri()); } AFPResourceLevelDefaults resourceLevelDefaults = config.getResourceLevelDefaults(); if (resourceLevelDefaults != null) { documentHandler.setResourceLevelDefaults(resourceLevelDefaults); } } @Override protected List<FontCollection> getDefaultFontCollection() { return new ArrayList<FontCollection>(); } @Override protected FontCollection getCustomFontCollection(InternalResourceResolver uriResolverWrapper, String mimeType) throws FOPException { AFPRendererConfig config = (AFPRendererConfig) getRendererConfig(mimeType); if (config != null) { try { return new AFPFontCollection(userAgent.getEventBroadcaster(), createFontsList( config.getFontInfoConfig(), mimeType)); } catch (IOException e) { eventProducer.invalidConfiguration(this, e); LogUtil.handleException(log, e, userAgent.validateUserConfigStrictly()); } catch (IllegalArgumentException iae) { eventProducer.invalidConfiguration(this, iae); LogUtil.handleException(log, iae, userAgent.validateUserConfigStrictly()); } } return new AFPFontCollection(userAgent.getEventBroadcaster(), null); } private List<AFPFontInfo> createFontsList(AFPFontConfig fontConfig, String mimeType) throws FOPException, IOException { List<AFPFontInfo> afpFonts = new ArrayList<AFPFontInfo>(); for (AFPFontConfigData config : fontConfig.getFontConfig()) { afpFonts.add(config.getFontInfo(userAgent.getFontManager().getResourceResolver(), eventProducer)); } return afpFonts; } }
⏎ org/apache/fop/render/afp/AFPRendererConfigurator.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, 34357👍, 0💬
Popular Posts:
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...