public interface CitationDocumentService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateCitationVersion(Context context,
Bitstream bitstream) |
int |
drawStringWordWrap(org.apache.pdfbox.pdmodel.PDPage page,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
String text,
int startX,
int startY,
org.apache.pdfbox.pdmodel.font.PDFont pdfFont,
float fontSize) |
void |
drawTable(org.apache.pdfbox.pdmodel.PDPage page,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
float y,
float margin,
String[][] content,
org.apache.pdfbox.pdmodel.font.PDFont font,
int fontSize,
boolean cellBorders) |
String |
getAllMetadataSeparated(Item item,
String metadataKey) |
String |
getOwningCollection(Item item) |
String |
getOwningCommunity(Context context,
Item item) |
Boolean |
isCitationEnabledForBitstream(Bitstream bitstream,
Context context)
Repository policy can specify to have a custom citation cover/tail page to the document, which embeds metadata.
|
File |
makeCitedDocument(Context context,
Bitstream bitstream)
Creates a
cited document from the given bitstream of the given item.
|
Boolean isCitationEnabledForBitstream(Bitstream bitstream, Context context) throws SQLException
bitstream - SQLExceptionboolean canGenerateCitationVersion(Context context, Bitstream bitstream) throws SQLException
SQLExceptionFile makeCitedDocument(Context context, Bitstream bitstream) throws IOException, SQLException, AuthorizeException
The Process for adding a cover page is as follows:
bitstream - The source bitstream being cited. This must be a PDF.FileNotFoundExceptionSQLExceptionAuthorizeExceptionIOExceptionint drawStringWordWrap(org.apache.pdfbox.pdmodel.PDPage page,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
String text,
int startX,
int startY,
org.apache.pdfbox.pdmodel.font.PDFont pdfFont,
float fontSize)
throws IOException
IOExceptionvoid drawTable(org.apache.pdfbox.pdmodel.PDPage page,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
float y,
float margin,
String[][] content,
org.apache.pdfbox.pdmodel.font.PDFont font,
int fontSize,
boolean cellBorders)
throws IOException
page - contentStream - y - the y-coordinate of the first rowmargin - the padding on left and right of tablecontent - a 2d array containing the table dataIOExceptionCopyright © 2016 DuraSpace. All Rights Reserved.