public class PDFPageHelper extends Object
SSpan of a salt document.
It uses the following algorithm:
AnnisConstants and build a mapping from these intervalls to the sspan.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PAGE_NUMBER_ANNOTATION_NAME |
static String |
MAPPING_PAGE_KEY |
static String |
PAGE_NO_VALID_NUMBER |
static String |
PAGE_NUMBER_SEPERATOR |
| Constructor and Description |
|---|
PDFPageHelper(VisualizerInput visInput) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMostLeftAndMostRightPageAnno()
Creates a String (eg.
|
String |
getPageFromAnnotation(org.corpus_tools.salt.core.SNode node)
Returns the value of page annotation for a node.
|
String |
getPDFPageAnnotationName()
Gets the pdf page annotation name.
|
public static final String MAPPING_PAGE_KEY
public static final String DEFAULT_PAGE_NUMBER_ANNOTATION_NAME
public static final String PAGE_NUMBER_SEPERATOR
public static final String PAGE_NO_VALID_NUMBER
public PDFPageHelper(VisualizerInput visInput)
public String getMostLeftAndMostRightPageAnno()
The page annotation is detected with getPageFromAnnotation(SNode)
PAGE_NUMBER_SEPERATOR. If there is no end page, or exactly one page
annotation, only a String with one number is returned.public String getPageFromAnnotation(org.corpus_tools.salt.core.SNode node)
DEFAULT_PAGE_NUMBER_ANNOTATION_NAMEpublic String getPDFPageAnnotationName()
VisualizerInput.mappings.Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.