Package | Description |
---|---|
com.lowagie.text | |
com.lowagie.text.pdf | |
com.lowagie.text.pdf.events | |
com.lowagie.text.pdf.internal |
Modifier and Type | Method and Description |
---|---|
static Image |
Image.getInstance(PdfWriter writer,
Image awtImage,
float quality)
Gets an instance of a Image from a java.awt.Image.
|
Modifier and Type | Class and Description |
---|---|
class |
PdfCopy
Make copies of PDF documents.
|
class |
PdfSmartCopy
PdfSmartCopy has the same functionality as PdfCopy,
but when resources (such as fonts, images,...) are
encountered, a reference to these resources is saved
in a cache, so that they can be reused.
|
class |
UnembedFontPdfSmartCopy
Makes a copy of a PDF, unembedding all embedded fonts.
|
Modifier and Type | Field and Description |
---|---|
protected PdfWriter |
PdfStream.writer |
protected PdfWriter |
PdfShadingPattern.writer |
protected PdfWriter |
PdfShading.writer |
protected PdfWriter |
PdfOutline.writer |
protected PdfWriter |
PdfFunction.writer |
protected PdfWriter |
PdfFileSpecification.writer |
protected PdfWriter |
PdfDocument.writer
The
PdfWriter . |
protected PdfWriter |
PdfContentByte.writer
This is the writer
|
protected PdfWriter |
PdfAnnotation.writer |
protected PdfWriter |
BaseField.writer |
Modifier and Type | Method and Description |
---|---|
static PdfWriter |
PdfWriter.getInstance(Document document,
OutputStream os)
Use this method to get an instance of the
PdfWriter . |
static PdfWriter |
PdfWriter.getInstance(Document document,
OutputStream os,
DocListener listener)
Use this method to get an instance of the
PdfWriter . |
PdfWriter |
PdfContentByte.getPdfWriter()
Gets the
PdfWriter in use by this object. |
PdfWriter |
PdfStructureTreeRoot.getWriter()
Gets the writer.
|
PdfWriter |
PdfStamper.getWriter()
Gets the underlying PdfWriter.
|
PdfWriter |
PdfCopyForms.getWriter()
Gets the underlying PdfWriter.
|
PdfWriter |
PdfCopyFields.getWriter()
Gets the underlying PdfWriter.
|
PdfWriter |
BaseField.getWriter()
Getter for property writer.
|
Modifier and Type | Method and Description |
---|---|
void |
PdfDocument.addWriter(PdfWriter writer)
Adds a
PdfWriter to the PdfDocument . |
PdfAnnotation |
PdfAnnotation.PdfImportedLink.createAnnotation(PdfWriter writer) |
static PdfAppearance |
PdfAppearance.createAppearance(PdfWriter writer,
float width,
float height)
Creates a new appearance to be used with form fields.
|
protected static PdfFormField |
PdfFormField.createButton(PdfWriter writer,
int flags) |
static PdfFormField |
PdfFormField.createCheckBox(PdfWriter writer) |
protected static PdfFormField |
PdfFormField.createChoice(PdfWriter writer,
int flags,
PdfArray options,
int topIndex) |
static PdfFormField |
PdfFormField.createCombo(PdfWriter writer,
boolean edit,
String[][] options,
int topIndex) |
static PdfFormField |
PdfFormField.createCombo(PdfWriter writer,
boolean edit,
String[] options,
int topIndex) |
static PdfFormField |
PdfFormField.createEmpty(PdfWriter writer) |
static PdfAnnotation |
PdfAnnotation.createFileAttachment(PdfWriter writer,
Rectangle rect,
String contents,
byte[] fileStore,
String file,
String fileDisplay)
Creates a file attachment annotation.
|
static PdfAnnotation |
PdfAnnotation.createFileAttachment(PdfWriter writer,
Rectangle rect,
String contents,
PdfFileSpecification fs)
Creates a file attachment annotation
|
static PdfAnnotation |
PdfAnnotation.createFreeText(PdfWriter writer,
Rectangle rect,
String contents,
PdfContentByte defaultAppearance)
Add some free text to the document.
|
static PdfAnnotation |
PdfAnnotation.createInk(PdfWriter writer,
Rectangle rect,
String contents,
float[][] inkList) |
static PdfAnnotation |
PdfAnnotation.createLine(PdfWriter writer,
Rectangle rect,
String contents,
float x1,
float y1,
float x2,
float y2)
Adds a line to the document.
|
protected static PdfAnnotation |
PdfAnnotation.createLink(PdfWriter writer,
Rectangle rect,
PdfName highlight)
Creates a link.
|
static PdfAnnotation |
PdfAnnotation.createLink(PdfWriter writer,
Rectangle rect,
PdfName highlight,
int page,
PdfDestination dest)
Creates an Annotation with a PdfDestination.
|
static PdfAnnotation |
PdfAnnotation.createLink(PdfWriter writer,
Rectangle rect,
PdfName highlight,
PdfAction action)
Creates an Annotation with an Action.
|
static PdfAnnotation |
PdfAnnotation.createLink(PdfWriter writer,
Rectangle rect,
PdfName highlight,
String namedDestination)
Creates an Annotation with an local destination.
|
static PdfFormField |
PdfFormField.createList(PdfWriter writer,
String[][] options,
int topIndex) |
static PdfFormField |
PdfFormField.createList(PdfWriter writer,
String[] options,
int topIndex) |
static PdfAnnotation |
PdfAnnotation.createMarkup(PdfWriter writer,
Rectangle rect,
String contents,
int type,
float[] quadPoints) |
static PdfAnnotation |
PdfAnnotation.createPopup(PdfWriter writer,
Rectangle rect,
String contents,
boolean open)
Adds a popup to your document.
|
static PdfFormField |
PdfFormField.createPushButton(PdfWriter writer) |
static PdfFormField |
PdfFormField.createRadioButton(PdfWriter writer,
boolean noToggleToOff) |
static PdfAnnotation |
PdfAnnotation.createScreen(PdfWriter writer,
Rectangle rect,
String clipTitle,
PdfFileSpecification fs,
String mimeType,
boolean playOnDisplay)
Creates a screen PdfAnnotation
|
static PdfFormField |
PdfFormField.createSignature(PdfWriter writer) |
static PdfAnnotation |
PdfAnnotation.createSquareCircle(PdfWriter writer,
Rectangle rect,
String contents,
boolean square)
Adds a circle or a square that shows a tooltip when you pass over it.
|
static PdfAnnotation |
PdfAnnotation.createStamp(PdfWriter writer,
Rectangle rect,
String contents,
String name)
Adds a Stamp to your document.
|
static PdfTemplate |
PdfTemplate.createTemplate(PdfWriter writer,
float width,
float height)
Creates a new template.
|
static PdfAnnotation |
PdfAnnotation.createText(PdfWriter writer,
Rectangle rect,
String title,
String contents,
boolean open,
String icon) |
static PdfFormField |
PdfFormField.createTextField(PdfWriter writer,
boolean multiline,
boolean password,
int maxLen) |
static PdfLayer |
PdfLayer.createTitle(String title,
PdfWriter writer)
Creates a title layer.
|
static PdfFileSpecification |
PdfFileSpecification.fileEmbedded(PdfWriter writer,
String filePath,
String fileDisplay,
byte[] fileStore)
Creates a file specification with the file embedded.
|
static PdfFileSpecification |
PdfFileSpecification.fileEmbedded(PdfWriter writer,
String filePath,
String fileDisplay,
byte[] fileStore,
boolean compress)
Creates a file specification with the file embedded.
|
static PdfFileSpecification |
PdfFileSpecification.fileEmbedded(PdfWriter writer,
String filePath,
String fileDisplay,
byte[] fileStore,
boolean compress,
String mimeType,
PdfDictionary fileParameter)
Creates a file specification with the file embedded.
|
static PdfFileSpecification |
PdfFileSpecification.fileEmbedded(PdfWriter writer,
String filePath,
String fileDisplay,
byte[] fileStore,
int compressionLevel)
Creates a file specification with the file embedded.
|
static PdfFileSpecification |
PdfFileSpecification.fileEmbedded(PdfWriter writer,
String filePath,
String fileDisplay,
byte[] fileStore,
String mimeType,
PdfDictionary fileParameter,
int compressionLevel)
Creates a file specification with the file embedded.
|
static PdfFileSpecification |
PdfFileSpecification.fileExtern(PdfWriter writer,
String filePath)
Creates a file specification for an external file.
|
protected com.lowagie.text.pdf.PdfReaderInstance |
PdfReader.getPdfReaderInstance(PdfWriter writer) |
protected PdfObject |
PdfSpotColor.getSpotObject(PdfWriter writer) |
static PdfAction |
PdfAction.gotoLocalPage(int page,
PdfDestination dest,
PdfWriter writer)
Creates a GoTo action to an internal page.
|
static Object[] |
SimpleBookmark.iterateOutlines(PdfWriter writer,
PdfIndirectReference parent,
List kids,
boolean namedAsNames) |
static PdfAction |
PdfAction.javaScript(String code,
PdfWriter writer)
Creates a JavaScript action.
|
static PdfAction |
PdfAction.javaScript(String code,
PdfWriter writer,
boolean unicode)
Creates a JavaScript action.
|
void |
PdfPageEventHelper.onChapter(PdfWriter writer,
Document document,
float paragraphPosition,
Paragraph title)
Called when a Chapter is written.
|
void |
PdfPageEvent.onChapter(PdfWriter writer,
Document document,
float paragraphPosition,
Paragraph title)
Called when a Chapter is written.
|
void |
PdfPageEventHelper.onChapterEnd(PdfWriter writer,
Document document,
float position)
Called when the end of a Chapter is reached.
|
void |
PdfPageEvent.onChapterEnd(PdfWriter writer,
Document document,
float paragraphPosition)
Called when the end of a Chapter is reached.
|
void |
PdfPageEventHelper.onCloseDocument(PdfWriter writer,
Document document)
Called when the document is closed.
|
void |
PdfPageEvent.onCloseDocument(PdfWriter writer,
Document document)
Called when the document is closed.
|
void |
PdfPageEventHelper.onEndPage(PdfWriter writer,
Document document)
Called when a page is finished, just before being written to the document.
|
void |
PdfPageEvent.onEndPage(PdfWriter writer,
Document document)
Called when a page is finished, just before being written to the document.
|
void |
PdfPageEventHelper.onGenericTag(PdfWriter writer,
Document document,
Rectangle rect,
String text)
Called when a
Chunk with a generic tag is written. |
void |
PdfPageEvent.onGenericTag(PdfWriter writer,
Document document,
Rectangle rect,
String text)
Called when a
Chunk with a generic tag is written. |
void |
PdfPageEventHelper.onOpenDocument(PdfWriter writer,
Document document)
Called when the document is opened.
|
void |
PdfPageEvent.onOpenDocument(PdfWriter writer,
Document document)
Called when the document is opened.
|
void |
PdfPageEventHelper.onParagraph(PdfWriter writer,
Document document,
float paragraphPosition)
Called when a Paragraph is written.
|
void |
PdfPageEvent.onParagraph(PdfWriter writer,
Document document,
float paragraphPosition)
Called when a Paragraph is written.
|
void |
PdfPageEventHelper.onParagraphEnd(PdfWriter writer,
Document document,
float paragraphPosition)
Called when a Paragraph is written.
|
void |
PdfPageEvent.onParagraphEnd(PdfWriter writer,
Document document,
float paragraphPosition)
Called when a Paragraph is written.
|
void |
PdfPageEventHelper.onSection(PdfWriter writer,
Document document,
float paragraphPosition,
int depth,
Paragraph title)
Called when a Section is written.
|
void |
PdfPageEvent.onSection(PdfWriter writer,
Document document,
float paragraphPosition,
int depth,
Paragraph title)
Called when a Section is written.
|
void |
PdfPageEventHelper.onSectionEnd(PdfWriter writer,
Document document,
float position)
Called when the end of a Section is reached.
|
void |
PdfPageEvent.onSectionEnd(PdfWriter writer,
Document document,
float paragraphPosition)
Called when the end of a Section is reached.
|
void |
PdfPageEventHelper.onStartPage(PdfWriter writer,
Document document)
Called when a page is initialized.
|
void |
PdfPageEvent.onStartPage(PdfWriter writer,
Document document)
Called when a page is initialized.
|
static PdfDictionary |
SimpleNamedDestination.outputNamedDestinationAsNames(HashMap names,
PdfWriter writer) |
static PdfDictionary |
SimpleNamedDestination.outputNamedDestinationAsStrings(Map<String,String> names,
PdfWriter writer) |
void |
BaseField.setWriter(PdfWriter writer)
Setter for property writer.
|
void |
XfaForm.setXfa(PdfWriter writer)
Sets the XFA key from the instance data.
|
static void |
XfaForm.setXfa(XfaForm form,
PdfReader reader,
PdfWriter writer)
Sets the XFA key from a byte array.
|
static PdfShading |
PdfShading.simpleAxial(PdfWriter writer,
float x0,
float y0,
float x1,
float y1,
Color startColor,
Color endColor) |
static PdfShading |
PdfShading.simpleAxial(PdfWriter writer,
float x0,
float y0,
float x1,
float y1,
Color startColor,
Color endColor,
boolean extendStart,
boolean extendEnd) |
static PdfShading |
PdfShading.simpleRadial(PdfWriter writer,
float x0,
float y0,
float r0,
float x1,
float y1,
float r1,
Color startColor,
Color endColor) |
static PdfShading |
PdfShading.simpleRadial(PdfWriter writer,
float x0,
float y0,
float r0,
float x1,
float y1,
float r1,
Color startColor,
Color endColor,
boolean extendStart,
boolean extendEnd) |
protected void |
PdfStream.superToPdf(PdfWriter writer,
OutputStream os) |
byte[] |
PdfContentByte.toPdf(PdfWriter writer)
Returns the PDF representation of this
PdfContentByte -object. |
void |
PRStream.toPdf(PdfWriter writer,
OutputStream os) |
void |
PRIndirectReference.toPdf(PdfWriter writer,
OutputStream os) |
void |
PdfString.toPdf(PdfWriter writer,
OutputStream os)
Writes the PDF representation of this
PdfString as an array
of byte to the specified OutputStream . |
void |
PdfStream.toPdf(PdfWriter writer,
OutputStream os) |
void |
PdfOutline.toPdf(PdfWriter writer,
OutputStream os)
Returns the PDF representation of this
PdfOutline . |
void |
PdfObject.toPdf(PdfWriter writer,
OutputStream os)
Writes the PDF representation of this
PdfObject as an
array of byte s to the writer. |
void |
PdfLiteral.toPdf(PdfWriter writer,
OutputStream os) |
void |
PdfEFStream.toPdf(PdfWriter writer,
OutputStream os) |
void |
PdfDictionary.toPdf(PdfWriter writer,
OutputStream os)
Writes the PDF representation of this
PdfDictionary as an
array of byte to the given OutputStream . |
void |
PdfDashPattern.toPdf(PdfWriter writer,
OutputStream os)
Returns the PDF representation of this
PdfArray . |
void |
PdfArray.toPdf(PdfWriter writer,
OutputStream os)
Writes the PDF representation of this
PdfArray as an array
of byte to the specified OutputStream . |
static PdfFunction |
PdfFunction.type0(PdfWriter writer,
float[] domain,
float[] range,
int[] size,
int bitsPerSample,
int order,
float[] encode,
float[] decode,
byte[] stream) |
static PdfShading |
PdfShading.type1(PdfWriter writer,
Color colorSpace,
float[] domain,
float[] tMatrix,
PdfFunction function) |
static PdfShading |
PdfShading.type2(PdfWriter writer,
Color colorSpace,
float[] coords,
float[] domain,
PdfFunction function,
boolean[] extend) |
static PdfFunction |
PdfFunction.type2(PdfWriter writer,
float[] domain,
float[] range,
float[] c0,
float[] c1,
float n) |
static PdfShading |
PdfShading.type3(PdfWriter writer,
Color colorSpace,
float[] coords,
float[] domain,
PdfFunction function,
boolean[] extend) |
static PdfFunction |
PdfFunction.type3(PdfWriter writer,
float[] domain,
float[] range,
PdfFunction[] functions,
float[] bounds,
float[] encode) |
static PdfFunction |
PdfFunction.type4(PdfWriter writer,
float[] domain,
float[] range,
String postscript) |
static PdfFileSpecification |
PdfFileSpecification.url(PdfWriter writer,
String url)
Creates a file specification of type URL.
|
static PdfDictionary |
PdfNameTree.writeTree(HashMap<String,? extends PdfObject> items,
PdfWriter writer)
Writes a name tree to a PdfWriter.
|
static PdfDictionary |
PdfNumberTree.writeTree(Map<Integer,? extends PdfObject> items,
PdfWriter writer)
Creates a number tree.
|
static PdfDictionary |
PdfNameTree.writeTree(Map<String,? extends PdfObject> items,
PdfWriter writer)
Writes a name tree to a PdfWriter.
|
Constructor and Description |
---|
BaseField(PdfWriter writer,
Rectangle box,
String fieldName)
Creates a new
TextField . |
PdfAcroForm(PdfWriter writer)
Creates new PdfAcroForm
|
PdfAnnotation(PdfWriter writer,
float llx,
float lly,
float urx,
float ury,
PdfAction action)
Constructs a new
PdfAnnotation of subtype link (Action). |
PdfAnnotation(PdfWriter writer,
float llx,
float lly,
float urx,
float ury,
PdfString title,
PdfString content)
Constructs a new
PdfAnnotation of subtype text. |
PdfAnnotation(PdfWriter writer,
Rectangle rect) |
PdfContentByte(PdfWriter wr)
Constructs a new
PdfContentByte -object. |
PdfEFStream(InputStream in,
PdfWriter writer)
Creates a Stream object using an InputStream and a PdfWriter object
|
PdfFormField(PdfWriter writer)
Creates new PdfFormField
|
PdfFormField(PdfWriter writer,
float llx,
float lly,
float urx,
float ury,
PdfAction action)
Constructs a new
PdfAnnotation of subtype link (Action). |
PdfFunction(PdfWriter writer)
Creates new PdfFunction
|
PdfLayer(String name,
PdfWriter writer)
Creates a new layer.
|
PdfLayerMembership(PdfWriter writer)
Creates a new, empty, membership layer.
|
PdfPSXObject(PdfWriter wr)
Constructs a PSXObject
|
PdfShading(PdfWriter writer)
Creates new PdfShading
|
PdfStream(InputStream inputStream,
PdfWriter writer)
Creates an efficient stream.
|
PushbuttonField(PdfWriter writer,
Rectangle box,
String fieldName)
Creates a new instance of PushbuttonField
|
RadioCheckField(PdfWriter writer,
Rectangle box,
String fieldName,
String onValue)
Creates a new instance of RadioCheckField
|
TextField(PdfWriter writer,
Rectangle box,
String fieldName)
Creates a new
TextField . |
Type3Font(PdfWriter writer,
boolean colorized)
Creates a Type3 font.
|
Type3Font(PdfWriter writer,
char[] chars,
boolean colorized)
Creates a Type3 font.
|
Modifier and Type | Field and Description |
---|---|
protected PdfWriter |
FieldPositioningEvents.fieldWriter
The PdfWriter to use when a field has to added in a cell event.
|
Modifier and Type | Method and Description |
---|---|
void |
PdfPageEventForwarder.onChapter(PdfWriter writer,
Document document,
float paragraphPosition,
Paragraph title)
Called when a Chapter is written.
|
void |
PdfPageEventForwarder.onChapterEnd(PdfWriter writer,
Document document,
float position)
Called when the end of a Chapter is reached.
|
void |
PdfPageEventForwarder.onCloseDocument(PdfWriter writer,
Document document)
Called when the document is closed.
|
void |
PdfPageEventForwarder.onEndPage(PdfWriter writer,
Document document)
Called when a page is finished, just before being written to the
document.
|
void |
PdfPageEventForwarder.onGenericTag(PdfWriter writer,
Document document,
Rectangle rect,
String text)
Called when a
Chunk with a generic tag is written. |
void |
IndexEvents.onGenericTag(PdfWriter writer,
Document document,
Rectangle rect,
String text)
All the text that is passed to this event, gets registered in the indexentry.
|
void |
FieldPositioningEvents.onGenericTag(PdfWriter writer,
Document document,
Rectangle rect,
String text) |
void |
PdfPageEventForwarder.onOpenDocument(PdfWriter writer,
Document document)
Called when the document is opened.
|
void |
PdfPageEventForwarder.onParagraph(PdfWriter writer,
Document document,
float paragraphPosition)
Called when a Paragraph is written.
|
void |
PdfPageEventForwarder.onParagraphEnd(PdfWriter writer,
Document document,
float paragraphPosition)
Called when a Paragraph is written.
|
void |
PdfPageEventForwarder.onSection(PdfWriter writer,
Document document,
float paragraphPosition,
int depth,
Paragraph title)
Called when a Section is written.
|
void |
PdfPageEventForwarder.onSectionEnd(PdfWriter writer,
Document document,
float position)
Called when the end of a Section is reached.
|
void |
PdfPageEventForwarder.onStartPage(PdfWriter writer,
Document document)
Called when a page is initialized.
|
Constructor and Description |
---|
FieldPositioningEvents(PdfWriter writer,
PdfFormField field)
Creates a new event.
|
FieldPositioningEvents(PdfWriter writer,
PdfFormField parent,
String text)
Creates a new event.
|
FieldPositioningEvents(PdfWriter writer,
String text)
Creates a new event.
|
Modifier and Type | Method and Description |
---|---|
static void |
PdfXConformanceImp.checkPDFXConformance(PdfWriter writer,
int key,
Object obj1)
Business logic that checks if a certain object is in conformance with PDF/X.
|
static PdfAnnotation |
PdfAnnotationsImp.convertAnnotation(PdfWriter writer,
Annotation annot,
Rectangle defaultRect) |
PdfArray |
PdfAnnotationsImp.rotateAnnotations(PdfWriter writer,
Rectangle pageSize) |
Constructor and Description |
---|
PdfAnnotationsImp(PdfWriter writer) |
Copyright © 2020. All rights reserved.