public class CitationsVisualizer
extends java.lang.Object
| Constructor and Description |
|---|
CitationsVisualizer() |
| Modifier and Type | Method and Description |
|---|---|
static PDDocument |
annotatePdfWithCitations(PDDocument document,
Document teiDoc,
java.util.List<java.lang.String> resolvedBibRefUrl)
Augment a PDF with bibliographical annotation, for bib.
|
static java.lang.String |
getJsonAnnotations(Document teiDoc,
java.util.List<java.lang.String> resolvedBibRefUrl)
Produce JSON annotations with PDF coordinates for web based PDF rendering.
|
static java.lang.String |
getJsonAnnotationsPerPage(Document teiDoc,
java.util.List<java.lang.String> resolvedBibRefUrl) |
public static PDDocument annotatePdfWithCitations(PDDocument document,
Document teiDoc,
java.util.List<java.lang.String> resolvedBibRefUrl)
throws java.io.IOException,
XPathException
document - PDDocument object resulting from the PDF parsing with PDFBoxteiDoc - the Document object resulting from the full document structuringresolvedBibRefUrl - the list of URL to be added to the bibliographical reference
annotations, if null the bib. ref. annotations are not associated to external URL.java.io.IOExceptionXPathExceptionpublic static java.lang.String getJsonAnnotations(Document teiDoc, java.util.List<java.lang.String> resolvedBibRefUrl) throws java.io.IOException, XPathException
teiDoc - the Document object resulting from the full document structuringresolvedBibRefUrl - the list of URL to be added to the bibliographical reference
annotations, if null the bib. ref. annotations are not associated to external URL.java.io.IOExceptionXPathExceptionpublic static java.lang.String getJsonAnnotationsPerPage(Document teiDoc, java.util.List<java.lang.String> resolvedBibRefUrl) throws java.io.IOException, XPathException
java.io.IOExceptionXPathException