Uses of Class
com.itextpdf.text.DocumentException
Packages that use DocumentException
Package
Description
Interfaces for high level PDF objects.
-
Uses of DocumentException in com.itextpdf.testutils
Methods in com.itextpdf.testutils that throw DocumentExceptionModifier and TypeMethodDescriptionCompareTool.compare(String outPdf, String cmpPdf, String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas) private StringCompareTool.compare(String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas) private StringCompareTool.compare(String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas, List<Integer> equalPages) CompareTool.compareByContent(String outPdf, String cmpPdf, String outPath, String differenceImagePrefix) CompareTool.compareByContent(String outPdf, String cmpPdf, String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas) protected StringCompareTool.compareByContent(String outPath, String differenceImagePrefix, Map<Integer, List<Rectangle>> ignoredAreas) -
Uses of DocumentException in com.itextpdf.text
Subclasses of DocumentException in com.itextpdf.textModifier and TypeClassDescriptionclassSignals an attempt to create anElementthat hasn't got the right form.Methods in com.itextpdf.text that throw DocumentExceptionModifier and TypeMethodDescriptionbooleanAdds anElementto theDocument.booleanSignals that anElementwas added to theDocument.booleanSignals that anElementwas added to theDocument.protected BaseFontFontFactoryImp.getBaseFont(String fontname, String encoding, boolean embedded, boolean cached) voidImage.makeMask()Make thisImagea mask.voidImgWMF.readWMF(PdfTemplate template) Reads the WMF into a template.voidImage.setImageMask(Image mask) Sets the explicit masking. -
Uses of DocumentException in com.itextpdf.text.api
Methods in com.itextpdf.text.api that throw DocumentException -
Uses of DocumentException in com.itextpdf.text.html.simpleparser
Methods in com.itextpdf.text.html.simpleparser that throw DocumentExceptionModifier and TypeMethodDescriptionbooleanDeprecated.voidHTMLWorker.carriageReturn()Deprecated.Flushes the current paragraph, indicating that we're starting a new block.ElementFactory.createImage(String src, Map<String, String> attrs, ChainedProperties chain, DocListener document, ImageProvider img_provider, HashMap<String, Image> img_store, String img_baseurl) Deprecated.HTMLWorker.createImage(Map<String, String> attrs) Deprecated.Creates an Image object.voidHTMLTagProcessor.endElement(HTMLWorker worker, String tag) Deprecated.Implement this class to tell the HTMLWorker what to do when an close tag is encountered.voidHTMLWorker.processImage(Image img, Map<String, String> attrs) Deprecated.Processes an Image.voidHTMLWorker.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.voidHTMLWorker.processListItem()Deprecated.Looks for the List object on the Stack, and adds the ListItem to the List.voidHTMLWorker.processTable()Deprecated.Processes the Table.voidHTMLTagProcessor.startElement(HTMLWorker worker, String tag, Map<String, String> attrs) Deprecated.Implement this class to tell the HTMLWorker what to do when an open tag is encountered. -
Uses of DocumentException in com.itextpdf.text.pdf
Subclasses of DocumentException in com.itextpdf.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.itextpdf.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.private voidvoidPdfACopy.addDocument(PdfReader reader) voidPdfCopy.addDocument(PdfReader reader) voidPdfCopy.addDocument(PdfReader reader, List<Integer> pagesToKeep) voidPdfCopyFields.addDocument(PdfReader reader) Deprecated.Concatenates a PDF document.voidPdfCopyFields.addDocument(PdfReader reader, String ranges) Deprecated.Concatenates a PDF document selecting the pages to keep.voidPdfCopyFields.addDocument(PdfReader reader, List<Integer> pagesToKeep) Deprecated.Concatenates a PDF document selecting the pages to keep.(package private) voidPdfCopyFieldsImp.addDocument(PdfReader reader) Deprecated.(package private) voidPdfCopyFieldsImp.addDocument(PdfReader reader, List<Integer> pagesToKeep) Deprecated.voidPdfCopyForms.addDocument(PdfReader reader) Deprecated.Concatenates a PDF document.voidPdfCopyForms.addDocument(PdfReader reader, String ranges) Deprecated.Concatenates a PDF document selecting the pages to keep.voidPdfCopyForms.addDocument(PdfReader reader, List<Integer> pagesToKeep) Deprecated.Concatenates a PDF document selecting the pages to keep.voidAdds anImageto the page.voidAdds anImageto the page.voidAdds anImageto the page.voidPdfContentByte.addImage(Image image, double a, double b, double c, double d, double e, double f, boolean inlineImage) Adds anImageto the page.protected voidPdfContentByte.addImage(Image image, double a, double b, double c, double d, double e, double f, boolean inlineImage, boolean isMCBlockOpened) Adds 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.voidPdfContentByte.addImage(Image image, AffineTransform transform) adds an image with the given matrix.voidPdfContentByte.addImage(Image image, AffineTransform transform) Deprecated.use com.itextpdf.text.geom.AffineTransform as parametervoidAlways throws an error.voidvoidType3Glyph.addImage(Image image, float a, float b, float c, float d, float e, float f, boolean inlineImage) voidAdds a blank page.intAdds the pages from an existing PDF document.(package private) voidAdds aPdfPTableto the document.voidAdds aPdfWriterto thePdfDocument.private floatPushbuttonField.calculateFontSize(float w, float h) 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.voidXmlSignatureAppearance.close()Close PdfStampervoidPdfCopy.copyDocumentFields(PdfReader reader) Copy document fields to a destination document.voidPdfCopyForms.copyDocumentFields(PdfReader reader) Deprecated.Copies the form fields of this PDFDocument onto the PDF-Document which was addedvoidPdfCopyFormsImp.copyDocumentFields(PdfReader reader) Deprecated.This method feeds in the source documentstatic 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 PdfAStamperPdfAStamper.createSignature(PdfReader reader, OutputStream os, char pdfVersion, PdfAConformanceLevel conformanceLevel) Applies a digital signature to a document.static PdfAStamperPdfAStamper.createSignature(PdfReader reader, OutputStream os, char pdfVersion, File tempFile, boolean append, PdfAConformanceLevel conformanceLevel) Applies a digital signature to a document, possibly as a new revision, making possible multiple signatures.static PdfAStamperPdfAStamper.createSignature(PdfReader reader, OutputStream os, char pdfVersion, File tempFile, PdfAConformanceLevel conformanceLevel) Applies a digital signature to a document.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.protected voidTrueTypeFontSubSet.createTableDirectory()static PdfStamperPdfStamper.createXmlSignature(PdfReader reader, OutputStream os) voidAcroFields.decodeGenericDictionary(PdfDictionary merged, BaseField tx) 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<String, String> 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<String, String> 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<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) voidTrueTypeFont.fillTables()Reads the tables 'head', 'hhea', 'OS/2', 'post' and 'maxp' filling several variables.(package private) voidEnumerateTTC.findNames()protected voidTrueTypeFontSubSet.flatGlyphs()private intFloatLayout.floatingLayout(List<Element> floatingElements, boolean simulate) private voidPdfDocument.flushFloatingElements()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.(package private) String[][]TrueTypeFont.getAllNames()Extracts all the names of the names-Table(package private) PdfAppearanceAcroFields.getAppearance(PdfDictionary merged, String[] values, String fieldName) (package private) PdfAppearanceAcroFields.getAppearance(PdfDictionary merged, String text, String fieldName) PdfARadioCheckField.getAppearance(boolean isRadio, boolean on) 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 field(package private) StringTrueTypeFont.getBaseFont()Gets the Postscript font name.RadioCheckField.getCheckField()Gets the check field.protected PdfFormFieldTextField.getChoiceField(boolean isList) TextField.getComboField()Gets a new combo field.protected PdfFormFieldPdfARadioCheckField.getField(boolean isRadio) 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.(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 PdfAWriterPdfAWriter.getInstance(Document document, OutputStream os, DocListener listener, PdfAConformanceLevel conformanceLevel) Use this method to get an instance of thePdfWriter.static PdfAWriterPdfAWriter.getInstance(Document document, OutputStream os, PdfAConformanceLevel conformanceLevel) Use this method to get an instance of thePdfWriter.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.(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.RadioCheckField.getRadioField()Gets the radio field.protected BaseFontBaseField.getRealFont()protected BaseFontPdfARadioCheckField.getRealFont()protected byte[]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.intColumnText.go(boolean simulate, IAccessibleElement elementToGo) protected intColumnText.goComposite(boolean simulate) protected voidPdfDocument.initPage()Initializes a page.intFloatLayout.layout(PdfContentByte canvas, boolean simulate) intPdfDiv.layout(PdfContentByte canvas, boolean useAscender, boolean simulate, float llx, float lly, float urx, float ury) private voidCJKFont.loadCMaps()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.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.(package private) voidTrueTypeFontUnicode.process(byte[] ttfAfm, boolean preload) 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.protected voidTrueTypeFontSubSet.readLoca()booleanAcroFields.regenerateField(String name) Regenerates the field appearance.(package private) intPdfPages.reorderPages(int[] order) intPdfWriter.reorderPages(int[] order) Use this method to reorder the pages in the document.voidPdfWriter.setAdditionalAction(PdfName actionType, PdfAction action) voidXfaXmlLocator.setDocument(Document document) Save document as single XML stream in AcroForm.voidPdfCopyFields.setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) Deprecated.Sets the encryption options for this document.voidPdfCopyFields.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Deprecated.Sets the encryption options for this document.voidPdfCopyFields.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) Deprecated.voidPdfCopyFields.setEncryption(Certificate[] certs, int[] permissions, int encryptionType) Deprecated.voidPdfCopyForms.setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) Deprecated.Sets the encryption options for this document.voidPdfCopyForms.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, boolean strength128Bits) Deprecated.Sets the encryption options for this document.voidPdfCopyForms.setEncryption(byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType) Deprecated.voidPdfCopyForms.setEncryption(Certificate[] certs, int[] permissions, int encryptionType) Deprecated.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) Sets the encryption options for this document.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) Sets the encryption options for this document.booleanSets the field value.booleanSets the field value.booleanSets the field value and the display string.booleanSets the field value and the display string.booleanAcroFields.setFieldRichValue(String name, String richValue) Sets the rich value for the given field.voidSets the fields by FDF merging.voidAcroFields.setFields(XfdfReader xfdf) Sets the fields by XFDF merging.voidPdfCopyFields.setFullCompression()Deprecated.Sets the document's compression to the new 1.5 mode with object streams and xref streams.voidPdfCopyForms.setFullCompression()Deprecated.Sets the document's compression to the new 1.5 mode with object streams and xref streams.voidPdfStamper.setFullCompression()Sets the document's compression to the new 1.5 mode with object streams and xref streams.voidPdfWriter.setFullCompression()Use this method to set the document's compression to the PDF 1.5 mode with object streams and xref streams.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) voidPdfStamper.setThumbnail(Image image, int page) Sets the thumbnail image for a page.(package private) voidPdfStamperImp.setThumbnail(Image image, int 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.(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.voidPdfATtfUnicodeWriter.writeFont(TrueTypeFontUnicode font, PdfIndirectReference ref, Object[] params, byte[] rotbits) (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.voidTtfUnicodeWriter.writeFont(TrueTypeFontUnicode font, PdfIndirectReference ref, Object[] params, byte[] rotbits) (package private) voidType1Font.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) Outputs to the writer the font dictionaries and streams.(package private) voidType3Font.writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) (package private) floatPdfDocument.writeLineToContent(PdfLine line, PdfContentByte text, PdfContentByte graphics, Object[] currentValues, float ratio) Writes a text line to the document.Constructors in com.itextpdf.text.pdf that throw DocumentExceptionModifierConstructorDescription(package private)Creates a CJK font.(package private)EnumerateTTC(byte[] ttcArray) (package private)EnumerateTTC(String ttcFile) PdfACopy(Document document, OutputStream os, PdfAConformanceLevel conformanceLevel) ConstructorPdfASmartCopy(Document document, OutputStream os, PdfAConformanceLevel conformanceLevel) ConstructorPdfAStamper(PdfReader reader, OutputStream os, char pdfVersion, boolean append, PdfAConformanceLevel conformanceLevel) Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.PdfAStamper(PdfReader reader, OutputStream os, char pdfVersion, PdfAConformanceLevel conformanceLevel) Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.PdfAStamper(PdfReader reader, OutputStream os, PdfAConformanceLevel conformanceLevel) Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.(package private)PdfAStamperImp(PdfReader reader, OutputStream os, char pdfVersion, boolean append, PdfAConformanceLevel conformanceLevel) Creates new PdfStamperImp.Creates an instance of the concatenation class.PdfConcatenate(OutputStream os, boolean smart) Creates an instance of the concatenation class.PdfCopy(Document document, OutputStream os) ConstructorDeprecated.Creates a new instance.PdfCopyFields(OutputStream os, char pdfVersion) Deprecated.Creates a new instance.(package private)Deprecated.(package private)PdfCopyFieldsImp(OutputStream os, char pdfVersion) Deprecated.Deprecated.Creates a new instance.(package private)Deprecated.This sets up the output document(package private)PdfPage(PdfRectangle mediaBox, HashMap<String, PdfRectangle> boxSize, PdfDictionary resources) Constructs aPdfPage.(package private)PdfPage(PdfRectangle mediaBox, HashMap<String, PdfRectangle> boxSize, PdfDictionary resources, int rotate) Constructs aPdfPage.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.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.XfaXmlLocator(PdfStamper stamper) -
Uses of DocumentException in com.itextpdf.text.pdf.codec.wmf
Methods in com.itextpdf.text.pdf.codec.wmf that throw DocumentException -
Uses of DocumentException in com.itextpdf.text.pdf.events
Constructors in com.itextpdf.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.itextpdf.text.pdf.interfaces
Methods in com.itextpdf.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. -
Uses of DocumentException in com.itextpdf.text.pdf.mc
Methods in com.itextpdf.text.pdf.mc that throw DocumentExceptionModifier and TypeMethodDescriptionprotected voidMCParser.convertToXObject(StructureObject item) Converts an annotation structure item to a Form XObject annotation.protected voidMCParser.dealWithMcid(PdfNumber mcid) When an MCID is encountered, the parser will check the list structure items and turn an annotation into an XObject if necessary.voidMCParser.parse(PdfDictionary page, PdfIndirectReference pageref) Parses the content of a page, inserting the normal (/N) appearances (/AP) of annotations into the content stream as Form XObjects.voidMCFieldFlattener.process(PdfReader reader, OutputStream os) Processes a properly tagged PDF form.voidMCParser.BeginMarkedContentDictionaryOperator.process(MCParser parser, PdfLiteral operator, List<PdfObject> operands) voidMCParser.PdfOperator.process(MCParser parser, PdfLiteral operator, List<PdfObject> operands) Methods that processes an operatorintStructureItems.processMCID(PdfNumber structParents, PdfIndirectReference ref) Creates a new MCID in the parent tree of the page and returns that new MCID so that it can be used in the content streamprotected voidMCParser.processOperator(PdfLiteral operator, List<PdfObject> operands) Processes an operator, for instance: write the operator and its operands to baos.Constructors in com.itextpdf.text.pdf.mc that throw DocumentExceptionModifierConstructorDescriptionStructureItems(PdfReader reader) Creates a list of StructuredItem objects. -
Uses of DocumentException in com.itextpdf.text.pdf.pdfcleanup
Methods in com.itextpdf.text.pdf.pdfcleanup that throw DocumentExceptionModifier and TypeMethodDescriptionvoidPdfCleanUpProcessor.cleanUp()Cleans the document by erasing all the areas which are either provided or extracted from redaction annotations.private voidPdfCleanUpProcessor.cleanUpPage(int pageNum, List<PdfCleanUpLocation> cleanUpLocations) private voidPdfCleanUpProcessor.deleteRedactAnnots(int pageNum) Deletes redact annotations from the page and substitutes them with either OverlayText or RO object if it's needed.private voidPdfCleanUpProcessor.drawOverlayText(PdfContentByte canvas, List<Rectangle> textRectangles, PdfString overlayText, PdfString otDA, PdfNumber otQ, PdfBoolean otRepeat) -
Uses of DocumentException in com.itextpdf.text.pdf.security
Methods in com.itextpdf.text.pdf.security that throw DocumentExceptionModifier and TypeMethodDescriptionvoidXmlLocator.setDocument(Document document) private static voidMakeXmlSignature.sign(XMLSignatureFactory fac, ExternalSignature externalSignature, XmlLocator locator, org.apache.jcp.xml.dsig.internal.dom.DOMSignedInfo si, XMLObject xo, KeyInfo ki, String signatureId) static voidMakeSignature.signDeferred(PdfReader reader, String fieldName, OutputStream outs, ExternalSignatureContainer externalSignatureContainer) Signs a PDF where space was already reserved.static voidMakeSignature.signDetached(PdfSignatureAppearance sap, ExternalDigest externalDigest, ExternalSignature externalSignature, Certificate[] chain, Collection<CrlClient> crlList, OcspClient ocspClient, TSAClient tsaClient, int estimatedSize, MakeSignature.CryptoStandard sigtype) Signs the document using the detached mode, CMS or CAdES equivalent.static voidMakeSignature.signDetached(PdfSignatureAppearance sap, ExternalDigest externalDigest, ExternalSignature externalSignature, Certificate[] chain, Collection<CrlClient> crlList, OcspClient ocspClient, TSAClient tsaClient, int estimatedSize, MakeSignature.CryptoStandard sigtype, SignaturePolicyInfo signaturePolicy) Signs the document using the detached mode, CMS or CAdES equivalent.static voidMakeSignature.signDetached(PdfSignatureAppearance sap, ExternalDigest externalDigest, ExternalSignature externalSignature, Certificate[] chain, Collection<CrlClient> crlList, OcspClient ocspClient, TSAClient tsaClient, int estimatedSize, MakeSignature.CryptoStandard sigtype, org.bouncycastle.asn1.esf.SignaturePolicyIdentifier signaturePolicy) Signs the document using the detached mode, CMS or CAdES equivalent.static voidMakeSignature.signExternalContainer(PdfSignatureAppearance sap, ExternalSignatureContainer externalSignatureContainer, int estimatedSize) Sign the document using an external container, usually a PKCS7.static voidMakeXmlSignature.signXades(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain, boolean includeSignaturePolicy) Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).static voidMakeXmlSignature.signXadesBes(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).static voidMakeXmlSignature.signXadesEpes(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) Signs the xml with XAdES BES using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).static voidMakeXmlSignature.signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain) Signs the xml with XmlDSig using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).static voidMakeXmlSignature.signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, PublicKey publicKey) Signs the xml with XmlDSig using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).static voidMakeXmlSignature.signXmlDSig(XmlSignatureAppearance sap, ExternalSignature externalSignature, KeyInfo keyInfo) Signs the xml with XmlDSig using the enveloped mode, with optional xpath transform (see XmlSignatureAppearance).static voidLtvTimestamp.timestamp(PdfSignatureAppearance sap, TSAClient tsa, String signatureName) Signs a document with a PAdES-LTV Timestamp.private static voidMakeXmlSignature.verifyArguments(XmlSignatureAppearance sap, ExternalSignature externalSignature) -
Uses of DocumentException in com.itextpdf.text.pdf.util
Methods in com.itextpdf.text.pdf.util that throw DocumentExceptionModifier and TypeMethodDescriptionbooleanSmartPdfSplitter.split(OutputStream os, long sizeInBytes)