| Constructor and Description |
|---|
JsPdf(JsPdfSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
addImage(String imgData,
String imgType,
int x,
int y,
int width,
int height)
Adds an image to the document.
|
static JsPdf |
create(JsPdfSettings settings)
Factory method for JsPdf.
|
void |
save(String fileName)
Saves the document into a PDF file.
|
void |
text(String text,
int x,
int y)
Adds text to the document.
|
@JsConstructor public JsPdf(JsPdfSettings settings)
@JsOverlay public static final JsPdf create(JsPdfSettings settings)
settings - The settings for the new document's.public void text(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 imgData, String imgType, int x, int y, int width, int height)
imgData - 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 void save(String fileName)
fileName - The name for the generated file.Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.