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

com.pdftools.image.MultiPageDocument Maven / Gradle / Ivy

Go to download

The Pdftools SDK is a comprehensive development library that lets developers integrate advanced PDF functionalities into in-house applications.

There is a newer version: 1.8.0
Show newest version
/****************************************************************************
 *
 * File:            MultiPageDocument.java
 *
 * Description:     PDFTOOLS MultiPageDocument Class
 *
 * Author:          PDF Tools AG
 * 
 * Copyright:       Copyright (C) 2023 - 2024 PDF Tools AG, Switzerland
 *                  All rights reserved.
 * 
 * Notice:          By downloading and using this artifact, you accept PDF Tools AG's
 *                  [license agreement](https://www.pdf-tools.com/license-agreement/),
 *                  [privacy policy](https://www.pdf-tools.com/privacy-policy/),
 *                  and allow PDF Tools AG to track your usage data.
 *
 ***************************************************************************/

package com.pdftools.image;

import com.pdftools.sys.*;
import com.pdftools.internal.*;
import java.util.EnumSet;
import java.time.OffsetDateTime;
/**
 * 

The image document of an image format that supports multi-page images

* This class is used for TIFF images, which can contain one or more pages. */ public class MultiPageDocument extends com.pdftools.image.Document { protected MultiPageDocument(long handle) { super(handle); } /** * @hidden */ public static MultiPageDocument createDynamicObject(long handle) { return new MultiPageDocument(handle); } /** *

The pages of the image (Getter)

* */ public com.pdftools.image.PageList getPages() { long retHandle = getPagesNative(getHandle()); if (retHandle == 0) { switch (getLastErrorCode()) { case 0: throw new RuntimeException("An unexpected error occurred"); default: throwLastRuntimeException(); } } return com.pdftools.image.PageList.createDynamicObject(retHandle); } private native long getPagesNative(long handle); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy