All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpedal.parser.BaseDecoder Maven / Gradle / Ivy

There is a newer version: 7.15.25
Show newest version
/*
 * ===========================================
 * 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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy