org.jpedal.parser.BaseDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenViewerFX Show documentation
Show all versions of OpenViewerFX Show documentation
Open Source (LGPL) JavaFX PDF Viewer for NetBeans plugin
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2017 IDRsolutions and Contributors.
*
* This file is part of JPedal/JPDF2HTML5
*
@LICENSE@
*
* ---------------
* BaseDecoder.java
* ---------------
*/
package org.jpedal.parser;
import org.jpedal.objects.GraphicsState;
import org.jpedal.parser.gs.GraphicsStates;
import org.jpedal.render.DynamicVectorRenderer;
public class BaseDecoder {
public boolean isHTML;
// public static final int TextPrint=20;
public static final int GenerateGlyphOnRender = 21;
protected ParserOptions parserOptions = new ParserOptions();
final GraphicsStates graphicsStates = new GraphicsStates(parserOptions);
protected DynamicVectorRenderer current;
protected GraphicsState gs = new GraphicsState();
protected float multiplyer = 1;
protected int streamType;
public void setParams(final ParserOptions parserOptions) {
this.parserOptions = parserOptions;
}
/**
* custom up scale value for JPedal settings
*/
public void setMultiplyer(final float value) {
multiplyer = value;
}
public void setStreamType(final int value) {
streamType = value;
}
public void setGS(final GraphicsState gs) {
this.gs = gs;
}
public void setRenderer(final DynamicVectorRenderer current) {
this.current = current;
isHTML = current.isHTMLorSVG();
}
}