Package | Description |
---|---|
com.qoppa.pdf |
General classes used by different objects throughout the library.
|
com.qoppa.pdf.actions |
Classes that represent user actions.
|
com.qoppa.pdf.annotations |
Classes representing PDF annotations.
|
com.qoppa.pdf.dom |
Classes representing the PDF document object model.
|
com.qoppa.pdf.form |
Classes related to PDF Acroform and its form fields.
|
com.qoppa.pdf.permissions |
This package contains classes related to document permissions.
|
com.qoppa.pdf.source |
PDFSource interface and implementations.
|
com.qoppa.pdfViewer |
PDFViewerBean and related classes.
|
Modifier and Type | Class and Description |
---|---|
class |
PDFPasswordException
Exception thrown when an invalid password is entered.
|
class |
PDFPermissionException
Exception thrown when there is any permission error.
|
class |
PDFSecurityException
Exceptions related to security problems.
|
Modifier and Type | Method and Description |
---|---|
void |
Bookmark.addAction(Action action)
Adds an Action to this Bookmark
|
Bookmark |
Bookmark.addChildBookmark(String title)
Add a child bookmark.
|
byte[] |
IEmbeddedFile.getCheckSum()
Get the 16-byte string that is the checksum of the bytes of the uncompressed embedded file.
|
byte[] |
IEmbeddedFile.getDeflatedContents()
Get the content of the embedded file, deflated.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(InputStream inStream,
IPassword password)
Static method to get the document information from a document from an InputStream.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(String fileName,
IPassword passwords)
Static method to get the document information from a document in a file.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(URL url,
IPassword password)
Static method to get the document information from a document from a URL.
|
InputStream |
IEmbeddedFile.getInputStream()
Returns an input stream from which the file contents can be read.
|
static List<LocalFont> |
FontSettings.getLocalFonts()
Returns a list of fonts found in the local environment that can be used for
adding text content to a PDF.
|
int |
IEmbeddedFile.getSize()
Get the size of the file content in bytes.
|
Bookmark |
Bookmark.insertChildBookmark(String title,
int index)
Insert a child bookmark at the given index in the node's children.
|
void |
IWindowHandler.openDoc(PDFSource source)
Open the PDF source.
|
void |
Bookmark.removeChildBookmark(int index)
Removes a child bookmark from the bookmark
|
void |
IEmbeddedFile.saveFile(File outFile)
Saves the content of the embedded file to the given output file.
|
void |
Bookmark.setActions(Vector<Action> actions)
Sets the list of actions for this Bookmark.
|
abstract void |
DocumentInfo.setAuthor(String author)
Set the document's author.
|
void |
DocumentViewPrefs.setCenterWindow(boolean value)
Sets the Center Window viewer preference in the document.
|
abstract void |
DocumentInfo.setCreationDate(Date creationDate)
Set the document's creation date.
|
abstract void |
DocumentInfo.setCreator(String creator)
Set the document's creator.
|
abstract void |
DocumentInfo.setCustomProperty(String key,
String value)
Sets a custom application property in the document info for the document.
|
void |
DocumentViewPrefs.setDirection(String value)
Sets the Direction viewer preference in the document.
|
void |
DocumentViewPrefs.setDisplayDocTitle(boolean value)
Sets the Display Doc Title viewer preference in the document.
|
void |
DocumentViewPrefs.setDuplex(String value)
Sets the Duplex viewer preference in the document.
|
void |
DocumentViewPrefs.setFitWindow(boolean value)
Sets the Fit Window viewer preference in the document.
|
void |
DocumentViewPrefs.setHideMenubar(boolean value)
Sets the Hide Menubar viewer preference in the document.
|
void |
DocumentViewPrefs.setHideToolbar(boolean value)
Sets the Hide Toolbar viewer preference in the document.
|
void |
DocumentViewPrefs.setHideWindowUI(boolean value)
Sets the Hide Window UI viewer preference in the document.
|
abstract void |
DocumentInfo.setKeywords(String keywords)
Set the document's keywords.
|
abstract void |
DocumentInfo.setModifiedDate(Date modDate)
Deprecated.
The document's modified date will be set by the library at the time the document is saved.
|
void |
DocumentViewPrefs.setNonFullScreenPageMode(String value)
Sets the NonFullScreen Page Mode viewer preference in the document.
|
void |
DocumentViewPrefs.setNumCopies(int value)
Sets the NumCopies viewer preference in the document.
|
void |
Bookmark.setOpen(boolean isOpen)
Sets the item as either open or closed when the document is opened.
|
void |
DocumentViewPrefs.setPickTrayByPDFSize(boolean value)
Sets the Pick Tray by PDF Size viewer preference in the document.
|
void |
DocumentViewPrefs.setPrintScaling(String value)
Sets the Print Scaling viewer preference in the document.
|
abstract void |
DocumentInfo.setProducer(String producer)
Set the document's producer.
|
abstract void |
DocumentInfo.setSubject(String subject)
Set the document's subject.
|
abstract void |
DocumentInfo.setTitle(String title)
Sets the document's title.
|
abstract void |
DocumentInfo.setXMPMetadata(byte[] xmpData)
Sets the XMP metadata block in the document.
|
abstract void |
DocumentInfo.setXMPMetadata(String xmpString,
String charsetName)
Sets the XMP metadata block in the document.
|
void |
IEmbeddedFile.write(OutputStream outStream)
Write the file content to an output stream.
|
Modifier and Type | Method and Description |
---|---|
String |
JSAction.getJavascript()
Returns the JavaScript of this action as a string.
|
Modifier and Type | Method and Description |
---|---|
FileAttachment |
IAnnotationFactory.createFileAttachment(byte[] fileContents,
String fileName,
Date modDate,
Date creationDate,
String popupText)
Constructs a file attachment annotation.
|
FileAttachment |
IAnnotationFactory.createFileAttachment(File attachFile,
String popupText)
Convenience constructor to create a file attachment from a file system file.
|
FileAttachment |
IAnnotationFactory.createFileAttachment(InputStream inStream,
String fileName,
Date modDate,
Date creationDate,
String popupText)
Creates a file attachment from an input stream.
|
RubberStamp |
IAnnotationFactory.createRubberStamp(IPDFPage page)
Constructs a rubber stamp annotation with the content stream from a PDF page.
|
void |
Widget.fieldValueChanged() |
void |
IFlattener.flattenWidget(Widget w) |
byte[] |
FileAttachment.getCheckSum()
Returns the CRC checksum for the file contents.
|
byte[] |
FileAttachment.getDeflatedContents()
Returns the file contents in deflated format
|
int |
FileAttachment.getFileSize()
Returns the length of the file, in bytes.
|
InputStream |
FileAttachment.getInputStream()
Returns the file contents as an input stream.
|
void |
FileAttachment.saveFile(File outFile)
Saves the content of the file to a file.
|
void |
FileAttachment.setFileContents(byte[] fileContents)
Sets the file contents for the file attachment.
|
void |
FileAttachment.setFileContents(File file)
Sets the file contents for the file attachment from a file.
|
void |
FileAttachment.setFileContents(InputStream inStream)
Sets the file contents for this file attachment from an input stream.
|
void |
Redaction.setOverlayFont(String fontName,
float fontSize)
Sets the name and point size of the overlay text Font.
|
Modifier and Type | Method and Description |
---|---|
Vector<TextPosition> |
IPDFPage.findText(String searchText,
boolean caseSensitive,
boolean wholeWords)
This method searches for the given text in the page.
|
Vector<TextPosition> |
IPDFPage.findTextUsingRegex(String regex)
This method searches for the given text in the page.
|
Vector<TextPositionWithContext> |
IPDFPage.findTextWithContext(String searchText,
boolean caseSensitive,
boolean wholeWords)
This method searches for the given text in the page.
|
Vector<TextPositionWithContext> |
IPDFPage.findTextWithContextUsingRegEx(String regex)
This method searches for text in the page for matches with the given regular expression.
|
Vector<Annotation> |
IPDFPage.getAnnotations()
Returns a list of PDF annotations in this page.
|
Vector<String> |
IPDFDocument.getDestinationNames()
Get a vector of strings that are the names of named destinations.
|
BufferedImage |
IPDFPage.getImage(int width,
int height,
boolean keepAspect)
Returns a buffered image showing the contents of this page.
|
String |
IPDFDocument.getText()
Returns the text content of the entire document, as a
String |
String |
IPDFPage.getText()
Returns the text content of this page as a
String . |
String |
IPDFDocument.getText(int pageIndex)
Returns the text content of this page as a
String . |
TextSelection |
IPDFPage.getTextInArea(Rectangle2D selectArea)
Selects the text in an area of the page.
|
TextSelection |
IPDFPage.getTextWithCursors(Point2D startCursor,
Point2D endCursor)
Returns the text contained between the start and end cursors, in "reading mode".
|
void |
IPDFPage.printPage(Graphics2D g2d,
PageFormat pf,
PrintSettings printSettings)
Prints this page given a page format describing the printer's page and
a PrintSettings object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SignatureField.addVerificationInformation()
Add verification information related to this signature.
|
void |
AcroForm.exportAsFDF(OutputStream outStream,
String pathToPDFFile,
boolean exportEmptyFields)
Exports AcroForm field data to an output stream in FDF format.
|
void |
AcroForm.exportAsFDF(String fileName,
boolean exportEmptyFields)
Exports AcroForm field data to a file in FDF format.
|
void |
AcroForm.exportAsXDP(OutputStream outStream,
String pdfReference,
boolean exportEmptyFields)
Exports XFA field data to an OutputStream.
|
void |
AcroForm.exportAsXDP(String fileName,
boolean exportEmptyFields)
Exports XFA field data to a file in XDP format.
|
void |
AcroForm.exportAsXFDF(OutputStream outStream,
String pathToPDFFile,
boolean exportEmptyFields)
Exports AcroForm field data to an output stream in XML format.
|
void |
AcroForm.exportAsXFDF(String fileName,
boolean exportEmptyFields)
Exports AcroForm field data to a file in XFDF format.
|
void |
AcroForm.exportAsXML(OutputStream outStream,
boolean useHierarchy,
boolean exportEmptyFields)
Export field values in a simple XML format.
|
void |
AcroForm.exportAsXML(String fileName,
boolean useHierarchy,
boolean exportEmptyFields)
Export field values in a simple XML format.
|
void |
FormField.flattenField()
Flattens the field into the document's content layer.
|
String |
SignatureField.getCustomProperty(String key)
This method can be used to retrieve the values of custom properties in the signature field dictionary.
|
String |
SignatureField.getSignCustomProperty(String key)
This method can be used to retrieve the values of custom properties in the signature dictionary.
|
void |
AcroForm.importFDF(InputStream inStream)
Imports AcroForm field data from an input stream in FDF format.
|
void |
AcroForm.importFDF(String fileName)
Import AcroForm field data from a file in FDF Format.
|
void |
AcroForm.importXDP(InputStream inStream)
Imports XFA field data from an InputStream in XDP format.
|
void |
AcroForm.importXDP(String fileName)
Imports XFA field data from a file in XDP format.
|
void |
AcroForm.importXFDF(String fileName)
Imports AcroForm fields data from a file in XFDF Format.
|
void |
AcroForm.importXFDF(XMLElement topElement)
Import AcroForm field data from an xml element representing the top element of an fdf file.
|
void |
FormField.reset()
Resets the field to its default value.
|
void |
AcroForm.resetFields()
Reset the form fields to their default value.
|
void |
SignatureField.setCustomProperty(String key,
String value)
This method can be used to add additional custom properties to the signature field dictionary.
|
void |
TextField.setHorzTextAlign(int justify)
Sets the text alignment for this field.
|
void |
PushButtonField.setImage(BufferedImage bi)
Set an image to display in the button fields.
|
void |
TextField.setRichValue(String richValue)
Sets the rich value for this text field if rich text is enabled.
|
void |
CheckBoxField.setValue(String value)
Sets the value for the check box field.
|
void |
ChoiceField.setValue(String value)
Sets the selected export value for this choice field.
|
void |
RadioButtonGroupField.setValue(String value)
Sets the value for this radio button group field.
|
void |
TextField.setValue(String value)
Sets the value for this text field.
|
void |
RadioButtonGroupField.setValueFromOptions(String value)
Sets the value from the options for this radio button group field if the options exist.
|
void |
ChoiceField.setValues(Vector<String> values)
Sets the list of currently selected values for this choice field.
|
Constructor and Description |
---|
DocMDPPermissions(int permissionLevel)
Create a new DocMDPPermissions object.
|
Constructor and Description |
---|
FilePDFSource(File source) |
FilePDFSource(String fileName) |
MBBPDFSource(File source) |
MBBPDFSource(String fileName) |
RAFilePDFSource(File source)
Creates a new
RAFilePDFSource instance using the given
File . |
RAFilePDFSource(File source,
boolean lockFile)
Creates a new
RAFilePDFSource instance using the given
File and boolean parameter indicating if the file should be
locked. |
RAFilePDFSource(String fileName)
Creates a new
RAFilePDFSource instance using the given
fileName. |
RAFilePDFSource(String fileName,
boolean lockFile)
Creates a new
RAFilePDFSource instance using the given
fileName and boolean parameter indicating if the file should be locked. |
URLOnDemandPDFSource(URL url,
File tempFile)
Create a PDFSource to read a PDF from a URL "on demand".
|
URLOnDemandPDFSource(URL url,
int storeType)
Create a PDFSource to read a PDF from a URL "on demand".
|
URLPDFSource(URL url) |
Modifier and Type | Method and Description |
---|---|
void |
PDFViewerBean.loadPDF(InputStream inStream)
Load and display a PDF document using an InputStream.
|
void |
PDFViewerBean.loadPDF(PDFSource source)
Load and display a PDF document using an object that implements PDFSource.
|
void |
PDFViewerBean.loadPDF(String fileName)
Load and display a PDF document using a file name.
|
void |
PDFViewerBean.loadPDF(URL url)
Load and display a PDF document using a URL.
|
void |
PDFViewerBean.openFile()
Initiates the file open process.
|
void |
IPDFOpener.openFile(PDFViewerBean viewerBean)
This method gets called by the PDFViewerBean whenever the user presses the folder open button on the toolbar.
|
void |
PDFViewerBean.openFile(PDFViewerBean viewerBean)
Initiates the file open process.
|
TextSelection |
IPDFPageView.selectTextInArea(Rectangle2D selectRect)
Selects the text in an area of the page.
|
TextSelection |
IPDFPageView.selectTextWithCursors(Point2D startCursor,
Point2D endCursor)
Selects the text in the page from the start cursor to the end cursor, in reading mode.
|