Uses of Class
com.lowagie.text.DocumentException
Packages that use DocumentException
Package
Description
-
Uses of DocumentException in com.lowagie.rups.model
Methods in com.lowagie.rups.model that throw DocumentExceptionModifier and TypeMethodDescriptionprotected void
PdfFile.readFile
(RandomAccessFileOrArray pdf) Does the actual reading of the file into PdfReader and PDFFile.Constructors in com.lowagie.rups.model that throw DocumentException -
Uses of DocumentException in com.lowagie.text
Subclasses of DocumentException in com.lowagie.textModifier and TypeClassDescriptionclass
Signals an attempt to create anElement
that hasn't got the right form.Methods in com.lowagie.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 aPdfTable
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.lowagie.text.html
Methods in com.lowagie.text.html that throw DocumentException -
Uses of DocumentException in com.lowagie.text.html.simpleparser
Methods in com.lowagie.text.html.simpleparser that throw DocumentException -
Uses of DocumentException in com.lowagie.text.pdf
Subclasses of DocumentException in com.lowagie.text.pdfModifier and TypeClassDescriptionclass
Signals that a bad PDF format has been used to construct aPdfObject
.class
Signals that an unspecified problem while constructing a PDF document.Methods in com.lowagie.text.pdf that throw DocumentExceptionModifier and TypeMethodDescriptionboolean
Signals that anElement
was added to theDocument
.protected void
Adds an image to the document.PdfWriter.addDirectImageSimple
(Image image) Use this method to adds an image to the document but not to the page resources.PdfWriter.addDirectImageSimple
(Image image, PdfIndirectReference fixedRef) Adds an image to the document but not to the page resources.void
PdfCopyFields.addDocument
(PdfReader reader) Concatenates a PDF document.void
PdfCopyFields.addDocument
(PdfReader reader, String ranges) Concatenates a PDF document selecting the pages to keep.void
PdfCopyFields.addDocument
(PdfReader reader, List<Integer> pagesToKeep) Concatenates a PDF document selecting the pages to keep.(package private) void
PdfCopyFieldsImp.addDocument
(PdfReader reader) (package private) void
PdfCopyFieldsImp.addDocument
(PdfReader reader, List<Integer> pagesToKeep) void
PdfCopyForms.addDocument
(PdfReader reader) Concatenates a PDF document.void
PdfCopyForms.addDocument
(PdfReader reader, String ranges) Concatenates a PDF document selecting the pages to keep.void
PdfCopyForms.addDocument
(PdfReader reader, List<Integer> pagesToKeep) Concatenates a PDF document selecting the pages to keep.void
MultiColumnText.addElement
(Element element) Add an element to be rendered in a column.void
Adds anImage
to the page.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.void
Adds aPdfWriter
to thePdfDocument
.private float
PushbuttonField.calculateFontSize
(float w, float h) void
PdfWriter.clearTextWrap()
Use this method to clear text wrapping around images (if applicable).void
PdfSignatureAppearance.close
(PdfDictionary update) This is the last method to be called when using external signatures.void
PdfStamper.close()
Closes the document.void
PdfCopyForms.copyDocumentFields
(PdfReader reader) Copies the form fields of this PDFDocument onto the PDF-Document which was addedvoid
PdfCopyFormsImp.copyDocumentFields
(PdfReader reader) This method feeds in the source documentstatic 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) Applies a digital signature to a document.static PdfStamper
PdfStamper.createSignature
(PdfReader reader, OutputStream os, char pdfVersion, File tempFile) Applies a digital signature to a document.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.protected void
TrueTypeFontSubSet.createTableDirectory()
void
AcroFields.decodeGenericDictionary
(PdfDictionary merged, BaseField tx) protected void
PdfDocument.doFooter()
protected void
PdfDocument.doHeader()
static void
PdfEncryptor.encrypt
(PdfReader reader, OutputStream os, boolean strength, String userPassword, String ownerPassword, int permissions) Entry point to encrypt a PDF document.static void
PdfEncryptor.encrypt
(PdfReader reader, OutputStream os, boolean strength, String userPassword, String ownerPassword, int permissions, Map<String, String> newInfo) Entry point to encrypt a PDF document.static void
PdfEncryptor.encrypt
(PdfReader reader, OutputStream os, byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Entry point to encrypt a PDF document.static void
PdfEncryptor.encrypt
(PdfReader reader, OutputStream os, byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits, Map<String, String> newInfo) Entry point to encrypt a PDF document.static void
PdfEncryptor.encrypt
(PdfReader reader, OutputStream os, int type, String userPassword, String ownerPassword, int permissions) Entry point to encrypt a PDF document.static void
PdfEncryptor.encrypt
(PdfReader reader, OutputStream os, int type, String userPassword, String ownerPassword, int permissions, Map<String, String> newInfo) Entry point to encrypt a PDF document.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()
protected void
TrueTypeFontSubSet.flatGlyphs()
protected 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[] values, String fieldName) (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.protected PdfFormField
RadioCheckField.getField
(boolean isKid) Gets a radio or check field.RadioCheckField.getFullField()
Gets the full parent field (There are no kids) This is the case for non-autofill fields and non-radiobutton fieldsstatic 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
.static PdfWriter
PdfWriter.getInstance
(Document document, OutputStream os, DocListener listener) Use this method to get an instance of thePdfWriter
.RadioCheckField.getKidField()
Gets the child field.(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) protected void
PdfDocument.initPage()
Initializes a page.void
AcroFields.mergeXfaData
(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.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()
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.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'.(package private) void
TrueTypeFontUnicode.readCMaps()
protected void
TrueTypeFont.readGlyphWidths()
Reads the glyphs widths.protected void
TrueTypeFontSubSet.readLoca()
boolean
AcroFields.regenerateField
(String name) Regenerates the field appearance.void
PdfStamperImp.removeEncryption()
Removes the encryption from the document (and also inherently the permissions)protected void
PdfDocument.renderCells
(PdfDocument.RenderingContext ctx, List cells, boolean hasToFit) (package private) int
PdfPages.reorderPages
(int[] order) int
PdfWriter.reorderPages
(int[] order) Use this method to reorder the pages in the document.void
PdfWriter.setAdditionalAction
(PdfName actionType, PdfAction action) void
PdfCopyFields.setEncryption
(boolean strength, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.void
PdfCopyFields.setEncryption
(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Sets the encryption options for this document.void
PdfCopyFields.setEncryption
(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) void
PdfCopyFields.setEncryption
(Certificate[] certs, int[] permissions, int encryptionType) void
PdfCopyForms.setEncryption
(boolean strength, String userPassword, String ownerPassword, int permissions) 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
PdfCopyForms.setEncryption
(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) void
PdfCopyForms.setEncryption
(Certificate[] certs, int[] permissions, int encryptionType) void
PdfStamper.setEncryption
(boolean strength, String userPassword, 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
PdfStamper.setEncryption
(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) Sets the encryption options for this document.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
(FieldReader fieldReader) Allows merging the fields by a field reader.void
AcroFields.setFields
(XfdfReader fieldReader) Allows merging the fields by a field reader.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
PdfStamper.setThumbnail
(Image image, int page) Sets the thumbnail image for a page.(package private) void
PdfStamperImp.setThumbnail
(Image image, int page) 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
Type3Font.writeFont
(PdfWriter writer, PdfIndirectReference ref, Object[] params) (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.lowagie.text.pdf that throw DocumentExceptionModifierConstructorDescription(package private)
Creates a CJK font.(package private)
EnumerateTTC
(byte[] ttcArray) (package private)
EnumerateTTC
(String ttcFile) PdfCopy
(Document document, OutputStream os) ConstructorCreates a new instance.PdfCopyFields
(OutputStream os, char pdfVersion) Creates a new instance.(package private)
(package private)
PdfCopyFieldsImp
(OutputStream os, char pdfVersion) Creates a new instance.(package private)
This sets up the output documentPdfSmartCopy
(Document document, OutputStream os) Creates a PdfSmartCopy instance.PdfStamper
(PdfReader reader, OutputStream os) Starts the process of adding extra content to an existing PDF document.PdfStamper
(PdfReader reader, OutputStream os, char pdfVersion) Starts the process of adding extra content to an existing PDF document.PdfStamper
(PdfReader reader, OutputStream os, char pdfVersion, boolean append) Starts the process of adding extra content to an existing PDF document, possibly as a new revision.(package private)
PdfStamperImp
(PdfReader reader, OutputStream os, char pdfVersion, boolean append) 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.UnembedFontPdfSmartCopy
(Document document, OutputStream os) -
Uses of DocumentException in com.lowagie.text.pdf.codec.wmf
Methods in com.lowagie.text.pdf.codec.wmf that throw DocumentException -
Uses of DocumentException in com.lowagie.text.pdf.events
Constructors in com.lowagie.text.pdf.events that throw DocumentExceptionModifierConstructorDescriptionFieldPositioningEvents
(PdfWriter writer, PdfFormField parent, String text) Creates a new event.FieldPositioningEvents
(PdfWriter writer, String text) Creates a new event. -
Uses of DocumentException in com.lowagie.text.pdf.interfaces
Methods in com.lowagie.text.pdf.interfaces that throw DocumentExceptionModifier and TypeMethodDescriptionvoid
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
(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. -
Uses of DocumentException in com.lowagie.toolbox.plugins.watermarker
Methods in com.lowagie.toolbox.plugins.watermarker that throw DocumentExceptionModifier and TypeMethodDescriptionbyte[]
Watermarker.write()
Write the watermark to the pdf given in entry.(package private) void
Writer.write()
Does the magic, with all parameters already set and valid.Constructors in com.lowagie.toolbox.plugins.watermarker that throw DocumentExceptionModifierConstructorDescriptionWatermarker
(byte[] input, String text, int fontsize, float opacity) The main constructor with all mandatory arguments.