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

com.pdftools.pdf2image.ContentOptions 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:            ContentOptions.java
 *
 * Description:     PDFTOOLS ContentOptions 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.pdf2image;

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

The parameters how to render PDF content elements

*/ public class ContentOptions extends NativeObject { protected ContentOptions(long handle) { super(handle); } /** * @hidden */ public static ContentOptions createDynamicObject(long handle) { return new ContentOptions(handle); } /** *

The render strategy for annotations (Getter)

*

* Defines whether to render annotation popups. * For details, see {@link AnnotationOptions }.

*

* Default: {@link AnnotationOptions#SHOW_ANNOTATIONS }

*/ public com.pdftools.pdf2image.AnnotationOptions getAnnotations() { int retVal = getAnnotationsNative(getHandle()); if (retVal == 0) { switch (getLastErrorCode()) { case 0: break; default: throwLastRuntimeException(); } } return com.pdftools.pdf2image.AnnotationOptions.fromValue(retVal); } /** *

The render strategy for annotations (Setter)

*

* Defines whether to render annotation popups. * For details, see {@link AnnotationOptions }.

*

* Default: {@link AnnotationOptions#SHOW_ANNOTATIONS }

* @throws IllegalArgumentException if {@code value} is {@code null} */ public void setAnnotations(com.pdftools.pdf2image.AnnotationOptions value) { if (value == null) throw new IllegalArgumentException("Argument 'value' must not be null.", new NullPointerException("'value'")); boolean retVal = setAnnotationsNative(getHandle(), value.getValue()); if (!retVal) { switch (getLastErrorCode()) { case 0: throw new RuntimeException("An unexpected error occurred"); default: throwLastRuntimeException(); } } } private native int getAnnotationsNative(long handle); private native boolean setAnnotationsNative(long handle, int value); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy