public class Page extends Object
| Constructor and Description |
|---|
Page(PDFDocument document,
int pageWidth,
int pageHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(String text,
android.graphics.Rect rect)
Adds text annotation to PDF document
|
void |
addImage(int translationX,
int translationY,
int width,
int height,
int rotationDegrees,
XObjectImage xImage)
Adds image stream to the page.
|
void |
addLine(int fromLeft,
int fromBottom,
int toLeft,
int toBottom) |
void |
addRawContent(String rawContent) |
void |
addRectangle(int fromLeft,
int fromBottom,
int toLeft,
int toBottom) |
void |
addText(int leftPosition,
int topPositionFromBottom,
int fontSize,
String text) |
void |
addText(int leftPosition,
int topPositionFromBottom,
int fontSize,
String text,
String transformation) |
IndirectObject |
getIndirectObject() |
void |
render(String pagesIndirectReference) |
void |
setFont(String subType,
String baseFont) |
void |
setFont(String subType,
String baseFont,
String encoding) |
public Page(PDFDocument document, int pageWidth, int pageHeight)
public IndirectObject getIndirectObject()
public void render(String pagesIndirectReference)
public void addRawContent(String rawContent)
public void addText(int leftPosition,
int topPositionFromBottom,
int fontSize,
String text)
public void addText(int leftPosition,
int topPositionFromBottom,
int fontSize,
String text,
String transformation)
public void addLine(int fromLeft,
int fromBottom,
int toLeft,
int toBottom)
public void addRectangle(int fromLeft,
int fromBottom,
int toLeft,
int toBottom)
public void addImage(int translationX,
int translationY,
int width,
int height,
int rotationDegrees,
XObjectImage xImage)
translationX - X translation from the lefttranslationY - Y translation from the bottomwidth - width of displayable areaheight - height of displayable arearotationDegrees - rotation in degrees (rotation performed using center of the document as a pivot point)xImage - public void addAnnotation(String text, android.graphics.Rect rect)
text - Annotation contentrect - coordinates of clickable area to open popup with annotationCopyright © 2016. All rights reserved.