/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.11
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package pt.gov.cartaodecidadao;

public class PTEID_PDFSignature {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected PTEID_PDFSignature(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(PTEID_PDFSignature obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        pteidlibJava_WrapperJNI.delete_PTEID_PDFSignature(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public PTEID_PDFSignature() {
    this(pteidlibJava_WrapperJNI.new_PTEID_PDFSignature__SWIG_0(), true);
  }

  public PTEID_PDFSignature(String input_path) {
    this(pteidlibJava_WrapperJNI.new_PTEID_PDFSignature__SWIG_1(input_path), true);
  }

  public void addToBatchSigning(String input_path) {
    pteidlibJava_WrapperJNI.PTEID_PDFSignature_addToBatchSigning(swigCPtr, this, input_path);
  }

  public int getPageCount() {
    return pteidlibJava_WrapperJNI.PTEID_PDFSignature_getPageCount(swigCPtr, this);
  }

  public void enableTimestamp() {
    pteidlibJava_WrapperJNI.PTEID_PDFSignature_enableTimestamp(swigCPtr, this);
  }

  public boolean isLandscapeFormat() {
    return pteidlibJava_WrapperJNI.PTEID_PDFSignature_isLandscapeFormat(swigCPtr, this);
  }

  public String getOccupiedSectors(int page) {
    return pteidlibJava_WrapperJNI.PTEID_PDFSignature_getOccupiedSectors(swigCPtr, this, page);
  }

  public void setCustomImage(SWIGTYPE_p_unsigned_char image_data, long image_length) {
    pteidlibJava_WrapperJNI.PTEID_PDFSignature_setCustomImage(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(image_data), image_length);
  }

}
