Uses of Class
com.lowagie.text.DocumentException
Packages that use DocumentException
Package
Description
-
Uses of DocumentException in com.lowagie.text
Subclasses of DocumentException in com.lowagie.textModifier and TypeClassDescriptionclassSignals an attempt to create anElementthat hasn't got the right form.Methods in com.lowagie.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.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 TypeClassDescriptionclassSignals that a bad PDF format has been used to construct aPdfObject.classSignals that an unspecified problem while constructing a PDF document.Methods in com.lowagie.text.pdf that throw DocumentExceptionModifier and TypeMethodDescriptionbooleanSignals that anElementwas added to theDocument.protected voidAdds 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.voidPdfCopyFields.addDocument(PdfReader reader) Concatenates a PDF document.voidPdfCopyFields.addDocument(PdfReader reader, String ranges) Concatenates a PDF document selecting the pages to keep.voidPdfCopyFields.addDocument(PdfReader reader, List pagesToKeep) Concatenates a PDF document selecting the pages to keep.voidPdfCopyForms.addDocument(PdfReader reader) Concatenates a PDF document.voidPdfCopyForms.addDocument(PdfReader reader, String ranges) Concatenates a PDF document selecting the pages to keep.voidPdfCopyForms.addDocument(PdfReader reader, List pagesToKeep) Concatenates a PDF document selecting the pages to keep.voidMultiColumnText.addElement(Element element) Add an element to be rendered in a column.voidAdds anImageto the page.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) voidAdds aPdfWriterto thePdfDocument.voidPdfWriter.clearTextWrap()Use this method to clear text wrapping around images (if applicable).voidPdfSignatureAppearance.close(PdfDictionary update) This is the last method to be called when using external signatures.voidPdfStamper.close()Closes the document.voidPdfCopyForms.copyDocumentFields(PdfReader reader) Copies the form fields of this PDFDocument onto the PDF-Document which was addedstatic 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) Applies a digital signature to a document.static PdfStamperPdfStamper.createSignature(PdfReader reader, OutputStream os, char pdfVersion, File tempFile) Applies a digital signature to a document.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.voidAcroFields.decodeGenericDictionary(PdfDictionary merged, BaseField tx) protected voidPdfDocument.doFooter()protected voidPdfDocument.doHeader()static voidPdfEncryptor.encrypt(PdfReader reader, OutputStream os, boolean strength, String userPassword, String ownerPassword, int permissions) Entry point to encrypt a PDF document.static voidPdfEncryptor.encrypt(PdfReader reader, OutputStream os, boolean strength, String userPassword, String ownerPassword, int permissions, HashMap newInfo) Entry point to encrypt a PDF document.static voidPdfEncryptor.encrypt(PdfReader reader, OutputStream os, byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Entry point to encrypt a PDF document.static voidPdfEncryptor.encrypt(PdfReader reader, OutputStream os, byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits, HashMap newInfo) Entry point to encrypt a PDF document.static voidPdfEncryptor.encrypt(PdfReader reader, OutputStream os, int type, String userPassword, String ownerPassword, int permissions) Entry point to encrypt a PDF document.static voidPdfEncryptor.encrypt(PdfReader reader, OutputStream os, int type, String userPassword, String ownerPassword, int permissions, HashMap 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.protected 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.PdfSignatureAppearance.getAppearance()Gets the main appearance layer.PushbuttonField.getAppearance()Gets the button appearance.RadioCheckField.getAppearance(boolean isRadio, boolean on) Gets the field appearance.TextField.getAppearance()Get thePdfAppearanceof a text or combo fieldRadioCheckField.getCheckField()Gets the check field.protected PdfFormFieldTextField.getChoiceField(boolean isList) TextField.getComboField()Gets a new combo field.PushbuttonField.getField()Gets the pushbutton field.protected PdfFormFieldRadioCheckField.getField(boolean isRadio) Gets a radio or check field.static String[][]BaseFont.getFullFontName(String name, String encoding, byte[] ttfAfm) Gets the full name of the font.static PdfWriterPdfWriter.getInstance(Document document, OutputStream os) Use this method to get an instance of thePdfWriter.static PdfWriterPdfWriter.getInstance(Document document, OutputStream os, DocListener listener) Use this method to get an instance of thePdfWriter.TextField.getListField()Gets a new list field.RadioCheckField.getRadioField()Gets the radio field.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) protected voidPdfDocument.initPage()Initializes a page.voidAcroFields.mergeXfaData(Node n) Merges an XML data structure into this form.protected voidPdfDocument.newLine()Adds the current line to the list of lines and also adds an empty line.voidMultiColumnText.nextColumn()Moves the text insertion point to the beginning of the next column, issuing a page break if needed.voidPdfSignatureAppearance.preClose()This is the first method to be called when using external signatures.voidThis is the first method to be called when using external signatures.booleanAcroFields.regenerateField(String name) Regenerates the field appearance.protected voidPdfDocument.renderCells(PdfDocument.RenderingContext ctx, List cells, boolean hasToFit) intPdfWriter.reorderPages(int[] order) Use this method to reorder the pages in the document.voidPdfWriter.setAdditionalAction(PdfName actionType, PdfAction action) voidPdfCopyFields.setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.voidPdfCopyFields.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Sets the encryption options for this document.voidPdfCopyFields.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) voidPdfCopyFields.setEncryption(Certificate[] certs, int[] permissions, int encryptionType) voidPdfCopyForms.setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.voidPdfCopyForms.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Sets the encryption options for this document.voidPdfCopyForms.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) voidPdfCopyForms.setEncryption(Certificate[] certs, int[] permissions, int encryptionType) voidPdfStamper.setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document.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.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(boolean strength, String userPassword, String ownerPassword, int permissions) Deprecated.As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}.voidPdfWriter.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Deprecated.As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}.voidPdfWriter.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) voidPdfWriter.setEncryption(int encryptionType, String userPassword, String ownerPassword, int permissions) Deprecated.As of iText 2.0.3, replaced by (@link #setEncryption(byte[], byte[], int, int)}.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) voidPdfStamper.setThumbnail(Image image, int page) Sets the thumbnail image for a page.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.Constructors in com.lowagie.text.pdf that throw DocumentExceptionModifierConstructorDescriptionPdfCopy(Document document, OutputStream os) ConstructorCreates a new instance.PdfCopyFields(OutputStream os, char pdfVersion) Creates a new instance.Creates a new instance.PdfSmartCopy(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.protectedPdfStamperImp(PdfReader reader, OutputStream os, char pdfVersion, boolean append) Creates new PdfStamperImp.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 TypeMethodDescriptionvoidPdfDocumentActions.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.voidPdfEncryptionSettings.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.voidPdfPageActions.setPageAction(PdfName actionType, PdfAction action) Sets the open and close page additional action.