org.jpedal.examples.viewer.commands.PageCount 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
/*
* ===========================================
* 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@
*
* ---------------
* PageCount.java
* ---------------
*/
package org.jpedal.examples.viewer.commands;
import org.jpedal.PdfDecoderInt;
/**
* Count the number of pages the current document in the Viewer has
*/
public class PageCount {
public static Object execute(final PdfDecoderInt decode_pdf) {
final Object status;
if (decode_pdf == null) {
status = -1;
} else {
status = decode_pdf.getPageCount();
}
return status;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy