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

org.jpedal.parser.gs.Q 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@
 *
 * ---------------
 * Q.java
 * ---------------
 */
package org.jpedal.parser.gs;

import org.jpedal.objects.GraphicsState;
import org.jpedal.render.DynamicVectorRenderer;

/**
 *
 */
public class Q {

    public static GraphicsState execute(GraphicsState gs, final boolean isLowerCase, final GraphicsStates graphicsStates, final DynamicVectorRenderer current) {

        //save or retrieve
        if (isLowerCase) {
            graphicsStates.pushGraphicsState(gs, current);
        } else {
            gs = graphicsStates.restoreGraphicsState(current);

            //flag font has changed
            gs.getTextState().setFontChanged(true);

        }

        return gs;
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy