Package | Description |
---|---|
com.itextpdf.text | |
com.itextpdf.text.api |
Interfaces for high level PDF objects.
|
com.itextpdf.text.html.simpleparser | |
com.itextpdf.text.pdf | |
com.itextpdf.text.pdf.codec.wmf | |
com.itextpdf.text.pdf.events | |
com.itextpdf.text.pdf.interfaces | |
com.itextpdf.text.pdf.security |
Modifier and Type | Class and Description |
---|---|
class |
BadElementException
Signals an attempt to create an
Element that hasn't got the right form. |
Modifier and Type | Method and Description |
---|---|
boolean |
DocWriter.add(Element element)
Signals that an
Element was added to the Document . |
boolean |
Document.add(Element element)
Adds an
Element to the Document . |
boolean |
ElementListener.add(Element element)
Signals that an
Element was added to the Document . |
void |
Image.makeMask()
Make this
Image a mask. |
void |
ImgWMF.readWMF(PdfTemplate template)
Reads the WMF into a template.
|
void |
Image.setImageMask(Image mask)
Sets the explicit masking.
|
Modifier and Type | Method and Description |
---|---|
void |
WriterOperation.write(PdfWriter writer,
Document doc)
Receive a writer and the document to do certain operations on them.
|
Modifier and Type | Method and Description |
---|---|
boolean |
HTMLWorker.add(Element element)
Deprecated.
|
void |
HTMLWorker.carriageReturn()
Deprecated.
Flushes the current paragraph, indicating that we're starting
a new block.
|
Image |
HTMLWorker.createImage(java.util.Map<java.lang.String,java.lang.String> attrs)
Deprecated.
Creates an Image object.
|
Image |
ElementFactory.createImage(java.lang.String src,
java.util.Map<java.lang.String,java.lang.String> attrs,
ChainedProperties chain,
DocListener document,
ImageProvider img_provider,
java.util.HashMap<java.lang.String,Image> img_store,
java.lang.String img_baseurl) |
void |
HTMLTagProcessor.endElement(HTMLWorker worker,
java.lang.String tag)
Deprecated.
Implement this class to tell the HTMLWorker what to do
when an close tag is encountered.
|
void |
HTMLWorker.processImage(Image img,
java.util.Map<java.lang.String,java.lang.String> attrs)
Deprecated.
Processes an Image.
|
void |
HTMLWorker.processList()
Deprecated.
Fetches the List from the Stack and adds it to
the TextElementArray on top of the Stack,
or to the Document if the Stack is empty.
|
void |
HTMLWorker.processListItem()
Deprecated.
Looks for the List object on the Stack,
and adds the ListItem to the List.
|
void |
HTMLWorker.processTable()
Deprecated.
Processes the Table.
|
void |
HTMLTagProcessor.startElement(HTMLWorker worker,
java.lang.String tag,
java.util.Map<java.lang.String,java.lang.String> attrs)
Deprecated.
Implement this class to tell the HTMLWorker what to do
when an open tag is encountered.
|
Modifier and Type | Class and Description |
---|---|
class |
BadPdfFormatException
Signals that a bad PDF format has been used to construct a
PdfObject . |
class |
PdfException
Signals that an unspecified problem while constructing a PDF document.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PdfDocument.add(Element element)
Signals that an
Element was added to the Document . |
protected void |
PdfDocument.add(Image image)
Adds an image to the document.
|
PdfName |
PdfWriter.addDirectImageSimple(Image image)
Use this method to adds an image to the document
but not to the page resources.
|
PdfName |
PdfWriter.addDirectImageSimple(Image image,
PdfIndirectReference fixedRef)
Adds an image to the document but not to the page resources.
|
void |
PdfCopyForms.addDocument(PdfReader reader)
Concatenates a PDF document.
|
void |
PdfCopyFields.addDocument(PdfReader reader)
Concatenates a PDF document.
|
void |
PdfCopyForms.addDocument(PdfReader reader,
java.util.List<java.lang.Integer> pagesToKeep)
Concatenates a PDF document selecting the pages to keep.
|
void |
PdfCopyFields.addDocument(PdfReader reader,
java.util.List<java.lang.Integer> pagesToKeep)
Concatenates a PDF document selecting the pages to keep.
|
void |
PdfCopyForms.addDocument(PdfReader reader,
java.lang.String ranges)
Concatenates a PDF document selecting the pages to keep.
|
void |
PdfCopyFields.addDocument(PdfReader reader,
java.lang.String ranges)
Concatenates a PDF document selecting the pages to keep.
|
void |
PdfContentByte.addImage(Image image)
Adds an
Image to the page. |
void |
PdfContentByte.addImage(Image image,
AffineTransform transform)
adds an image with the given matrix.
|
void |
PdfContentByte.addImage(Image image,
java.awt.geom.AffineTransform transform)
Deprecated.
use com.itextpdf.text.geom.AffineTransform as parameter
|
void |
PdfContentByte.addImage(Image image,
boolean inlineImage)
Adds an
Image to the page. |
void |
PdfPatternPainter.addImage(Image image,
float a,
float b,
float c,
float d,
float e,
float f) |
void |
PdfImportedPage.addImage(Image image,
float a,
float b,
float c,
float d,
float e,
float f)
Always throws an error.
|
void |
PdfContentByte.addImage(Image image,
float a,
float b,
float c,
float d,
float e,
float f)
Adds an
Image to the page. |
void |
PdfContentByte.addImage(Image image,
float a,
float b,
float c,
float d,
float e,
float f,
boolean inlineImage)
Adds an
Image to the page. |
void |
Type3Glyph.addImage(Image image,
float a,
float b,
float c,
float d,
float e,
float f,
boolean inlineImage) |
void |
PdfCopy.addPage(Rectangle rect,
int rotation)
Adds a blank page.
|
int |
PdfConcatenate.addPages(PdfReader reader)
Adds the pages from an existing PDF document.
|
void |
PdfDocument.addWriter(PdfWriter writer)
Adds a
PdfWriter to the PdfDocument . |
void |
PdfWriter.clearTextWrap()
Use this method to clear text wrapping around images (if applicable).
|
void |
PdfStamper.close()
Closes the document.
|
void |
PdfSignatureAppearance.close(PdfDictionary update)
This is the last method to be called when using external signatures.
|
void |
PdfCopyForms.copyDocumentFields(PdfReader reader)
Copies the form fields of this PDFDocument onto the PDF-Document which was added
|
static BaseFont |
BaseFont.createFont()
Creates a new font.
|
static BaseFont |
BaseFont.createFont(java.lang.String name,
java.lang.String encoding,
boolean embedded)
Creates a new font.
|
static BaseFont |
BaseFont.createFont(java.lang.String name,
java.lang.String encoding,
boolean embedded,
boolean forceRead)
Creates a new font.
|
static BaseFont |
BaseFont.createFont(java.lang.String name,
java.lang.String encoding,
boolean embedded,
boolean cached,
byte[] ttfAfm,
byte[] pfb)
Creates a new font.
|
static BaseFont |
BaseFont.createFont(java.lang.String name,
java.lang.String encoding,
boolean embedded,
boolean cached,
byte[] ttfAfm,
byte[] pfb,
boolean noThrow)
Creates a new font.
|
static BaseFont |
BaseFont.createFont(java.lang.String name,
java.lang.String encoding,
boolean embedded,
boolean cached,
byte[] ttfAfm,
byte[] pfb,
boolean noThrow,
boolean forceRead)
Creates a new font.
|
static PdfStamper |
PdfStamper.createSignature(PdfReader reader,
java.io.OutputStream os,
char pdfVersion)
Applies a digital signature to a document.
|
static PdfStamper |
PdfStamper.createSignature(PdfReader reader,
java.io.OutputStream os,
char pdfVersion,
java.io.File tempFile)
Applies a digital signature to a document.
|
static PdfStamper |
PdfStamper.createSignature(PdfReader reader,
java.io.OutputStream os,
char pdfVersion,
java.io.File tempFile,
boolean append)
Applies a digital signature to a document, possibly as a new revision, making
possible multiple signatures.
|
void |
AcroFields.decodeGenericDictionary(PdfDictionary merged,
BaseField tx) |
static void |
PdfEncryptor.encrypt(PdfReader reader,
java.io.OutputStream os,
boolean strength,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Entry point to encrypt a PDF document.
|
static void |
PdfEncryptor.encrypt(PdfReader reader,
java.io.OutputStream os,
boolean strength,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions,
java.util.HashMap<java.lang.String,java.lang.String> newInfo)
Entry point to encrypt a PDF document.
|
static void |
PdfEncryptor.encrypt(PdfReader reader,
java.io.OutputStream os,
byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits)
Entry point to encrypt a PDF document.
|
static void |
PdfEncryptor.encrypt(PdfReader reader,
java.io.OutputStream os,
byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits,
java.util.HashMap<java.lang.String,java.lang.String> newInfo)
Entry point to encrypt a PDF document.
|
static void |
PdfEncryptor.encrypt(PdfReader reader,
java.io.OutputStream os,
int type,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Entry point to encrypt a PDF document.
|
static void |
PdfEncryptor.encrypt(PdfReader reader,
java.io.OutputStream os,
int type,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions,
java.util.HashMap<java.lang.String,java.lang.String> newInfo)
Entry point to encrypt a PDF document.
|
static java.lang.String[] |
BaseFont.enumerateTTCNames(byte[] ttcArray)
Enumerates the postscript font names present inside a
True Type Collection.
|
static java.lang.String[] |
BaseFont.enumerateTTCNames(java.lang.String ttcFile)
Enumerates the postscript font names present inside a
True Type Collection.
|
protected float |
PdfDocument.flushLines()
Writes all the lines to the text-object.
|
static java.lang.Object[] |
BaseFont.getAllFontNames(java.lang.String name,
java.lang.String encoding,
byte[] ttfAfm)
Gets all the names from the font.
|
static java.lang.String[][] |
BaseFont.getAllNameEntries(java.lang.String name,
java.lang.String encoding,
byte[] ttfAfm)
Gets all the entries of the namestable from the font.
|
PdfAppearance |
PushbuttonField.getAppearance()
Gets the button appearance.
|
PdfAppearance |
TextField.getAppearance()
Get the
PdfAppearance of a text or combo field |
PdfTemplate |
PdfSignatureAppearance.getAppearance()
Gets the main appearance layer.
|
PdfAppearance |
RadioCheckField.getAppearance(boolean isRadio,
boolean on)
Gets the field appearance.
|
PdfFormField |
RadioCheckField.getCheckField()
Gets the check field.
|
protected PdfFormField |
TextField.getChoiceField(boolean isList) |
PdfFormField |
TextField.getComboField()
Gets a new combo field.
|
PdfFormField |
PushbuttonField.getField()
Gets the pushbutton field.
|
protected PdfFormField |
RadioCheckField.getField(boolean isRadio)
Gets a radio or check field.
|
static java.lang.String[][] |
BaseFont.getFullFontName(java.lang.String name,
java.lang.String encoding,
byte[] ttfAfm)
Gets the full name of the font.
|
static PdfWriter |
PdfWriter.getInstance(Document document,
java.io.OutputStream os)
Use this method to get an instance of the
PdfWriter . |
static PdfWriter |
PdfWriter.getInstance(Document document,
java.io.OutputStream os,
DocListener listener)
Use this method to get an instance of the
PdfWriter . |
PdfFormField |
TextField.getListField()
Gets a new list field.
|
PdfFormField |
RadioCheckField.getRadioField()
Gets the radio field.
|
protected BaseFont |
BaseField.getRealFont() |
PdfFormField |
TextField.getTextField()
Gets a new text field.
|
int |
ColumnText.go()
Outputs the lines to the document.
|
int |
ColumnText.go(boolean simulate)
Outputs the lines to the document.
|
int |
ColumnText.go(boolean simulate,
IAccessibleElement elementToGo) |
protected int |
ColumnText.goComposite(boolean simulate) |
protected void |
PdfDocument.initPage()
Initializes a page.
|
int |
FloatLayout.layout(PdfContentByte canvas,
boolean simulate) |
int |
PdfDiv.layout(PdfContentByte canvas,
boolean useAscender,
boolean simulate,
float llx,
float lly,
float urx,
float ury) |
void |
AcroFields.mergeXfaData(org.w3c.dom.Node n)
Merges an XML data structure into this form.
|
protected void |
PdfDocument.newLine()
Adds the current line to the list of lines and also adds an empty line.
|
void |
PdfSignatureAppearance.preClose(java.util.HashMap<PdfName,java.lang.Integer> exclusionSizes)
This is the first method to be called when using external signatures.
|
boolean |
AcroFields.regenerateField(java.lang.String name)
Regenerates the field appearance.
|
int |
PdfWriter.reorderPages(int[] order)
Use this method to reorder the pages in the document.
|
void |
PdfWriter.setAdditionalAction(PdfName actionType,
PdfAction action) |
void |
PdfStamper.setEncryption(boolean strength,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Sets the encryption options for this document.
|
void |
PdfCopyForms.setEncryption(boolean strength,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Sets the encryption options for this document.
|
void |
PdfWriter.setEncryption(boolean strength,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Deprecated.
As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}. Scheduled for removal at or after 2.2.0
|
void |
PdfCopyFields.setEncryption(boolean strength,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Sets the encryption options for this document.
|
void |
PdfStamper.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits)
Sets the encryption options for this document.
|
void |
PdfCopyForms.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits)
Sets the encryption options for this document.
|
void |
PdfWriter.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits)
Deprecated.
As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}. Scheduled for removal at or after 2.2.0
|
void |
PdfCopyFields.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
boolean strength128Bits)
Sets the encryption options for this document.
|
void |
PdfStamper.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int encryptionType)
Sets the encryption options for this document.
|
void |
PdfCopyForms.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int encryptionType) |
void |
PdfWriter.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int encryptionType) |
void |
PdfCopyFields.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int encryptionType) |
void |
PdfStamper.setEncryption(java.security.cert.Certificate[] certs,
int[] permissions,
int encryptionType)
Sets the certificate encryption options for this document.
|
void |
PdfCopyForms.setEncryption(java.security.cert.Certificate[] certs,
int[] permissions,
int encryptionType) |
void |
PdfWriter.setEncryption(java.security.cert.Certificate[] certs,
int[] permissions,
int encryptionType) |
void |
PdfCopyFields.setEncryption(java.security.cert.Certificate[] certs,
int[] permissions,
int encryptionType) |
void |
PdfStamper.setEncryption(int encryptionType,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Sets the encryption options for this document.
|
void |
PdfWriter.setEncryption(int encryptionType,
java.lang.String userPassword,
java.lang.String ownerPassword,
int permissions)
Deprecated.
As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}. Scheduled for removal at or after 2.2.0
|
boolean |
AcroFields.setField(java.lang.String name,
java.lang.String value)
Sets the field value.
|
boolean |
AcroFields.setField(java.lang.String name,
java.lang.String value,
java.lang.String display)
Sets the field value and the display string.
|
boolean |
AcroFields.setFieldRichValue(java.lang.String name,
java.lang.String richValue)
Sets the rich value for the given field.
|
void |
AcroFields.setFields(FdfReader fdf)
Sets the fields by FDF merging.
|
void |
AcroFields.setFields(XfdfReader xfdf)
Sets the fields by XFDF merging.
|
void |
PdfWriter.setInitialLeading(float leading)
Sets the initial leading for the PDF document.
|
boolean |
AcroFields.setListSelection(java.lang.String name,
java.lang.String[] value)
Sets different values in a list selection.
|
void |
PdfWriter.setPageAction(PdfName actionType,
PdfAction action) |
void |
PdfWriter.setThumbnail(Image image)
Use this method to set the thumbnail image for the current page.
|
void |
PdfStamper.setThumbnail(Image image,
int page)
Sets the thumbnail image for a page.
|
void |
PdfPTable.setTotalWidth(float[] columnWidth)
Sets the full width of the table from the absolute column width.
|
void |
PdfWriter.setUserunit(float userunit)
Use this method to set the user unit.
|
void |
PdfPTable.setWidthPercentage(float[] columnWidth,
Rectangle pageSize)
Sets the percentage width of the table from the absolute column width.
|
void |
PdfPTable.setWidths(float[] relativeWidths)
Sets the relative widths of the table.
|
void |
PdfPTable.setWidths(int[] relativeWidths)
Sets the relative widths of the table.
|
void |
TtfUnicodeWriter.writeFont(com.itextpdf.text.pdf.TrueTypeFontUnicode font,
PdfIndirectReference ref,
java.lang.Object[] params,
byte[] rotbits) |
Constructor and Description |
---|
PdfConcatenate(java.io.OutputStream os)
Creates an instance of the concatenation class.
|
PdfConcatenate(java.io.OutputStream os,
boolean smart)
Creates an instance of the concatenation class.
|
PdfCopy(Document document,
java.io.OutputStream os)
Constructor
|
PdfCopyFields(java.io.OutputStream os)
Creates a new instance.
|
PdfCopyFields(java.io.OutputStream os,
char pdfVersion)
Creates a new instance.
|
PdfCopyForms(java.io.OutputStream os)
Creates a new instance.
|
PdfSmartCopy(Document document,
java.io.OutputStream os)
Creates a PdfSmartCopy instance.
|
PdfStamper(PdfReader reader,
java.io.OutputStream os)
Starts the process of adding extra content to an existing PDF
document.
|
PdfStamper(PdfReader reader,
java.io.OutputStream os,
char pdfVersion)
Starts the process of adding extra content to an existing PDF
document.
|
PdfStamper(PdfReader reader,
java.io.OutputStream os,
char pdfVersion,
boolean append)
Starts the process of adding extra content to an existing PDF
document, possibly as a new revision.
|
Modifier and Type | Method and Description |
---|---|
void |
MetaDo.readAll() |
Constructor and Description |
---|
FieldPositioningEvents(PdfWriter writer,
PdfFormField parent,
java.lang.String text)
Creates a new event.
|
FieldPositioningEvents(PdfWriter writer,
java.lang.String text)
Creates a new event.
|
Modifier and Type | Method and Description |
---|---|
void |
PdfDocumentActions.setAdditionalAction(PdfName actionType,
PdfAction action)
Additional-actions defining the actions to be taken in
response to various trigger events affecting the document
as a whole.
|
void |
PdfEncryptionSettings.setEncryption(byte[] userPassword,
byte[] ownerPassword,
int permissions,
int encryptionType)
Sets the encryption options for this document.
|
void |
PdfEncryptionSettings.setEncryption(java.security.cert.Certificate[] certs,
int[] permissions,
int encryptionType)
Sets the certificate encryption options for this document.
|
void |
PdfPageActions.setPageAction(PdfName actionType,
PdfAction action)
Sets the open and close page additional action.
|
Modifier and Type | Method and Description |
---|---|
static void |
MakeSignature.signDeferred(PdfReader reader,
java.lang.String fieldName,
java.io.OutputStream outs,
ExternalSignatureContainer externalSignatureContainer)
Signs a PDF where space was already reserved.
|
static void |
MakeSignature.signDetached(PdfSignatureAppearance sap,
ExternalDigest externalDigest,
ExternalSignature externalSignature,
java.security.cert.Certificate[] chain,
java.util.Collection<CrlClient> crlList,
OcspClient ocspClient,
TSAClient tsaClient,
int estimatedSize,
MakeSignature.CryptoStandard sigtype)
Signs the document using the detached mode, CMS or CAdES equivalent.
|
static void |
MakeSignature.signExternalContainer(PdfSignatureAppearance sap,
ExternalSignatureContainer externalSignatureContainer,
int estimatedSize)
Sign the document using an external container, usually a PKCS7.
|
static void |
LtvTimestamp.timestamp(PdfSignatureAppearance sap,
TSAClient tsa,
java.lang.String signatureName)
Signs a document with a PAdES-LTV Timestamp.
|
Copyright © 2013. All Rights Reserved.