public class XFDFAnnotationImpl extends AbstractXFDFAnnotationImpl
AbstractXFDFAnnotationImpl.supportedAnnotationNameParams
ASPOSE_ROTATION_0, ASPOSE_ROTATION_180, ASPOSE_ROTATION_270, ASPOSE_ROTATION_90, ENCODING_PREFIX, SIGNATURE_HEIGHT_OFFSET, TEXT_LINK_KEY, TILED_COMPATIBLE_EXTENSIONS, WORD_MAP_KEY
PDF_MIMETYPE
Constructor and Description |
---|
XFDFAnnotationImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildWordMapAndTextLinks(org.apache.pdfbox.pdmodel.PDDocument document,
int startPage,
int numPages,
java.util.List<java.util.Map<java.lang.String,java.util.List<TSGIndexEntry>>> wordMaps,
java.util.List<java.util.List<TSGInternalLink>> textLinks,
java.util.List<org.apache.pdfbox.pdmodel.PDPage> allPages)
Method to generate word maps and text links for the numPages pages in the given pdf starting at startPage.
|
byte[] |
getAttachedDocContent(java.lang.String ticket,
java.lang.String objectId,
long lastModified,
java.lang.String attachedDocName)
Returns content of an attached document for an object.
|
protected java.util.List<PDFAttachedDoc> |
getAttachedDocs(org.apache.pdfbox.pdmodel.PDDocument document) |
protected java.util.List<org.apache.pdfbox.pdmodel.PDPage> |
getPagesFromDocument(org.apache.pdfbox.pdmodel.PDDocument document)
Get a List of PDPages from the PDDocument object.
|
checkinAnnotations, createVideoScreenshot, deleteAnnotations, getAnnotatedPDF, getAnnotations, getAnnotations, getAttachedDocs, getBookmarks, getDocumentInfo, getEmbeddedAnnotations, getExcelAnnotationSummary, getExternalAnnotationUrl, getFileAttachmentAnnotationContent, getInternalLinks, getPageDimensions, getPageDimensions, getPDFAnnotationSummary, getPdfMetadata, getProcessedPages, getRedactionSuggestions, getSingleAnnotation, getVideoScreenshots, getWordMapsAndTextLinks, getXFDFAndFDFAnnotations, ingestDocForExternalReview, isAnnotated, saveAnnotations, saveSignatures
protected java.util.List<org.apache.pdfbox.pdmodel.PDPage> getPagesFromDocument(org.apache.pdfbox.pdmodel.PDDocument document)
AbstractXFDFAnnotationImpl
getPagesFromDocument
in class AbstractXFDFAnnotationImpl
document
- a PDDocument representing the pdf documentprotected void buildWordMapAndTextLinks(org.apache.pdfbox.pdmodel.PDDocument document, int startPage, int numPages, java.util.List<java.util.Map<java.lang.String,java.util.List<TSGIndexEntry>>> wordMaps, java.util.List<java.util.List<TSGInternalLink>> textLinks, java.util.List<org.apache.pdfbox.pdmodel.PDPage> allPages) throws java.io.IOException
AbstractXFDFAnnotationImpl
buildWordMapAndTextLinks
in class AbstractXFDFAnnotationImpl
document
- a PDDocument representing the pdf documentstartPage
- number of the first page to be generatednumPages
- total number of pages to be generatedwordMaps
- List of word maps for the pdf page rangetextLinks
- List of text links for the pdf page rangeallPages
- all the PDPage objects for the pdf page rangejava.io.IOException
protected java.util.List<PDFAttachedDoc> getAttachedDocs(org.apache.pdfbox.pdmodel.PDDocument document) throws java.io.IOException
getAttachedDocs
in class AbstractXFDFAnnotationImpl
java.io.IOException
public byte[] getAttachedDocContent(java.lang.String ticket, java.lang.String objectId, long lastModified, java.lang.String attachedDocName)
IAnnotation
getAttachedDocContent
in interface IAnnotation
getAttachedDocContent
in class AbstractXFDFAnnotationImpl
objectId
- The objectId of the PDF object to get attached document info for.lastModified
- The timestamp this object was last modified (used for caching purposes).attachedDocName
- The name of the attached document.