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

org.jpedal.examples.viewer.commands.CurrentPage 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@
 *
 * ---------------
 * CurrentPage.java
 * ---------------
 */
package org.jpedal.examples.viewer.commands;

import org.jpedal.PdfDecoderInt;
import org.jpedal.gui.GUIFactory;

/**
 * Returns the current page
 */
public class CurrentPage {

    public static Object execute(final PdfDecoderInt decode_pdf, final GUIFactory currentGUI) {

        Object status = -1;

        if (decode_pdf != null) {
            status = currentGUI.getValues().getCurrentPage();
        }

        return status;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy