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

org.jpedal.examples.viewer.utils.ItextFunctions Maven / Gradle / Ivy

There is a newer version: 20151002
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-2015 IDRsolutions and Contributors.
 *
 * This file is part of JPedal/JPDF2HTML5
 *
     This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


 *
 * ---------------
 * ItextFunctions.java
 * ---------------
 */
package org.jpedal.examples.viewer.utils;


import org.jpedal.PdfDecoderInt;
import org.jpedal.examples.viewer.gui.popups.*;
import org.jpedal.examples.viewer.objects.SignData;
import org.jpedal.gui.GUIFactory;
import org.jpedal.objects.PdfPageData;


/** central location to place external code using itext library */

public class ItextFunctions {

    public static final boolean IS_DUMMY = true;

	public static final int ROTATECLOCKWISE = 0;
	public static final int ROTATECOUNTERCLOCKWISE = 1;
	public static final int ROTATE180 = 2;

	public static final int ORDER_ACROSS = 3;
	public static final int ORDER_DOWN = 4;
	public static final int ORDER_STACK = 5;
	
	public static final int REPEAT_NONE = 6;
	public static final int REPEAT_AUTO = 7;
	public static final int REPEAT_SPECIFIED = 8;
	
	public static final int NOT_CERTIFIED = -1;//PdfSignatureAppearance.NOT_CERTIFIED;
	public static final int CERTIFIED_NO_CHANGES_ALLOWED = -1;//PdfSignatureAppearance.CERTIFIED_NO_CHANGES_ALLOWED;
	public static final int CERTIFIED_FORM_FILLING = -1;//PdfSignatureAppearance.CERTIFIED_FORM_FILLING;
	public static final int CERTIFIED_FORM_FILLING_AND_ANNOTATIONS = -1;//PdfSignatureAppearance.CERTIFIED_FORM_FILLING_AND_ANNOTATIONS;
	
	public static final int ALLOW_PRINTING = -1;// PdfWriter.ALLOW_PRINTING;
	public static final int ALLOW_MODIFY_CONTENTS = -1;//PdfWriter.ALLOW_MODIFY_CONTENTS;
	public static final int ALLOW_COPY = -1;//PdfWriter.ALLOW_COPY;
	public static final int ALLOW_MODIFY_ANNOTATIONS = -1;//PdfWriter.ALLOW_MODIFY_ANNOTATIONS;
	public static final int ALLOW_FILL_IN = -1;//PdfWriter.ALLOW_FILL_IN;
	public static final int ALLOW_SCREENREADERS = -1;//PdfWriter.ALLOW_SCREENREADERS;
	public static final int ALLOW_ASSEMBLY = -1;//PdfWriter.ALLOW_ASSEMBLY;
	public static final int ALLOW_DEGRADED_PRINTING = -1;//PdfWriter.ALLOW_DEGRADED_PRINTING;
	

    public ItextFunctions(final GUIFactory currentGUI, final String selectedFile,
			final PdfDecoderInt decode_pdf) {
	
	}

    //
    /** uses itext to save out form data with any changes user has made
     * 
     * @param file Where to save the data.
     */
	public static void saveFormsData(final String file) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void extractPagesToNewPDF(final SavePDF current_selection) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void nup(final int pageCount, final PdfPageData currentPageData, final ExtractPDFPagesNup extractPage){
		throw new java.lang.AssertionError("Itext not on classpath");
	}
	
	public static void handouts(final String file) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void add(final int pageCount, final PdfPageData currentPageData,
                           final InsertBlankPDFPage addPage) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	//@SIGNING
	public static void Sign(final SignData signData)
	{ 
		throw new java.lang.AssertionError("Itext not on classpath");
	}
    
	public static void rotate(final int pageCount, final PdfPageData currentPageData,
                              final RotatePDFPages current_selection) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void setCrop(final int pageCount, final PdfPageData currentPageData,
                               final CropPDFPages cropPage) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void delete(final int pageCount, final PdfPageData currentPageData,
                              final DeletePDFPages deletedPages) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void stampImage(final int pageCount, final PdfPageData currentPageData,
                                  final StampImageToPDFPages stampImage) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void stampText(final int pageCount, final PdfPageData currentPageData,
                                 final StampTextToPDFPages stampText) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void addHeaderFooter(final int pageCount, final PdfPageData currentPageData,
                                       final AddHeaderFooterToPDFPages addHeaderFooter) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}

	public static void encrypt(final int pageCount, final PdfPageData currentPageData,
                               final EncryptPDFDocument encryptPage) {
		throw new java.lang.AssertionError("Itext not on classpath");
	}
	
	public static String getVersion()
	{
		throw new java.lang.AssertionError("Itext not on classpath");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy