Uses of Class
com.aowagie.text.DocumentException
Packages that use DocumentException
Package
Description
-
Uses of DocumentException in com.aowagie.text
Subclasses of DocumentException in com.aowagie.textModifier and TypeClassDescriptionclass
Signals an attempt to create anElement
that hasn't got the right form.Methods in com.aowagie.text that throw DocumentExceptionModifier and TypeMethodDescriptionboolean
Adds anElement
to theDocument
.boolean
Signals that anElement
was added to theDocument
.boolean
Signals that anElement
was added to theDocument
.SimpleTable.createPdfPTable()
Creates a PdfPTable object based on this TableAttributes object.void
Image.makeMask()
Make thisImage
a mask.void
ImgWMF.readWMF
(PdfTemplate template) Reads the WMF into a template.void
Image.setImageMask
(Image mask) Sets the explicit masking.void
Table.setWidths
(int[] widths) Sets the widths of the different columns (percentages). -
Uses of DocumentException in com.aowagie.text.pdf
Subclasses of DocumentException in com.aowagie.text.pdfModifier and TypeClassDescription(package private) class
Signals that a bad PDF format has been used to construct aPdfObject
.(package private) class
Signals that an unspecified problem while constructing a PDF document.Methods in com.aowagie.text.pdf that throw DocumentExceptionModifier and TypeMethodDescriptionboolean
Signals that anElement
was added to theDocument
.private void
Adds an image to the document.(package private) PdfName
PdfWriter.addDirectImageSimple
(Image image) Use this method to adds an image to the document but not to the page resources.private PdfName
PdfWriter.addDirectImageSimple
(Image image, PdfIndirectReference fixedRef) Adds an image to the document but not to the page resources.(package private) void
PdfCopyFieldsImp.addDocument
(PdfReader reader) (package private) void
PdfCopyFieldsImp.addDocument
(PdfReader reader, List pagesToKeep) void
MultiColumnText.addElement
(Element element) Add an element to be rendered in a column.void
Adds anImage
to the page.private void
Adds anImage
to the page.void
Adds anImage
to the page.void
PdfContentByte.addImage
(Image image, float a, float b, float c, float d, float e, float f, boolean inlineImage) Adds anImage
to the page.void
Always throws an error.void
void
Type3Glyph.addImage
(Image image, float a, float b, float c, float d, float e, float f, boolean inlineImage) private void
PdfDocument.addPdfTable
(Table t) Adds a new table to the document.(package private) void
Adds aPdfPTable
to the document.(package private) void
Adds aPdfWriter
to thePdfDocument
.private float
PushbuttonField.calculateFontSize
(float w, float h) void
PdfSignatureAppearance.close
(PdfDictionary update) This is the last method to be called when using external signatures.void
PdfStamper.close()
Closes the document.void
Closes the document.static BaseFont
BaseFont.createFont()
Creates a new font.static BaseFont
BaseFont.createFont
(String name, String encoding, boolean embedded) Creates a new font.static BaseFont
BaseFont.createFont
(String name, String encoding, boolean embedded, boolean forceRead) Creates a new font.static BaseFont
BaseFont.createFont
(String name, String encoding, boolean embedded, boolean cached, byte[] ttfAfm, byte[] pfb) Creates a new font.static BaseFont
BaseFont.createFont
(String name, String encoding, boolean embedded, boolean cached, byte[] ttfAfm, byte[] pfb, boolean noThrow) Creates a new font.static BaseFont
BaseFont.createFont
(String name, String encoding, boolean embedded, boolean cached, byte[] ttfAfm, byte[] pfb, boolean noThrow, boolean forceRead) Creates a new font.static PdfStamper
PdfStamper.createSignature
(PdfReader reader, OutputStream os, char pdfVersion, File tempFile, boolean append) Applies a digital signature to a document, possibly as a new revision, making possible multiple signatures.static PdfStamper
PdfStamper.createSignature
(PdfReader reader, OutputStream os, char pdfVersion, File tempFile, boolean append, Calendar globalDate) Applies a digital signature to a document, possibly as a new revision, making possible multiple signatures.private void
TrueTypeFontSubSet.createTableDirectory()
void
AcroFields.decodeGenericDictionary
(PdfDictionary merged, BaseField tx) private void
PdfDocument.doFooter()
private void
PdfDocument.doHeader()
static String[]
BaseFont.enumerateTTCNames
(byte[] ttcArray) Enumerates the postscript font names present inside a True Type Collection.static String[]
BaseFont.enumerateTTCNames
(String ttcFile) Enumerates the postscript font names present inside a True Type Collection.(package private) void
TrueTypeFont.fillTables()
Reads the tables 'head', 'hhea', 'OS/2' and 'post' filling several variables.(package private) void
EnumerateTTC.findNames()
private void
TrueTypeFontSubSet.flatGlyphs()
private float
PdfDocument.flushLines()
Writes all the lines to the text-object.static Object[]
BaseFont.getAllFontNames
(String name, String encoding, byte[] ttfAfm) Gets all the names from the font.static String[][]
BaseFont.getAllNameEntries
(String name, String encoding, byte[] ttfAfm) Gets all the entries of the namestable from the font.(package private) String[][]
TrueTypeFont.getAllNames()
Extracts all the names of the names-Table(package private) PdfAppearance
AcroFields.getAppearance
(PdfDictionary merged, String text, String fieldName) PdfSignatureAppearance.getAppearance()
Gets the main appearance layer.PushbuttonField.getAppearance()
Gets the button appearance.TextField.getAppearance()
Get thePdfAppearance
of a text or combo field(package private) String
TrueTypeFont.getBaseFont()
Gets the Postscript font name.protected PdfFormField
TextField.getChoiceField
(boolean isList) TextField.getComboField()
Gets a new combo field.PushbuttonField.getField()
Gets the pushbutton field.static String[][]
BaseFont.getFullFontName
(String name, String encoding, byte[] ttfAfm) Gets the full name of the font.(package private) abstract PdfStream
BaseFont.getFullFontStream()
Returns a PdfStream object with the full font program (if possible).TrueTypeFont.getFullFontStream()
Returns a PdfStream object with the full font program.TrueTypeFontUnicode.getFullFontStream()
Returns a PdfStream object with the full font program.Type1Font.getFullFontStream()
If the embedded flag isfalse
or if the font is one of the 14 built in types, it returnsnull
, otherwise the font is read and output in a PdfStream object.static PdfWriter
PdfWriter.getInstance
(Document document, OutputStream os) Use this method to get an instance of thePdfWriter
.(package private) PdfAppearance
TextField.getListAppearance()
Get thePdfAppearance
of a list fieldTextField.getListField()
Gets a new list field.(package private) String[][]
TrueTypeFont.getNames
(int id) Extracts the names of the font in all the languages available.protected BaseFont
BaseField.getRealFont()
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.protected int
ColumnText.goComposite
(boolean simulate) private void
PdfDocument.initPage()
Initializes a page.void
AcroFields.mergeXfaData
(Node n) Merges an XML data structure into this form.private void
PdfDocument.newLine()
Adds the current line to the list of lines and also adds an empty line.private void
MultiColumnText.newPage()
void
MultiColumnText.nextColumn()
Moves the text insertion point to the beginning of the next column, issuing a page break if needed.void
PdfSignatureAppearance.preClose()
(package private) void
This is the first method to be called when using external signatures.void
This is the first method to be called when using external signatures.void
This is the first method to be called when using external signatures.void
This is the first method to be called when using external signatures.(package private) void
TrueTypeFont.process
(byte[] ttfAfm, boolean preload) Reads the font data.(package private) byte[]
TrueTypeFontSubSet.process()
Does the actual work of subsetting the font.private void
Type1Font.process
(RandomAccessFileOrArray rf) Reads the font metricsprivate void
TrueTypeFont.readBbox()
(package private) void
TrueTypeFont.readCMaps()
Reads the several maps from the table 'cmap'.protected void
TrueTypeFont.readGlyphWidths()
Reads the glyphs widths.private void
TrueTypeFontSubSet.readLoca()
boolean
AcroFields.regenerateField
(String name) Regenerates the field appearance.private void
PdfDocument.renderCells
(PdfDocument.RenderingContext ctx, List cells, boolean hasToFit) void
PdfWriter.setAdditionalAction
(PdfName actionType, PdfAction action) (package private) void
PdfStamper.setEncryption
(boolean strength, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.(package private) void
PdfStamper.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.(package private) void
PdfStamper.setEncryption
(int encryptionType, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.void
PdfStamper.setEncryption
(Certificate[] certs, int[] permissions, int encryptionType) Sets the certificate encryption options for this document.void
PdfWriter.setEncryption
(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) void
PdfWriter.setEncryption
(Certificate[] certs, int[] permissions, int encryptionType) boolean
Sets the field value.boolean
Sets the field value and the display string.void
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
(String name, String[] value) Sets different values in a list selection.void
PdfWriter.setPageAction
(PdfName actionType, PdfAction action) (package private) void
PdfDocument.setThumbnail
(Image image) void
PdfWriter.setThumbnail
(Image image) Use this method to set the thumbnail image for the current 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.float
MultiColumnText.write
(PdfContentByte canvas, PdfDocument document, float documentY) Write out the columns.(package private) abstract void
BaseFont.writeFont
(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) void
CJKFont.writeFont
(PdfWriter writer, PdfIndirectReference ref, Object[] params) (package private) void
DocumentFont.writeFont
(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) void
TrueTypeFont.writeFont
(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) void
TrueTypeFontUnicode.writeFont
(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) void
Type1Font.writeFont
(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) void
PdfDocument.writeLineToContent
(PdfLine line, PdfContentByte text, PdfContentByte graphics, Object[] currentValues, float ratio) Writes a text line to the document.Constructors in com.aowagie.text.pdf that throw DocumentExceptionModifierConstructorDescription(package private)
Creates a CJK font.(package private)
EnumerateTTC
(byte[] ttcArray) (package private)
EnumerateTTC
(String ttcFile) (package private)
PdfCopy
(Document document, OutputStream os, Calendar globalDate) Constructorprivate
PdfCopyFieldsImp
(OutputStream os, char pdfVersion, Calendar globalDate) (package private)
PdfCopyFieldsImp
(OutputStream os, Calendar globalDate) PdfStamper
(PdfReader reader, OutputStream os) Starts the process of adding extra content to an existing PDF document.private
PdfStamper
(PdfReader reader, OutputStream os, char pdfVersion, boolean append, Calendar globalDate) Starts the process of adding extra content to an existing PDF document, possibly as a new revision.PdfStamper
(PdfReader reader, OutputStream os, Calendar globalDate) Starts the process of adding extra content to an existing PDF document.(package private)
PdfStamperImp
(PdfReader reader, OutputStream os, char pdfVersion, boolean append, Calendar globalDate) Creates new PdfStamperImp.StreamFont
(byte[] contents, int[] lengths, int compressionLevel) Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.StreamFont
(byte[] contents, String subType, int compressionLevel) Generates the PDF stream for a font.(package private)
TrueTypeFont
(String ttFile, String enc, boolean emb, byte[] ttfAfm, boolean justNames, boolean forceRead) Creates a new TrueType font.(package private)
TrueTypeFontUnicode
(String ttFile, String enc, boolean emb, byte[] ttfAfm, boolean forceRead) Creates a new TrueType font addressed by Unicode characters.(package private)
Creates a new Type1 font. -
Uses of DocumentException in com.aowagie.text.pdf.codec.wmf
Methods in com.aowagie.text.pdf.codec.wmf that throw DocumentException -
Uses of DocumentException in com.aowagie.text.pdf.interfaces
Methods in com.aowagie.text.pdf.interfaces that throw DocumentExceptionModifier and TypeMethodDescriptionvoid
PdfEncryptionSettings.setEncryption
(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) Sets the encryption options for this document.void
PdfEncryptionSettings.setEncryption
(Certificate[] certs, int[] permissions, int encryptionType) Sets the certificate encryption options for this document.