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 TypeClassDescriptionclassSignals an attempt to create anElementthat hasn't got the right form.Methods in com.aowagie.text that throw DocumentExceptionModifier and TypeMethodDescriptionbooleanAdds anElementto theDocument.booleanSignals that anElementwas added to theDocument.booleanSignals that anElementwas added to theDocument.SimpleTable.createPdfPTable()Creates a PdfPTable object based on this TableAttributes object.voidImage.makeMask()Make thisImagea mask.voidImgWMF.readWMF(PdfTemplate template) Reads the WMF into a template.voidImage.setImageMask(Image mask) Sets the explicit masking.voidTable.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) classSignals that a bad PDF format has been used to construct aPdfObject.(package private) classSignals that an unspecified problem while constructing a PDF document.Methods in com.aowagie.text.pdf that throw DocumentExceptionModifier and TypeMethodDescriptionbooleanSignals that anElementwas added to theDocument.private voidAdds an image to the document.(package private) PdfNamePdfWriter.addDirectImageSimple(Image image) Use this method to adds an image to the document but not to the page resources.private PdfNamePdfWriter.addDirectImageSimple(Image image, PdfIndirectReference fixedRef) Adds an image to the document but not to the page resources.(package private) voidPdfCopyFieldsImp.addDocument(PdfReader reader) (package private) voidPdfCopyFieldsImp.addDocument(PdfReader reader, List pagesToKeep) voidMultiColumnText.addElement(Element element) Add an element to be rendered in a column.voidAdds anImageto the page.private voidAdds anImageto the page.voidAdds anImageto the page.voidPdfContentByte.addImage(Image image, float a, float b, float c, float d, float e, float f, boolean inlineImage) Adds anImageto the page.voidAlways throws an error.voidvoidType3Glyph.addImage(Image image, float a, float b, float c, float d, float e, float f, boolean inlineImage) private voidPdfDocument.addPdfTable(Table t) Adds a new table to the document.(package private) voidAdds aPdfPTableto the document.(package private) voidAdds aPdfWriterto thePdfDocument.private floatPushbuttonField.calculateFontSize(float w, float h) voidPdfSignatureAppearance.close(PdfDictionary update) This is the last method to be called when using external signatures.voidPdfStamper.close()Closes the document.voidCloses the document.static BaseFontBaseFont.createFont()Creates a new font.static BaseFontBaseFont.createFont(String name, String encoding, boolean embedded) Creates a new font.static BaseFontBaseFont.createFont(String name, String encoding, boolean embedded, boolean forceRead) Creates a new font.static BaseFontBaseFont.createFont(String name, String encoding, boolean embedded, boolean cached, byte[] ttfAfm, byte[] pfb) Creates a new font.static BaseFontBaseFont.createFont(String name, String encoding, boolean embedded, boolean cached, byte[] ttfAfm, byte[] pfb, boolean noThrow) Creates a new font.static BaseFontBaseFont.createFont(String name, String encoding, boolean embedded, boolean cached, byte[] ttfAfm, byte[] pfb, boolean noThrow, boolean forceRead) Creates a new font.static PdfStamperPdfStamper.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 PdfStamperPdfStamper.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 voidTrueTypeFontSubSet.createTableDirectory()voidAcroFields.decodeGenericDictionary(PdfDictionary merged, BaseField tx) private voidPdfDocument.doFooter()private voidPdfDocument.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) voidTrueTypeFont.fillTables()Reads the tables 'head', 'hhea', 'OS/2' and 'post' filling several variables.(package private) voidEnumerateTTC.findNames()private voidTrueTypeFontSubSet.flatGlyphs()private floatPdfDocument.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) PdfAppearanceAcroFields.getAppearance(PdfDictionary merged, String text, String fieldName) PdfSignatureAppearance.getAppearance()Gets the main appearance layer.PushbuttonField.getAppearance()Gets the button appearance.TextField.getAppearance()Get thePdfAppearanceof a text or combo field(package private) StringTrueTypeFont.getBaseFont()Gets the Postscript font name.protected PdfFormFieldTextField.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 PdfStreamBaseFont.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 isfalseor 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 PdfWriterPdfWriter.getInstance(Document document, OutputStream os) Use this method to get an instance of thePdfWriter.(package private) PdfAppearanceTextField.getListAppearance()Get thePdfAppearanceof 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 BaseFontBaseField.getRealFont()TextField.getTextField()Gets a new text field.intColumnText.go()Outputs the lines to the document.intColumnText.go(boolean simulate) Outputs the lines to the document.protected intColumnText.goComposite(boolean simulate) private voidPdfDocument.initPage()Initializes a page.voidAcroFields.mergeXfaData(Node n) Merges an XML data structure into this form.private voidPdfDocument.newLine()Adds the current line to the list of lines and also adds an empty line.private voidMultiColumnText.newPage()voidMultiColumnText.nextColumn()Moves the text insertion point to the beginning of the next column, issuing a page break if needed.voidPdfSignatureAppearance.preClose()(package private) voidThis is the first method to be called when using external signatures.voidThis is the first method to be called when using external signatures.voidThis is the first method to be called when using external signatures.voidThis is the first method to be called when using external signatures.(package private) voidTrueTypeFont.process(byte[] ttfAfm, boolean preload) Reads the font data.(package private) byte[]TrueTypeFontSubSet.process()Does the actual work of subsetting the font.private voidType1Font.process(RandomAccessFileOrArray rf) Reads the font metricsprivate voidTrueTypeFont.readBbox()(package private) voidTrueTypeFont.readCMaps()Reads the several maps from the table 'cmap'.protected voidTrueTypeFont.readGlyphWidths()Reads the glyphs widths.private voidTrueTypeFontSubSet.readLoca()booleanAcroFields.regenerateField(String name) Regenerates the field appearance.private voidPdfDocument.renderCells(PdfDocument.RenderingContext ctx, List cells, boolean hasToFit) voidPdfWriter.setAdditionalAction(PdfName actionType, PdfAction action) (package private) voidPdfStamper.setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.(package private) voidPdfStamper.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Sets the encryption options for this document.voidPdfStamper.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) Sets the encryption options for this document.(package private) voidPdfStamper.setEncryption(int encryptionType, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.voidPdfStamper.setEncryption(Certificate[] certs, int[] permissions, int encryptionType) Sets the certificate encryption options for this document.voidPdfWriter.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) voidPdfWriter.setEncryption(Certificate[] certs, int[] permissions, int encryptionType) booleanSets the field value.booleanSets the field value and the display string.voidSets the fields by FDF merging.voidAcroFields.setFields(XfdfReader xfdf) Sets the fields by XFDF merging.voidPdfWriter.setInitialLeading(float leading) Sets the initial leading for the PDF document.booleanAcroFields.setListSelection(String name, String[] value) Sets different values in a list selection.voidPdfWriter.setPageAction(PdfName actionType, PdfAction action) (package private) voidPdfDocument.setThumbnail(Image image) voidPdfWriter.setThumbnail(Image image) Use this method to set the thumbnail image for the current page.voidPdfPTable.setTotalWidth(float[] columnWidth) Sets the full width of the table from the absolute column width.voidPdfWriter.setUserunit(float userunit) Use this method to set the user unit.voidPdfPTable.setWidthPercentage(float[] columnWidth, Rectangle pageSize) Sets the percentage width of the table from the absolute column width.voidPdfPTable.setWidths(float[] relativeWidths) Sets the relative widths of the table.voidPdfPTable.setWidths(int[] relativeWidths) Sets the relative widths of the table.floatMultiColumnText.write(PdfContentByte canvas, PdfDocument document, float documentY) Write out the columns.(package private) abstract voidBaseFont.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) voidCJKFont.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) (package private) voidDocumentFont.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) voidTrueTypeFont.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) voidTrueTypeFontUnicode.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) voidType1Font.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) voidPdfDocument.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) ConstructorprivatePdfCopyFieldsImp(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.privatePdfStamper(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 TypeMethodDescriptionvoidPdfEncryptionSettings.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) Sets the encryption options for this document.voidPdfEncryptionSettings.setEncryption(Certificate[] certs, int[] permissions, int encryptionType) Sets the certificate encryption options for this document.