public class PDFViewer extends Object
| Modifier and Type | Field and Description |
|---|---|
javafx.beans.property.ObjectProperty<java.util.function.Consumer<javafx.concurrent.Task<String>>> |
onLoaderTaskPresent |
static ExecutorService |
THREAD_POOL |
| Constructor and Description |
|---|
PDFViewer() |
PDFViewer(File file) |
PDFViewer(InputStream inputStream) |
PDFViewer(PDFJSVersion version) |
PDFViewer(PDFJSVersion version,
File file) |
PDFViewer(PDFJSVersion version,
InputStream inputStream) |
PDFViewer(PDFJSVersion version,
URL url) |
PDFViewer(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
displayPdf(File file)
Deprecated.
Use
loadPDF(InputStream) instead |
void |
displayPdf(InputStream inputStream)
Deprecated.
|
void |
displayPdf(URL url)
Deprecated.
|
void |
executeScript(String js) |
int |
getActualPageNumber() |
java.util.function.Consumer<javafx.concurrent.Task<String>> |
getOnLoaderTaskPresent() |
int |
getTotalPageCount() |
void |
loadPDF(File file) |
void |
loadPDF(InputStream inputStream) |
void |
loadPDF(URL url) |
void |
navigateByPage(int pageNum) |
javafx.beans.property.ObjectProperty<java.util.function.Consumer<javafx.concurrent.Task<String>>> |
onLoaderTaskPresentProperty() |
void |
setOnLoaderTaskPresent(java.util.function.Consumer<javafx.concurrent.Task<String>> onLoaderTaskPresent) |
void |
setSecondaryToolbarToggleVisibility(boolean value) |
void |
setVisibilityOf(String id,
boolean value) |
javafx.scene.Parent |
toNode() |
public static final ExecutorService THREAD_POOL
public final javafx.beans.property.ObjectProperty<java.util.function.Consumer<javafx.concurrent.Task<String>>> onLoaderTaskPresent
public PDFViewer(PDFJSVersion version)
public PDFViewer()
public PDFViewer(PDFJSVersion version, File file) throws IOException
IOExceptionpublic PDFViewer(File file) throws IOException
IOExceptionpublic PDFViewer(PDFJSVersion version, URL url) throws IOException
IOExceptionpublic PDFViewer(URL url) throws IOException
IOExceptionpublic PDFViewer(PDFJSVersion version, InputStream inputStream) throws IOException
IOExceptionpublic PDFViewer(InputStream inputStream) throws IOException
IOException@Deprecated public void displayPdf(File file) throws IOException
loadPDF(InputStream) insteadIOException@Deprecated public void displayPdf(URL url) throws IOException
IOException@Deprecated public void displayPdf(InputStream inputStream) throws IOException
IOExceptionpublic void loadPDF(File file) throws IOException
IOExceptionpublic void loadPDF(URL url) throws IOException
IOExceptionpublic void loadPDF(InputStream inputStream)
public void setSecondaryToolbarToggleVisibility(boolean value)
public void setVisibilityOf(String id, boolean value)
public int getActualPageNumber()
public int getTotalPageCount()
public void navigateByPage(int pageNum)
public void executeScript(String js)
public javafx.scene.Parent toNode()
public java.util.function.Consumer<javafx.concurrent.Task<String>> getOnLoaderTaskPresent()
public javafx.beans.property.ObjectProperty<java.util.function.Consumer<javafx.concurrent.Task<String>>> onLoaderTaskPresentProperty()
public void setOnLoaderTaskPresent(java.util.function.Consumer<javafx.concurrent.Task<String>> onLoaderTaskPresent)
Copyright © 2023. All rights reserved.