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

io.qt.pdf.QPdfDocument Maven / Gradle / Ivy

package io.qt.pdf;


/**
 * 

Loads a PDF document and renders pages from it

*

Java wrapper for Qt's class QPdfDocument

*/ public class QPdfDocument extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPdfDocument.class); /** *

Java wrapper for Qt enum QPdfDocument::Error

*/ public enum Error implements io.qt.QtEnumerator { None(0), Unknown(1), DataNotYetAvailable(2), FileNotFound(3), InvalidFileFormat(4), IncorrectPassword(5), UnsupportedSecurityScheme(6); static { QtJambi_LibraryUtilities.initialize(); } private Error(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Error resolve(int value) { switch (value) { case 0: return None; case 1: return Unknown; case 2: return DataNotYetAvailable; case 3: return FileNotFound; case 4: return InvalidFileFormat; case 5: return IncorrectPassword; case 6: return UnsupportedSecurityScheme; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPdfDocument::MetaDataField

*/ public enum MetaDataField implements io.qt.QtEnumerator { Title(0), Subject(1), Author(2), Keywords(3), Producer(4), Creator(5), CreationDate(6), ModificationDate(7); static { QtJambi_LibraryUtilities.initialize(); } private MetaDataField(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static MetaDataField resolve(int value) { switch (value) { case 0: return Title; case 1: return Subject; case 2: return Author; case 3: return Keywords; case 4: return Producer; case 5: return Creator; case 6: return CreationDate; case 7: return ModificationDate; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPdfDocument::PageModelRole

*/ public enum PageModelRole implements io.qt.QtEnumerator { Label(256), PointSize(257), NRoles(258); static { QtJambi_LibraryUtilities.initialize(); } private PageModelRole(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static PageModelRole resolve(int value) { switch (value) { case 256: return Label; case 257: return PointSize; case 258: return NRoles; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPdfDocument::Status

*/ public enum Status implements io.qt.QtEnumerator { Null(0), Loading(1), Ready(2), Unloading(3), Error(4); static { QtJambi_LibraryUtilities.initialize(); } private Status(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Status resolve(int value) { switch (value) { case 0: return Null; case 1: return Loading; case 2: return Ready; case 3: return Unloading; case 4: return Error; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QPdfDocument::pageCountChanged(int)

*/ @io.qt.QtPropertyNotify(name="pageCount") public final Signal1<@io.qt.QtPrimitiveType Integer> pageCountChanged = new Signal1<>(); /** *

See QPdfDocument::pageModelChanged()

*/ @io.qt.QtPropertyNotify(name="pageModel") public final Signal0 pageModelChanged = new Signal0(); /** *

See QPdfDocument::passwordChanged()

*/ @io.qt.QtPropertyNotify(name="password") public final Signal0 passwordChanged = new Signal0(); public final Signal0 passwordRequired = new Signal0(); /** *

See QPdfDocument::statusChanged(QPdfDocument::Status)

*/ @io.qt.QtPropertyNotify(name="status") public final Signal1 statusChanged = new Signal1<>(); /** *

See QPdfDocument::QPdfDocument()

*/ public QPdfDocument(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QPdfDocument instance); /** *

See QPdfDocument::QPdfDocument(QObject*)

*/ public QPdfDocument(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QPdfDocument instance, io.qt.core.QObject parent); /** *

See QPdfDocument::close()

*/ @io.qt.QtUninvokable public final void close(){ close_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void close_native(long __this__nativeId); /** *

See QPdfDocument::error()const

*/ @io.qt.QtUninvokable public final io.qt.pdf.QPdfDocument.Error error(){ return io.qt.pdf.QPdfDocument.Error.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int error_native_constfct(long __this__nativeId); /** *

See QPdfDocument::getAllText(int)

*/ public final io.qt.pdf.QPdfSelection getAllText(int page){ return getAllText_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), page); } private native io.qt.pdf.QPdfSelection getAllText_native_int(long __this__nativeId, int page); /** *

See QPdfDocument::getSelection(int,QPointF,QPointF)

*/ public final io.qt.pdf.QPdfSelection getSelection(int page, io.qt.core.QPointF start, io.qt.core.QPointF end){ return getSelection_native_int_QPointF_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), page, QtJambi_LibraryUtilities.internal.checkedNativeId(start), QtJambi_LibraryUtilities.internal.checkedNativeId(end)); } private native io.qt.pdf.QPdfSelection getSelection_native_int_QPointF_QPointF(long __this__nativeId, int page, long start, long end); /** *

See QPdfDocument::getSelectionAtIndex(int,int,int)

*/ public final io.qt.pdf.QPdfSelection getSelectionAtIndex(int page, int startIndex, int maxLength){ return getSelectionAtIndex_native_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), page, startIndex, maxLength); } private native io.qt.pdf.QPdfSelection getSelectionAtIndex_native_int_int_int(long __this__nativeId, int page, int startIndex, int maxLength); /** *

See QPdfDocument::load(QIODevice*)

*/ @io.qt.QtUninvokable public final void load(io.qt.core.QIODevice device){ load_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device)); } @io.qt.QtUninvokable private native void load_native_QIODevice_ptr(long __this__nativeId, long device); /** *

See QPdfDocument::load(QString)

*/ @io.qt.QtUninvokable public final io.qt.pdf.QPdfDocument.Error load(java.lang.String fileName){ return io.qt.pdf.QPdfDocument.Error.resolve(load_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName)); } @io.qt.QtUninvokable private native int load_native_cref_QString(long __this__nativeId, java.lang.String fileName); /** *

See QPdfDocument::metaData(QPdfDocument::MetaDataField)const

*/ @io.qt.QtUninvokable public final java.lang.Object metaData(io.qt.pdf.QPdfDocument.MetaDataField field){ return metaData_native_QPdfDocument_MetaDataField_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), field.value()); } @io.qt.QtUninvokable private native java.lang.Object metaData_native_QPdfDocument_MetaDataField_constfct(long __this__nativeId, int field); /** *

See QPdfDocument::pageCount()const

*/ @io.qt.QtPropertyReader(name="pageCount") @io.qt.QtUninvokable public final int pageCount(){ return pageCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int pageCount_native_constfct(long __this__nativeId); /** *

See QPdfDocument::pageLabel(int)

*/ public final java.lang.String pageLabel(int page){ return pageLabel_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), page); } private native java.lang.String pageLabel_native_int(long __this__nativeId, int page); /** *

See QPdfDocument::pageModel()

*/ @io.qt.QtPropertyReader(name="pageModel") @io.qt.QtUninvokable public final io.qt.core.QAbstractListModel pageModel(){ return pageModel_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QAbstractListModel pageModel_native(long __this__nativeId); /** *

See QPdfDocument::pagePointSize(int)const

*/ public final io.qt.core.QSizeF pagePointSize(int page){ return pagePointSize_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), page); } private native io.qt.core.QSizeF pagePointSize_native_int_constfct(long __this__nativeId, int page); /** *

See QPdfDocument::password()const

*/ @io.qt.QtPropertyReader(name="password") @io.qt.QtUninvokable public final java.lang.String password(){ return password_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String password_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #render(int, io.qt.core.QSize, io.qt.pdf.QPdfDocumentRenderOptions)} * with options = new io.qt.pdf.QPdfDocumentRenderOptions().

*/ @io.qt.QtUninvokable public final io.qt.gui.QImage render(int page, io.qt.core.QSize imageSize) { return render(page, imageSize, new io.qt.pdf.QPdfDocumentRenderOptions()); } /** *

See QPdfDocument::render(int,QSize,QPdfDocumentRenderOptions)

*/ @io.qt.QtUninvokable public final io.qt.gui.QImage render(int page, io.qt.core.QSize imageSize, io.qt.pdf.QPdfDocumentRenderOptions options){ return render_native_int_QSize_QPdfDocumentRenderOptions(QtJambi_LibraryUtilities.internal.nativeId(this), page, QtJambi_LibraryUtilities.internal.checkedNativeId(imageSize), QtJambi_LibraryUtilities.internal.checkedNativeId(options)); } @io.qt.QtUninvokable private native io.qt.gui.QImage render_native_int_QSize_QPdfDocumentRenderOptions(long __this__nativeId, int page, long imageSize, long options); /** *

See QPdfDocument::setPassword(QString)

*/ @io.qt.QtPropertyWriter(name="password") @io.qt.QtUninvokable public final void setPassword(java.lang.String password){ setPassword_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), password); } @io.qt.QtUninvokable private native void setPassword_native_cref_QString(long __this__nativeId, java.lang.String password); /** *

See QPdfDocument::status()const

*/ @io.qt.QtPropertyReader(name="status") @io.qt.QtUninvokable public final io.qt.pdf.QPdfDocument.Status status(){ return io.qt.pdf.QPdfDocument.Status.resolve(status_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int status_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QPdfDocument(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QPdfDocument(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QPdfDocument instance, QDeclarativeConstructor constructor); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy