public class PDFPageNumbering extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PDFPageNumbering.PAGE_NUMBER_POSITION |
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_FONT_SIZE |
| Constructor and Description |
|---|
PDFPageNumbering(Blob inBlob) |
PDFPageNumbering(DocumentModel inDoc,
String inXPath) |
| Modifier and Type | Method and Description |
|---|---|
Blob |
addPageNumbers(int inStartAtPage,
int inStartAtNumber,
String inFontName,
float inFontSize,
String inHex255Color,
PDFPageNumbering.PAGE_NUMBER_POSITION inPosition)
Adds page numbers and returns a new Blob.
|
void |
setPassword(String password) |
public static float DEFAULT_FONT_SIZE
public PDFPageNumbering(Blob inBlob)
public PDFPageNumbering(DocumentModel inDoc, String inXPath)
public Blob addPageNumbers(int inStartAtPage, int inStartAtNumber, String inFontName, float inFontSize, String inHex255Color, PDFPageNumbering.PAGE_NUMBER_POSITION inPosition) throws NuxeoException
inStartAtPage and inStartAtNumber are set to 1 if they are passed as < 1.inStartAtPage is set to 1 if it is > number of pages.inFontName is set to "Helvetica" if "" or null.inFontSize is set to 16 if it is <= 0.inHex255Color is set to black if "", null or if its length is < 6. Expected format is
0xrrggbb, #rrggbb or just rrggbb.inPosition is set to BOTTOM_RIGHT if null.inStartAtPage - Number of the first page to be numbered.inStartAtNumber - Starting number for the page numbering.inFontName - Name of the font to be used in the numbering.inFontSize - Size of the font to be used in the numbering.inHex255Color - Color of the font to be used in the numbering.inPosition - Page positioning of the numbering.NuxeoExceptionpublic void setPassword(String password)
Copyright © 2016 Nuxeo SA. All rights reserved.