| java.lang.Object | |
| ↳ | com.pspdfkit.document.sharing.SharingOptions |
Known Direct Subclasses
|
Options for document processing during the sharing process.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
SharingOptions(PdfProcessorTask.AnnotationProcessingMode annotationProcessingMode)
Constructs options for sharing document with all pages and default document name.
| |||||||||||
|
SharingOptions(PdfProcessorTask.AnnotationProcessingMode annotationProcessingMode, List<Range> pages)
Constructs options for sharing document with default document name.
| |||||||||||
|
SharingOptions(String documentName)
Constructs options for sharing document with all annotations and pages.
| |||||||||||
|
SharingOptions(PdfProcessorTask.AnnotationProcessingMode annotationProcessingMode, List<Range> pages, String documentName)
Constructs options for sharing document.
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
SharingOptions(SharingOptions options)
Copies sharing options to this instance.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean | equals(Object obj) | ||||||||||
| PdfProcessorTask.AnnotationProcessingMode |
getAnnotationProcessingMode()
Returns annotation processing mode that describes what user wants to do with shared document annotations.
| ||||||||||
| String |
getDocumentName()
Returns name of the document that should be used while sharing.
| ||||||||||
| Set<Integer> |
getPagesToRemove(int documentPagesCount)
Retrieve set of pages that need to be removed by
PdfProcessor before sharing. | ||||||||||
| PdfProcessorTask |
getProcessorTask(PdfDocument document)
Converts sharing options to
PdfProcessorTask usable for processing document via PdfProcessor. | ||||||||||
| int | hashCode() | ||||||||||
| static List<Range> |
parsePageRange(String rangeString, int documentPagesCount)
Parse page ranges strings.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs options for sharing document with all pages and default document name.
| annotationProcessingMode | Describes how annotations will be processed by PdfProcessor before sharing.
|
|---|
Constructs options for sharing document with default document name.
| annotationProcessingMode | Describes how annotations will be processed by PdfProcessor before sharing. |
|---|---|
| pages | Range of pages for sharing. |
Constructs options for sharing document with all annotations and pages.
| documentName | Name of the document that will be sued while sharing. |
|---|
Constructs options for sharing document.
| annotationProcessingMode | Describes how annotations will be processed by PdfProcessor before sharing. |
|---|---|
| pages | Range of pages for sharing. |
| documentName | Name of the document that will be sued while sharing. |
Copies sharing options to this instance.
| options | Sharing options to be copied into this instance. |
|---|
Returns annotation processing mode that describes what user wants to do with shared document annotations.
Returns name of the document that should be used while sharing.
Retrieve set of pages that need to be removed by PdfProcessor before sharing.
| documentPagesCount | Number of pages in the document. |
|---|
Converts sharing options to PdfProcessorTask usable for processing document via PdfProcessor.
| document | Document on which to run processing. |
|---|
null if no processing is required.
Parse page ranges strings.
| rangeString | String with page range specification (e.g "1-5,8,11-13"). Page indexes are are 1-based. |
|---|---|
| documentPagesCount | Number of pages in the document. |