public final class PdfDocument extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addImage(String urlData,
String imgType,
int x,
int y,
int width,
int height)
Adds an image to the document.
|
void |
addText(String text,
int x,
int y)
Adds text to the document.
|
static PdfDocument |
create(PdfExportPreferences settings)
Factory method that allows custom PDF document's settings.
|
PdfExportPreferences |
getSettings() |
public static PdfDocument create(PdfExportPreferences settings)
public void addText(String text, int x, int y)
text - The text to add.x - Coordinate (in units declared at inception of PDF document) against left edge of the page.y - Coordinate (in units declared at inception of PDF document) against upper edge of the page.public void addImage(String urlData, String imgType, int x, int y, int width, int height)
urlData - The url data for the image.x - Coordinate (in units declared at inception of PDF document) against left edge of the page.y - Coordinate (in units declared at inception of PDF document) against upper edge of the page.width - The image's width.height - The image's height.public PdfExportPreferences getSettings()
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.