Uses of Class
org.docx4j.openpackaging.exceptions.Docx4JException
Packages that use Docx4JException
Package
Description
-
Uses of Docx4JException in org.docx4j
Methods in org.docx4j that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic voidDocx4J.bind(WordprocessingMLPackage wmlPackage, InputStream xmlDocument, int flags) Bind the content controls of the passed document to the xml.static voidDocx4J.bind(WordprocessingMLPackage wmlPackage, String xmlDocument, int flags) Bind the content controls of the passed document to the xml.static voidDocx4J.bind(WordprocessingMLPackage wmlPackage, Answers answers, int flags) Bind the content controls of the passed document to the xml (here using optional standardised Answers format).static voidDocx4J.bind(WordprocessingMLPackage wmlPackage, Document xmlDocument, int flags) Bind the content controls of the passed document to the xml.static voidDocx4J.bind(WordprocessingMLPackage wmlPackage, Document xmlDocument, int flags, DocxFetcher docxFetcher) Bind the content controls of the passed document to the xml.static voidDocx4J.bind(WordprocessingMLPackage wmlPackage, Document xmlDocument, int flags, DocxFetcher docxFetcher, XsltProvider xsltProvider, String xsltFinisherfilename, Map<String, Map<String, Object>> finisherParams) Bind the content controls of the passed document to the xml, applying some formatting finishing touches to the final docx.static WordprocessingMLPackageDocx4J.clone(WordprocessingMLPackage wmlPackage) Duplicate the documentstatic voidTextUtils.extractText(Object o, Writer w) Extract contents of descendant <w:t> elements.static voidTextUtils.extractText(Object o, Writer w, jakarta.xml.bind.JAXBContext jc) Extract contents of descendant <w:t> elements.static voidTextUtils.extractText(Object o, Writer w, jakarta.xml.bind.JAXBContext jc, String uri, String local, Class declaredType) Extract contents of descendant <w:t> elements.protected static Exporter<FOSettings>Docx4J.getFOExporter(int flags) protected static voidDocx4J.insertXMLData(CustomXmlPart customXmlDataStoragePart, Document xmlDocument) static WordprocessingMLPackageLoad a Docx Document from a Filestatic OpcPackageLoad a docx/pptx/xlsx from a File, where you know in advance what type (zip, compound, flat opc) it is.static WordprocessingMLPackageDocx4J.load(InputStream inStream) Load a Docx Document from an InputStreamstatic WordprocessingMLPackageDocx4J.load(PackageIdentifier pkgIdentifier, File inFile) Load a Docx Document from a File, assigning it an identifier for eventingstatic WordprocessingMLPackageDocx4J.load(PackageIdentifier pkgIdentifier, InputStream inStream) Load a Docx Document from an InputStream, assigning it an identifier for eventingstatic jakarta.xml.bind.util.JAXBResultXmlUtils.prepareJAXBResult(jakarta.xml.bind.JAXBContext context) Prepare a JAXB transformation result for some given context.protected static voidDocx4J.removeSDTs(WordprocessingMLPackage wmlPackage) static voidDocx4J.save(OpcPackage pkg, File outFile) Save a Ddocx/pptx/xlsx to a File.static voidDocx4J.save(OpcPackage pkg, File outFile, int flags) Save a docx/pptx/xlsx to a File.static voidDocx4J.save(OpcPackage pkg, File outFile, int flags, String password) Save a docx/pptx/xlsx to a File.static voidDocx4J.save(OpcPackage pkg, OutputStream outStream) Save a docx/pptx/xlsx to an OutputStream using flag Docx4J.FLAG_SAVE_ZIP_FILEstatic voidDocx4J.save(OpcPackage pkg, OutputStream outStream, int flags) Save a docx/pptx/xlsx to an OutputStream.static voidDocx4J.save(OpcPackage pkg, OutputStream outStream, int flags, String password) Save this pkg to an OutputStream.static voidDocx4J.toFO(FOSettings settings, OutputStream outputStream, int flags) Convert the document via xsl-fostatic voidDocx4J.toHTML(HTMLSettings settings, OutputStream outputStream, int flags) Convert the document to HTMLstatic voidDocx4J.toHTML(WordprocessingMLPackage wmlPackage, String imageDirPath, String imageTargetUri, OutputStream outputStream) Convert the document to HTMLstatic voidDocx4J.toPDF(WordprocessingMLPackage wmlPackage, OutputStream outputStream) Convenience method to convert the document to PDFstatic voidXmlUtils.transform(Source source, Templates template, Map<String, Object> transformParameters, Result result) Transform an input document using XSLTstatic voidXmlUtils.transform(Document doc, Templates template, Map<String, Object> transformParameters, Result result) static voidXmlUtils.w3CDomNodeToOutputStream(Node n, OutputStream os) -
Uses of Docx4JException in org.docx4j.convert.in
Methods in org.docx4j.convert.in that throw Docx4JExceptionModifier and TypeMethodDescriptionFlatOpcXmlImporter.get()FlatOpcXmlImporter.getRawPart(ContentTypeManager ctm, String resolvedPartUri, Relationship rel) static PartFlatOpcXmlImporter.getRawPart(ContentTypeManager ctm, Part pkgPart, Relationship rel, OpcPackage targetPkg) FlatOpcXmlImporter.getRelationshipsPart(Part part) Get the Relationships Part (if there is one) for a given Part. -
Uses of Docx4JException in org.docx4j.convert.in.word2003xml
Constructors in org.docx4j.convert.in.word2003xml that throw Docx4JException -
Uses of Docx4JException in org.docx4j.convert.out
Methods in org.docx4j.convert.out that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidConversionHyperlinkHandler.handleHyperlink(ConversionHyperlinkHandler.Model hyperlinkModel, OpcPackage opcPackage, Part currentPart) voidvoidFORenderer.render(String foDocument, FOSettings settings, boolean twoPass, List<FORenderer.SectionPageInformation> pageNumberInformation, OutputStream outputStream) Render the foDocument to the requested format, if needed do a 2 pass conversion.voidAbstractConversionSettings.setOpcPackage(OpcPackage opcPackage) voidFOSettings.setOpcPackage(OpcPackage opcPackage) Side effect (where there is no fopConfig) for WordprocessingMLPackage is to invoke FopConfigUtil.createConfigurationObjectConstructors in org.docx4j.convert.out that throw Docx4JException -
Uses of Docx4JException in org.docx4j.convert.out.common
Methods in org.docx4j.convert.out.common that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected voidAbstractVisitorExporterDelegate.appendDocumentFooter(CC conversionContext, Document document, Element documentRoot) protected voidAbstractVisitorExporterDelegate.appendDocumentHeader(CC conversionContext, Document document, Element documentRoot) protected voidAbstractVisitorExporterDelegate.appendPartContent(CC conversionContext, Document document, Part part, List<Object> content, Element currentParent) protected voidAbstractVisitorExporterDelegate.appendSectionFooter(CC conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected voidAbstractVisitorExporterDelegate.appendSectionHeader(CC conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected abstract ElementAbstractVisitorExporterDelegate.createDocumentRoot(CC conversionContext, Document document) protected OutputStreamAbstractExporter.createIntermediateOutputStream(OutputStream outputStream) protected ElementAbstractVisitorExporterDelegate.createSectionBody(CC conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected ElementAbstractVisitorExporterDelegate.createSectionRoot(CC conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected abstract ConversionSectionWrappersAbstractExporter.createWrappers(CS conversionSettings, PK preprocessedPackage) protected ConversionSectionWrappersAbstractWmlExporter.createWrappers(CS conversionSettings, WordprocessingMLPackage preprocessedPackage) voidAbstractExporter.export(CS conversionSettings, OutputStream outputStream) voidExporter.export(T conversionSettings, OutputStream outputStream) protected voidAbstractVisitorExporterDelegate.generateBodyContent(CC conversionContext, Document document, List<Object> content, Element currentParent) protected TemplatesAbstractXsltExporterDelegate.getDefaultTemplate()protected abstract DocumentAbstractXsltExporterDelegate.getSourceDocument(CS conversionSettings, CC conversionContext) protected DocumentWmlXsltExporterDelegate.getSourceDocument(CS conversionSettings, CC conversionContext) protected TemplatesAbstractXsltExporterDelegate.getTemplates(CS conversionSettings, CC conversionContext) voidAbstractConversionContext.handleHyperlink(ConversionHyperlinkHandler.Model model) voidAbstractWmlConversionContext.handleHyperlink(ConversionHyperlinkHandler.Model model) protected TemplatesAbstractXsltExporterDelegate.loadDefaultTemplates()protected voidAbstractExporter.postprocess(CS conversionSettings, AbstractConversionContext conversionContext, OutputStream intermediateOutputStream, OutputStream outputStream) protected abstract PKAbstractExporter.preprocess(CS conversionSettings) protected WordprocessingMLPackageAbstractWmlExporter.preprocess(CS conversionSettings) protected abstract voidAbstractExporter.process(CS conversionSettings, CC conversionContext, OutputStream outputStream) abstract voidAbstractExporterDelegate.process(CS conversionSettings, CC conversionContext, OutputStream outputStream) voidAbstractVisitorExporterDelegate.process(CS conversionSettings, CC conversionContext, OutputStream outputStream) protected voidAbstractWmlExporter.process(CS conversionSettings, CC conversionContext, OutputStream outputStream) voidAbstractXsltExporterDelegate.process(CS conversionSettings, CC conversionContext, OutputStream outputStream) static ConversionSectionWrappersCreateWrappers.process(WordprocessingMLPackage wmlPackage, Set<String> features) This method creates the Sections for the conversion.static OpcPackagePreprocess.process(OpcPackage opcPackage, Set<String> features) This method applies those features in the preprocessing, that may be used with an OpcPackage.
Features processed: PP_COMMON_DEEP_COPYstatic WordprocessingMLPackagePreprocess.process(WordprocessingMLPackage wmlPackage, Set<String> features) This method applies those features in the preprocessing, that may be used with an WordprocessingMLPackage.protected voidAbstractVisitorExporterDelegate.writeDocument(CC conversionContext, Document document, OutputStream outputStream) -
Uses of Docx4JException in org.docx4j.convert.out.common.preprocess
Methods in org.docx4j.convert.out.common.preprocess that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected static PartPartialDeepCopy.copyPart(Part part, OpcPackage targetPackage, boolean deepCopy) protected static OpcPackagePartialDeepCopy.createPackage(OpcPackage opcPackage) protected static voidPartialDeepCopy.deepCopyContent(Part source, Part destination) protected static PartPartialDeepCopy.deepCopyPart(OpcPackage opcPackage, Base targetParent, Part sourcePart, Set<String> relationshipTypes) protected static voidPartialDeepCopy.deepCopyRelationships(OpcPackage opcPackage, Base sourcePart, Base targetPart, Set<String> relationshipTypes) static OpcPackagePartialDeepCopy.process(OpcPackage opcPackage, Set<String> relationshipTypes) protected static voidPartialDeepCopy.shallowCopyContent(Part source, Part destination) -
Uses of Docx4JException in org.docx4j.convert.out.common.wrappers
Methods in org.docx4j.convert.out.common.wrappers that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic ConversionSectionWrappersConversionSectionWrapperFactory.process(WordprocessingMLPackage wmlPackage, boolean dummySections, boolean dummyPageNumbering) -
Uses of Docx4JException in org.docx4j.convert.out.flatOpcXml
Methods in org.docx4j.convert.out.flatOpcXml that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidFlatOpcXmlCreator.addPartsFromRelationships(RelationshipsPart rp) static PartFlatOpcXmlCreator.createRawBinaryPart(Part part) FlatOpcXmlCreator.createRawXmlPart(Part part) FlatOpcXmlCreator.get()Deprecated.static PartFlatOpcXmlCreator.getRawXmlPart(Part part) Deprecated.voidFlatOpcXmlCreator.marshal(OutputStream os) voidvoidFlatOpcXmlCreator.populate()voidprotected voidFlatOpcXmlCreator.saveRawBinaryPart(Part part) voidFlatOpcXmlCreator.saveRawXmlPart(Part part) -
Uses of Docx4JException in org.docx4j.convert.out.html
Methods in org.docx4j.convert.out.html that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected voidHTMLExporterVisitorDelegate.appendDocumentFooter(HTMLConversionContext conversionContext, Document document, Element documentRoot) protected voidHTMLExporterVisitorDelegate.appendDocumentHeader(HTMLConversionContext conversionContext, Document document, Element documentRoot) protected voidHTMLExporterVisitorDelegate.appendPartContent(HTMLConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent, String className, Part part, List<Object> content) protected voidHTMLExporterVisitorDelegate.appendSectionFooter(HTMLConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected voidHTMLExporterVisitorDelegate.appendSectionHeader(HTMLConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected ElementHTMLExporterVisitorDelegate.createDocumentRoot(HTMLConversionContext conversionContext, Document document) protected ElementHTMLExporterVisitorDelegate.createSectionBody(HTMLConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected ElementHTMLExporterVisitorDelegate.createSectionRoot(HTMLConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected DocumentHTMLExporterXslt.HTMLExporterXsltDelegate.getSourceDocument(HTMLSettings conversionSettings, HTMLConversionContext conversionContext) protected TemplatesHTMLExporterXslt.HTMLExporterXsltDelegate.loadDefaultTemplates()voidDeprecated.voidHTMLExporterXslt.HTMLExporterXsltDelegate.process(HTMLSettings conversionSettings, HTMLConversionContext conversionContext, OutputStream outputStream) -
Uses of Docx4JException in org.docx4j.fonts.fop.util
Methods in org.docx4j.fonts.fop.util that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic FopFopConfigUtil.createConfigurationObject(Mapper fontMapper, Set<String> fontsInUse) -
Uses of Docx4JException in org.docx4j.jaxb
Subclasses of Docx4JException in org.docx4j.jaxb -
Uses of Docx4JException in org.docx4j.model
Constructors in org.docx4j.model that throw Docx4JExceptionModifierConstructorDescriptionImmutablePropertyResolver(WordprocessingMLPackage wordMLPackage) PropertyResolver(WordprocessingMLPackage wordMLPackage) -
Uses of Docx4JException in org.docx4j.model.datastorage
Subclasses of Docx4JException in org.docx4j.model.datastorageModifier and TypeClassDescriptionclassIn the case where the item is to be repeated zero times (ie the bound XML is empty), Word 2016 Preview leaves the document surface unaltered (eg if there were 3 rows there, it would leave those 3 rows).Methods in org.docx4j.model.datastorage that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected voidValueInserterPlainTextImpl.addBrRunToDocFrag(DocumentFragment docfrag, RPr rPr) protected voidValueInserterPlainTextForOpenAPI3.addHyperlinkToDocFrag(JaxbXmlPart sourcePart, DocumentFragment docfrag, String url) protected voidValueInserterPlainTextImpl.addHyperlinkToDocFrag(JaxbXmlPart sourcePart, DocumentFragment docfrag, String url) voidXsltFinisher.apply(JaxbXmlPart part, Map<String, Xpaths.Xpath> xpathsMap, String filename, Map<String, Map<String, Object>> finisherParams) finisherParams is a map of parameter values you can pass in, which named templates can be sensitive to (eg to set a color).voidBindingHandler.applyBindings()static voidBindingHandler.applyBindings(WordprocessingMLPackage wordMLPackage) Deprecated.voidBindingHandler.applyBindings(JaxbXmlPart part) CustomXmlDataStorage.cachedXPathGetString(String xpath, String prefixMappings) (Unless you are using Saxon as your XPath implementation (XPathFactoryUtil.setxPathFactory)) this uses org.apache.xpath.CachedXPathAPI for better performance, since Apache's old XPathAPI class, have the drawback of instantiating a new XPathContext (and thus building a new DTMManager, and new DTMs) each time it was called.OpenDoPEHandlerComponents.fetchComponents()Component processingstatic CustomXmlPartCustomXmlDataStoragePartSelector.getCustomXmlDataStoragePart(WordprocessingMLPackage wordMLPackage) We need the item id of the custom xml part.CustomXmlDataStorage.getDocument()Write the contents of this object to the org.w3c.dom.DocumentCustomXmlDataStorageImpl.getDocument()DocxFetcher.getDocxFromIRI(String iri) CustomXmlDataStorage.getXML()Get the XML as a String.protected AtomicIntegerBindingHandler.initBookmarkIdStart()static voidOpenDoPEHandler.preprocess()Preprocess content controls which have tag "od:condition|od:repeat|od:component".voidOpenDoPEIntegrity.process(WordprocessingMLPackage wordMLPackage) voidOpenDoPEIntegrityAfterBinding.process(WordprocessingMLPackage wordMLPackage) protected voidValueInserterPlainTextImpl.processString(JaxbXmlPart sourcePart, DocumentFragment docfrag, String text, RPr rPr) voidRemovalHandler.removeSDTs(WordprocessingMLPackage wordMLPackage) Removes Structured Document Tags from the main document part, headers, and footer, preserving their contents.voidRemovalHandler.removeSDTs(WordprocessingMLPackage wordMLPackage, RemovalHandler.Quantifier quantifier, String... keys) Removes Structured Document Tags from the main document part, headers, and footer, preserving their contents.voidRemovalHandler.removeSDTs(JaxbXmlPart<? extends Object> part) Removes Structured Document Tags from a document part, preserving their contents.voidRemovalHandler.removeSDTs(JaxbXmlPart<? extends Object> part, RemovalHandler.Quantifier quantifier, String... keys) Removes Structured Document Tags from a document part, preserving their contents.booleanOpenDoPEReverter.revert()voidCustomXmlDataStorage.setDocument(InputStream is) Set the contents of this object from the input streamvoidCustomXmlDataStorage.setDocument(Document doc) booleanCustomXmlDataStorage.setNodeValueAtXPath(String xpath, String value, String prefixMappings) voidBindingTraverserStAX.streamToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) Bind the content controls; avoid unmarshalling the entire part.ValueInserterPlainText.toOpenXml(Xpaths.Xpath.DataBinding dataBinding, RPr rPr, boolean multiLine, BindingTraverserXSLT.BookmarkCounter bookmarkCounter, String result, JaxbXmlPart sourcePart) ValueInserterPlainTextForOpenAPI3.toOpenXml(Xpaths.Xpath.DataBinding dataBinding, RPr rPr, boolean multiLine, BindingTraverserXSLT.BookmarkCounter bookmarkCounter, String val, JaxbXmlPart sourcePart) ValueInserterPlainTextImpl.toOpenXml(Xpaths.Xpath.DataBinding dataBinding, RPr rPr, boolean multiLine, BindingTraverserXSLT.BookmarkCounter bookmarkCounter, String val, JaxbXmlPart sourcePart) abstract ObjectBindingTraverserCommonImpl.traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) BindingTraverserInterface.traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) Traverse (typically a clone of) the part, binding content controls.voidBindingTraverserNonXSLT.traverseToBind(JaxbXmlPart part, Object jaxbObject, Map<String, Xpaths.Xpath> xpathsMap) Traverse a sub-tree.BindingTraverserNonXSLT.traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) Entry point.BindingTraverserStAX.traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) BindingTraverserXSLT.traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) UpdateXmlFromDocumentSurface.updateCustomXmlParts()Update the contents of the relevant custom XML parts, with any edits made by the user in a rich text content control with a tag containing od:progid=Word.Document (and an OpenDoPE XPath, of course).voidCustomXmlDataStorage.writeDocument(OutputStream os) Write the contents of this object to the output streamvoidCustomXmlDataStorageImpl.writeDocument(OutputStream os) CustomXmlDataStorage.xpathGetString(String xpath, String prefixMappings) Get the data pointed to by the xpath.Constructors in org.docx4j.model.datastorage that throw Docx4JExceptionModifierConstructorDescriptionOpenDoPEHandler(WordprocessingMLPackage wordMLPackage) OpenDoPEHandlerComponents(WordprocessingMLPackage wordMLPackage) UpdateXmlFromDocumentSurface(WordprocessingMLPackage wordMLPackage, boolean supportStylesInWordAltChunkProcessing) Copy contents of OpenDoPE content controls, including rich text content controls with tag 'od:progid=Word.Document' (ie as escaped Flat OPC XML), back into their associated custom XML part element. -
Uses of Docx4JException in org.docx4j.model.fields
Subclasses of Docx4JException in org.docx4j.model.fieldsMethods in org.docx4j.model.fields that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic StringFormattingSwitchHelper.applyFormattingSwitch(WordprocessingMLPackage wmlPackage, FldSimpleModel model, String value) static StringFormattingSwitchHelper.applyFormattingSwitch(WordprocessingMLPackage wmlPackage, FldSimpleModel model, String value, String lang) static voidFieldsPreprocessor.complexifyFields(JaxbXmlPart part) Convert any w:fldSimple in this part to complex field.voidFieldUpdater.update(boolean processHeadersAndFooters) voidFieldUpdater.updateComplex(JaxbXmlPart part) voidFieldUpdater.updatePart(JaxbXmlPart part) voidFieldUpdater.updateSimple(JaxbXmlPart part) -
Uses of Docx4JException in org.docx4j.model.fields.merge
Methods in org.docx4j.model.fields.merge that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected static voidMailMerger.canonicaliseStarts(ComplexFieldLocator fl, List<FieldRef> fieldRefs) static WordprocessingMLPackageMailMerger.getConsolidatedResultCrude(WordprocessingMLPackage input, List<Map<DataFieldName, String>> data) A "poor man's" approach, which generates the mail merge results as a single docx, and just hopes for the best.static WordprocessingMLPackageMailMerger.getConsolidatedResultCrude(WordprocessingMLPackage input, List<Map<DataFieldName, String>> data, boolean processHeadersAndFooters) A "poor man's" approach, which generates the mail merge results as a single docx, and just hopes for the best.static voidMailMergerWithNext.performLabelMerge(WordprocessingMLPackage input, List<Map<DataFieldName, String>> data) Similar to performMerge method but better to merge labels template because of using the NEXT instruction to go to the next item.static voidMailMerger.performMerge(WordprocessingMLPackage input, Map<DataFieldName, String> data, boolean processHeadersAndFooters) Perform merge on a single instance. -
Uses of Docx4JException in org.docx4j.model.fields.seq
Methods in org.docx4j.model.fields.seq that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidFieldUpdaterSEQ.update()voidFieldUpdaterSEQ.updateComplex(JaxbXmlPart part) voidFieldUpdaterSEQ.updateSimple(JaxbXmlPart part) -
Uses of Docx4JException in org.docx4j.model.images
Methods in org.docx4j.model.images that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected StringAbstractConversionImageHandler.createEncodedImage(BinaryPart binaryPart, byte[] bytes) protected abstract StringAbstractConversionImageHandler.createStoredImage(BinaryPart binaryPart, byte[] bytes) protected StringFileConversionImageHandler.createStoredImage(BinaryPart binaryPart, byte[] bytes) protected StringAbstractConversionImageHandler.doHandleImage(AbstractWordXmlPicture picture, Relationship relationship, BinaryPart part) AbstractConversionImageHandler.handleImage(AbstractWordXmlPicture picture, Relationship relationship, BinaryPart part) ConversionImageHandler.handleImage(AbstractWordXmlPicture picture, Relationship relationship, BinaryPart part) protected StringAbstractConversionImageHandler.handleInternalImage(AbstractWordXmlPicture picture, Relationship relationship, BinaryPart binaryPart) protected booleanAbstractConversionImageHandler.isInternalImage(AbstractWordXmlPicture picture, Relationship relationship, BinaryPart part) protected FileFileConversionImageHandler.setupRootFolder(BinaryPart binaryPart) protected StringFileConversionImageHandler.storeImage(BinaryPart binaryPart, byte[] bytes, File folder, String filename) -
Uses of Docx4JException in org.docx4j.openpackaging
Methods in org.docx4j.openpackaging that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic StringPackageRelsUtil.getNameOfMainPart(RelationshipsPart packageRels) -
Uses of Docx4JException in org.docx4j.openpackaging.contenttype
Methods in org.docx4j.openpackaging.contenttype that throw Docx4JExceptionModifier and TypeMethodDescriptionbooleanContentTypeManager.isContentEqual(ContentTypeManager other) -
Uses of Docx4JException in org.docx4j.openpackaging.exceptions
Subclasses of Docx4JException in org.docx4j.openpackaging.exceptionsModifier and TypeClassDescriptionclassclassclass -
Uses of Docx4JException in org.docx4j.openpackaging.io
Methods in org.docx4j.openpackaging.io that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidSaveToZipFile.addPartsFromRelationships(ZipOutputStream out, RelationshipsPart rp) Deprecated.Deprecated.LoadFromZipNG.get(InputStream is) Deprecated.Deprecated.static PartLoadFromZipNG.getBinaryPart(HashMap<String, LoadFromZipNG.ByteArray> partByteArrays, ContentTypeManager ctm, String resolvedPartUri) Deprecated.static BinaryPartExternalResourceUtils.getExternalResource(String absoluteTarget) static PartLoad.getRawPart(InputStream is, ContentTypeManager ctm, String resolvedPartUri, Relationship rel) Deprecated.Get a Part (except a relationships part), but not its relationships part or related parts.static PartLoadFromZipNG.getRawPart(HashMap<String, LoadFromZipNG.ByteArray> partByteArrays, ContentTypeManager ctm, String resolvedPartUri, Relationship rel) Deprecated.Get a Part (except a relationships part), but not its relationships part or related parts.LoadFromZipNG.getRelationshipsPart(HashMap<String, LoadFromZipNG.ByteArray> partByteArrays, Part part) Deprecated.Get the Relationships Part (if there is one) for a given Part.booleanDeprecated.booleanSaveToZipFile.save(OutputStream realOS) Deprecated.booleanDeprecated.booleanSaveToZipFile.saveFlatOPC(OutputStream realOS) Deprecated.voidSaveToZipFile.savePart(ZipOutputStream out, Part part) Deprecated.protected voidSaveToZipFile.saveRawBinaryPart(ZipOutputStream out, Part part) Deprecated.voidSaveToZipFile.saveRawXmlPart(ZipOutputStream out, Part part) Deprecated.voidSaveToZipFile.saveRawXmlPart(ZipOutputStream out, Part part, String zipEntryName) Deprecated. -
Uses of Docx4JException in org.docx4j.openpackaging.io3
Methods in org.docx4j.openpackaging.io3 that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidLoad3.get()Load3.getBinaryPart(ContentTypeManager ctm, String resolvedPartUri) protected voidLoad3.getPart(OpcPackage pkg, RelationshipsPart rp, Relationship r, ContentTypeManager ctm) Get a Part (except a relationships part), and all its related parts.Load3.getRawPart(ContentTypeManager ctm, String resolvedPartUri, Relationship rel, RelationshipsPart rp) Get a Part (except a relationships part), but not its relationships part or related parts.Load3.getRelationshipsPart(Part part) Get the Relationships Part (if there is one) for a given Part.booleanSave.save(OutputStream realOS) voidvoidvoidSave.saveRawXmlPart(Part part) -
Uses of Docx4JException in org.docx4j.openpackaging.io3.stores
Methods in org.docx4j.openpackaging.io3.stores that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidPartStore.finishSave()Anything necessary to perfect the save operation.voidUnzippedPartStore.finishSave()voidZipPartStore.finishSave()ZipPartStore.getByteArray(String partName) This method is to facilitate updating the part without JAXB unmarshalling then marshalling.longPartStore.getPartSize(String partName) The size of this part in bytes.longUnzippedPartStore.getPartSize(String partName) longZipPartStore.getPartSize(String partName) Returns null if the part does not exist.voidPartStore.saveBinaryPart(Part part) voidUnzippedPartStore.saveBinaryPart(Part part) voidZipPartStore.saveBinaryPart(Part part) voidPartStore.saveContentTypes(ContentTypeManager ctm) voidUnzippedPartStore.saveContentTypes(ContentTypeManager ctm) voidZipPartStore.saveContentTypes(ContentTypeManager ctm) voidPartStore.saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) voidUnzippedPartStore.saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) voidZipPartStore.saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) voidPartStore.saveJaxbXmlPart(JaxbXmlPart part) voidUnzippedPartStore.saveJaxbXmlPart(JaxbXmlPart part) voidZipPartStore.saveJaxbXmlPart(JaxbXmlPart part) voidPartStore.saveXmlPart(XmlPart part) voidUnzippedPartStore.saveXmlPart(XmlPart part) voidZipPartStore.saveXmlPart(XmlPart part) voidPartStore.setOutputStream(OutputStream os) Constructors in org.docx4j.openpackaging.io3.stores that throw Docx4JException -
Uses of Docx4JException in org.docx4j.openpackaging.packages
Methods in org.docx4j.openpackaging.packages that throw Docx4JExceptionModifier and TypeMethodDescriptionProtectionSettings.getSignatureHelper()get the SignatureHelper object, so you can sign the package using custom settings.static OpcPackageConvenience method to create a WordprocessingMLPackage or PresentationMLPackage from an existing File (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageConvenience method to create a WordprocessingMLPackage or PresentationMLPackage from an existing File (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageconvenience method to load from a file, where you know the Filetype (if it is Filetype.ZippedPackage, ZipFile will be used instead of ZipArchiveInputStream)static OpcPackageconvenience method to load from a file, where you know the Filetype (if it is Filetype.ZippedPackage, ZipFile will be used instead of ZipArchiveInputStream)static OpcPackageOpcPackage.load(InputStream inputStream) Convenience method to create a WordprocessingMLPackage or PresentationMLPackage from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageOpcPackage.load(InputStream is, boolean docxFormat) Deprecated.static OpcPackageOpcPackage.load(InputStream inputStream, String password) Convenience method to create a WordprocessingMLPackage or PresentationMLPackage from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageOpcPackage.load(InputStream is, Filetype type) convenience method to load a word2007 document from an existing inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageOpcPackage.load(InputStream is, Filetype type, String password) convenience method to load a word2007 document from an existing inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageOpcPackage.load(PackageIdentifier pkgIdentifier, File docxFile) Convenience method to create a WordprocessingMLPackage or PresentationMLPackage from an existing File (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageOpcPackage.load(PackageIdentifier pkgIdentifier, File docxFile, String password) Convenience method to create a WordprocessingMLPackage or PresentationMLPackage from an existing File (.docx/.docxm, .ppxtx or Flat OPC .xml).static OpcPackageOpcPackage.load(PackageIdentifier pkgIdentifier, InputStream inputStream) Convenience method to create a WordprocessingMLPackage or PresentationMLPackage from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).static PresentationMLPackageConvenience method to create a PresentationMLPackage from an existing File (.pptx or .xml Flat OPC).static PresentationMLPackagePresentationMLPackage.load(InputStream pptxInputStream) Creates aPresentationMLPackagefrom anInputStream.static SpreadsheetMLPackageConvenience method to create a SpreadsheetMLPackage from an existing File (.xlsx or .xml Flat OPC).static SpreadsheetMLPackageSpreadsheetMLPackage.load(InputStream xlsxInputStream) Creates aSpreadsheetMLPackagefrom anInputStream.static WordprocessingMLPackageConvenience method to create a WordprocessingMLPackage from an existing File (.docx zip or .xml Flat OPC).static WordprocessingMLPackageWordprocessingMLPackage.load(InputStream is) Convenience method to create a WordprocessingMLPackage from an existing stream(.docx zip or .xml Flat OPC).voidProtectDocument.restrictFormatting(List<String> allowedStyleNames, boolean removedNotAllowedFormatting, boolean autoFormatOverride, boolean styleLockTheme, boolean styleLockQFSet) Restrict allowed formatting to specified styles, no password.voidProtectDocument.restrictFormatting(List<String> allowedStyleNames, boolean removedNotAllowedFormatting, boolean autoFormatOverride, boolean styleLockTheme, boolean styleLockQFSet, String password) Restrict allowed formatting to specified styles, password protected.voidProtectDocument.restrictFormatting(List<String> allowedStyleNames, boolean removedNotAllowedFormatting, boolean autoFormatOverride, boolean styleLockTheme, boolean styleLockQFSet, String password, HashAlgorithm hashAlgo) Restrict allowed formatting to specified styles.voidConvenience method to save a WordprocessingMLPackage or PresentationMLPackage to a File.voidSave this pkg to a File.voidSave this pkg to a file.voidOpcPackage.save(OutputStream outStream) Save this pkg to an OutputStream in the usual zipped up format (Docx4J.FLAG_SAVE_ZIP_FILE)voidOpcPackage.save(OutputStream outStream, int flags) Save this pkg to an OutputStream.voidOpcPackage.save(OutputStream outStream, int flags, String password) Save this pkg to an OutputStream.PackageTransformer.transform(OpcPackage srcPkg) Transforms the provided package.default List<OpcPackage>PackageTransformer.transformAll(List<OpcPackage> pkgs) Transforms all the provided documents. -
Uses of Docx4JException in org.docx4j.openpackaging.parts
Methods in org.docx4j.openpackaging.parts that throw Docx4JExceptionModifier and TypeMethodDescriptionJaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, byte[] bytes) JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, byte[] bytes, int index) JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, byte[] bytes, ContentAccessor attachmentPoint) JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, byte[] bytes, ContentAccessor attachmentPoint, int index) JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, InputStream is) JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, InputStream is, int index) JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, InputStream is, ContentAccessor attachmentPoint) JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type, InputStream is, ContentAccessor attachmentPoint, int index) CustomXmlDataStoragePart.cachedXPathGetString(String xpath, String prefixMappings) CustomXmlPart.cachedXPathGetString(String xpath, String prefixMappings) Use org.apache.xpath.CachedXPathAPI, since this is much quicker than default javax.xml.xpath.XPath implementations (Apache's anyway) for large XML files.XmlPart.cachedXPathGetString(String xpath, String prefixMappings) (Unless you are using Saxon as your XPath implementation (XPathFactoryUtil.setxPathFactory)) this uses org.apache.xpath.CachedXPathAPI for better performance, since Apache's old XPathAPI class, have the drawback of instantiating a new XPathContext (and thus building a new DTMManager, and new DTMs) each time it was called.voidJaxbXmlPartAltChunkHost.convertAltChunks()JaxbXmlPart.getContents()Get the live contents of this part (the JAXB object model).ActiveXControlXmlPart.getDocument()DefaultXmlPart.getDocument()abstract DocumentXmlPart.getDocument()ThemePart.getFont(STTheme type, CTLanguage themeFontLang) ThemePart.getFontFromTheme(STTheme type) ThemePart.getMajorLatin()CustomXmlDataStoragePart.getXML()Get the XML as a String.CustomXmlPart.getXML()Get the XML as a String.XmlPart.getXML()Get the XML as a String.JaxbXmlPart.getXMLStreamReader(StreamFilter filter) booleanCustomXmlDataStoragePart.isContentEqual(Part other) booleanJaxbXmlPart.isContentEqual(Part other) abstract booleanPart.isContentEqual(Part other) booleanXmlPart.isContentEqual(Part other) voidJaxbXmlPart.pipe(SAXHandler saxHandler) Replace the contents of this part with the output of passing it through your SAXHandler.voidJaxbXmlPart.pipe(StAXHandlerInterface handler) Replace the contents of this part with the output of passing it through your StAXHandler.voidJaxbXmlPart.pipe(StAXHandlerInterface handler, StreamFilter filter) Replace the contents of this part with the output of passing it through your StAXHandler.voidJaxbXmlPart.replacePartContent(byte[] bytes) Replace the content of this part.voidXmlPart.setDocument(InputStream is) booleanCustomXmlDataStoragePart.setNodeValueAtXPath(String xpath, String value, String prefixMappings) booleanCustomXmlPart.setNodeValueAtXPath(String xpath, String value, String prefixMappings) booleanXmlPart.setNodeValueAtXPath(String xpath, String value, String prefixMappings) Set the value of the node referenced in the xpath expression.voidSet the XMLvoidSet the XML datavoidUse an XSLT to alter the contents of this part.voidJaxbXmlPart.variableReplace(Map<String, String> mappings) unmarshallFromTemplate.CustomXmlDataStoragePart.xpathGetNodes(String xpathString, String prefixMappings) CustomXmlPart.xpathGetNodes(String xpathString, String prefixMappings) CustomXmlDataStoragePart.xpathGetString(String xpath, String prefixMappings) CustomXmlPart.xpathGetString(String xpath, String prefixMappings) DocPropsCorePart.xpathGetString(String xpathString, String prefixMappings) DocPropsExtendedPart.xpathGetString(String xpathString, String prefixMappings) XmlPart.xpathGetString(String xpathString, String prefixMappings) Note: If the result is an empty node-set, it will be converted to an empty string, rather than null. -
Uses of Docx4JException in org.docx4j.openpackaging.parts.opendope
Methods in org.docx4j.openpackaging.parts.opendope that throw Docx4JExceptionModifier and TypeMethodDescriptionJaxbCustomXmlDataStoragePart.cachedXPathGetString(String xpath, String prefixMappings) booleanJaxbCustomXmlDataStoragePart.setNodeValueAtXPath(String xpath, String value, String prefixMappings) voidJaxbCustomXmlDataStoragePart.xpathGetNodes(String xpathString, String prefixMappings) JaxbCustomXmlDataStoragePart.xpathGetString(String xpathString, String prefixMappings) -
Uses of Docx4JException in org.docx4j.openpackaging.parts.relationships
Methods in org.docx4j.openpackaging.parts.relationships that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic voidPatcher.apply(WordprocessingMLPackage otherPackage, AlteredParts.Alterations alterations) RelationshipsPart.differingContent(RelationshipsPart otherRP) Identify rels common to both parts, but where rels have different content.static voidAlteredParts.recurse(AlteredParts.Alterations alterations, RelationshipsPart thisRP, RelationshipsPart otherRP) static AlteredParts.AlterationsAlteredParts.start(WordprocessingMLPackage thisPackage, WordprocessingMLPackage otherPackage) -
Uses of Docx4JException in org.docx4j.openpackaging.parts.WordprocessingML
Methods in org.docx4j.openpackaging.parts.WordprocessingML that throw Docx4JExceptionModifier and TypeMethodDescriptionAltChunkInterface.addAltChunk(AltChunkType type, byte[] bytes) Add content from byte array of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.AltChunkInterface.addAltChunk(AltChunkType type, byte[] bytes, int index) Add at index content from byte array of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.AltChunkInterface.addAltChunk(AltChunkType type, byte[] bytes, ContentAccessor attachmentPoint) Add content from byte array of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.AltChunkInterface.addAltChunk(AltChunkType type, byte[] bytes, ContentAccessor attachmentPoint, int index) Add at index content from byte array of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.AltChunkInterface.addAltChunk(AltChunkType type, InputStream is) Add content from InputStream of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.AltChunkInterface.addAltChunk(AltChunkType type, InputStream is, int index) Add at index content from InputStream of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.AltChunkInterface.addAltChunk(AltChunkType type, InputStream is, ContentAccessor attachmentPoint) Add content from InputStream of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.AltChunkInterface.addAltChunk(AltChunkType type, InputStream is, ContentAccessor attachmentPoint, int index) Add at index content from InputStream of type AltChunkType, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content.voidAltChunkInterface.convertAltChunks()Convert altChunks in this part to ordinary docx WordML content.EmbeddedPackagePart.extractPackage()longDrawingPropsIdTracker.generateId()If this throws an exception, you'll have to create an Id on your own.SdtStAXHandler.handleSdt(SdtElement sdt) Manipulate the SDT as you wish.booleanBinaryPart.isContentEqual(Part other) voidDocumentSettingsPart.protectRestrictFormatting(boolean autoFormatOverride, boolean styleLockTheme, boolean styleLockQFSet, String password, HashAlgorithm hashAlgo) Restrict allowed formatting to specified styles.voidStyleDefinitionsPart.protectRestrictFormatting(List<String> allowedStyleNames, boolean removedNotAllowedFormatting, Set<String> stylesInUse) Restrict allowed formatting to specified styles. -
Uses of Docx4JException in org.docx4j.toc
Subclasses of Docx4JException in org.docx4j.toc -
Uses of Docx4JException in org.docx4j.utils
Methods in org.docx4j.utils that throw Docx4JException -
Uses of Docx4JException in org.glox4j.openpackaging.packages
Methods in org.glox4j.openpackaging.packages that throw Docx4JException -
Uses of Docx4JException in org.pptx4j.convert.out.svginhtml
Methods in org.pptx4j.convert.out.svginhtml that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic ObjectSvgExporter.nodeToObjectModel(Node n, Class declaredType)