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 documentprivate static Exporter<Documents4jConversionSettings>Docx4J.documents4jLocalExporterGetInstance()private static Exporter<Documents4jConversionSettings>Docx4J.documents4jRemoteExporterGetInstance()static 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.private static Exporter<FOSettings>Docx4J.FOExporterVisitorGetInstance()private static Exporter<FOSettings>Docx4J.FOExporterXsltGetInstance()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 eventingprivate static Exporter<MicrosoftGraphConversionSettings>Docx4J.microsoftGraphExporterGetInstance()static 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.anon
Methods in org.docx4j.anon that throw Docx4JExceptionModifier and TypeMethodDescriptionAnonymize.go()protected voidAnonymize.handleMetadata()PartsAnalyzer.identifyUnsafeParts(Set<Map.Entry<PartName, Part>> parts) -
Uses of Docx4JException in org.docx4j.convert.in
Methods in org.docx4j.convert.in that throw Docx4JExceptionModifier and TypeMethodDescriptionprivate voidFlatOpcXmlImporter.addPartsFromRelationships(Base source, RelationshipsPart rp) FlatOpcXmlImporter.get()private voidFlatOpcXmlImporter.getPart(RelationshipsPart rp, Relationship r) Get a Part (except a relationships part), and all its related parts.FlatOpcXmlImporter.getRawPart(ContentTypeManager ctm, String resolvedPartUri, Relationship rel) private PartFlatOpcXmlImporter.getRawPart(ContentTypeManager ctm, Part pkgPart, 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.private RelationshipsPartFlatOpcXmlImporter.getRelationshipsPartFromXmlPackage(Base p, String partName) -
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.private static PartFlatOpcXmlCreator.getRawXmlPartCommon(Part part, Part partResult) voidFlatOpcXmlCreator.marshal(OutputStream os) voidvoidFlatOpcXmlCreator.populate()voidprotected voidFlatOpcXmlCreator.saveRawBinaryPart(Part part) voidFlatOpcXmlCreator.saveRawXmlPart(Part part) -
Uses of Docx4JException in org.docx4j.convert.out.fo
Methods in org.docx4j.convert.out.fo that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected voidFOExporterVisitorDelegate.appendDocumentHeader(FOConversionContext conversionContext, Document document, Element documentRoot) protected voidFOExporterVisitorDelegate.appendPartContent(FOConversionContext conversionContext, Document document, Element currentParent, String name, Part part, List<Object> content) protected voidFOExporterVisitorDelegate.appendSectionHeader(FOConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected ElementFOExporterVisitorDelegate.createDocumentRoot(FOConversionContext conversionContext, Document document) protected OutputStreamAbstractFOExporter.createIntermediateOutputStream(OutputStream outputStream) protected ElementFOExporterVisitorDelegate.createSectionBody(FOConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) protected ElementFOExporterVisitorDelegate.createSectionRoot(FOConversionContext conversionContext, Document document, ConversionSectionWrapper sectionWrapper, Element currentParent) (package private) static DocumentFOPAreaTreeHelper.getAreaTreeViaFOP(WordprocessingMLPackage hfPkg, boolean useXSLT, FOSettings foSettingsOverall) protected voidAbstractFOExporter.postprocess(FOSettings conversionSettings, AbstractConversionContext conversionContext, OutputStream intermediateOutputStream, OutputStream outputStream) -
Uses of Docx4JException in org.docx4j.convert.out.fo.renderers
Methods in org.docx4j.convert.out.fo.renderers that throw Docx4JExceptionModifier and TypeMethodDescriptionprotected org.apache.fop.apps.FormattingResultsFORendererApacheFOP.calcResults(org.apache.fop.apps.FopFactory fopFactory, String outputFormat, Source foDocumentSrc, PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup) For first pass of two pass process, invoke org.apache.fop.apps.FormattingResults which can tell us the number of pages in each page sequence, and in the document as a whole.static org.apache.fop.apps.FOUserAgentFORendererApacheFOP.getFOUserAgent(FOSettings settings, org.apache.fop.apps.FopFactory fopFactory) Allow user access to FOUserAgent, so they can setAccessibility(true).voidFORendererApacheFOP.render(String foDocument, FOSettings settings, boolean twoPass, List<FORenderer.SectionPageInformation> pageNumberInformation, OutputStream outputStream) protected voidFORendererApacheFOP.render(org.apache.fop.apps.FopFactory fopFactory, org.apache.fop.apps.FOUserAgent foUserAgent, String outputFormat, Source foDocumentSrc, PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup, OutputStream outputStream) voidFORendererDummy.render(String foDocument, FOSettings settings, boolean twoPass, List<FORenderer.SectionPageInformation> pageNumberInformation, OutputStream outputStream) voidFORendererApacheFOP.FopPlaceholderLookup.setResults(org.apache.fop.apps.FormattingResults formattingResults) -
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.convert.out.microsoft_graph
Methods in org.docx4j.convert.out.microsoft_graph that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidDocxToPdfExporter.export(File officeFile, OutputStream target) Export docx file as PDFvoidDocxToPdfExporter.export(MicrosoftGraphConversionSettings conversionSettings, OutputStream outputStream) Export to outputStream as PDF.voidDocxToPdfExporter.export(OpcPackage pkg, OutputStream outputStream) Export WordprocessingMLPackage to OutputStreamvoidPptxToPdfExporter.export(File officeFile, OutputStream target) Export docx file as PDFvoidPptxToPdfExporter.export(MicrosoftGraphConversionSettings conversionSettings, OutputStream outputStream) Export to outputStream as PDF.voidPptxToPdfExporter.export(OpcPackage pkg, OutputStream outputStream) Export WordprocessingMLPackage to OutputStreamvoidXlsxToPdfExporter.export(File officeFile, OutputStream target) Export docx file as PDFvoidXlsxToPdfExporter.export(MicrosoftGraphConversionSettings conversionSettings, OutputStream outputStream) Export to outputStream as PDF.voidXlsxToPdfExporter.export(OpcPackage pkg, OutputStream outputStream) Export WordprocessingMLPackage to OutputStream -
Uses of Docx4JException in org.docx4j.convert.out.pdf
Methods in org.docx4j.convert.out.pdf that throw Docx4JExceptionModifier and TypeMethodDescriptionabstract voidPdfConversion.output(OutputStream os, PdfSettings settings) Deprecated.abstract voidPdfConversion.outputXSLFO(OutputStream os, PdfSettings settings) Deprecated. -
Uses of Docx4JException in org.docx4j.convert.out.pdf.viaXSLFO
Methods in org.docx4j.convert.out.pdf.viaXSLFO that throw Docx4JExceptionModifier and TypeMethodDescriptionvoidConversion.output(OutputStream os, PdfSettings settings) Deprecated.Create a pdf version of the document, using XSL FO.voidConversion.outputXSLFO(OutputStream os, PdfSettings settings) Deprecated.protected voidConversion.setupSettings(FOSettings settings, String mime) Deprecated. -
Uses of Docx4JException in org.docx4j.convert.out.XSLFO
Methods in org.docx4j.convert.out.XSLFO that throw Docx4JExceptionModifier and TypeMethodDescriptionXSLFOExporterNonXSLT.export()Deprecated.Generate XSL FO for the entire MainDocumentPart.voidXSLFOExporterNonXSLT.output(Document xslfo, OutputStream os, org.apache.fop.configuration.Configuration fopConfigZZZ) Deprecated.Constructors in org.docx4j.convert.out.XSLFO that throw Docx4JExceptionModifierConstructorDescriptionXSLFOExporterNonXSLT(WordprocessingMLPackage wmlPackage, FOSettings pdfSettings) Deprecated. -
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
Methods in org.docx4j.model that throw Docx4JExceptionConstructors 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) booleanCustomXmlDataStorage.cachedXPathGetBoolean(String xpath, String prefixMappings) 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.private ObjectBookmarkRenumber.convertObject(Object id, Class c) OpenDoPEHandlerComponents.fetchComponents()Component processingprivate voidUpdateXmlFromDocumentSurface.findSdts(UpdateXmlFromDocumentSurface.SdtFinder sdtPrFinder) private voidUpdateXmlFromDocumentSurface.findSdtsInPart(ContentAccessor content, UpdateXmlFromDocumentSurface.SdtFinder sdtFinder) private voidOpenDoPEReverter.findSdtsInTemplate(WordprocessingMLPackage pkg, OpenDoPEReverter.TopLevelSdtTemplateFinder sdtPrFinder, boolean instanceCountOnly) private voidOpenDoPEReverter.findSdtsInTemplatePart(ContentAccessor content, OpenDoPEReverter.TopLevelSdtTemplateFinder sdtPrFinder, boolean instanceCountOnly) private static BooleanBindingTraverserXSLT.getCheckboxResult(CTDataBinding dataBinding, CustomXmlPart part) static 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.BindingTraverserStAX.StaXBindingHandler.handleSdt(SdtElement sdt) OpenDoPEHandler.ShallowTraversorStAX.handleSdt(SdtElement sdt) private voidOpenDoPEReverter.handleSdtsInInstance()private voidOpenDoPEReverter.handleSdtsInInstancePart(ContentAccessor content) protected AtomicIntegerBindingHandler.initBookmarkIdStart()static voidOpenDoPEHandler.preprocess()Preprocess content controls which have tag "od:condition|od:repeat|od:component".voidOpenDoPEIntegrity.process(WordprocessingMLPackage wordMLPackage) private voidOpenDoPEIntegrity.process(JaxbXmlPart part) voidOpenDoPEIntegrityAfterBinding.process(WordprocessingMLPackage wordMLPackage) private voidOpenDoPEIntegrityAfterBinding.process(JaxbXmlPart part) OpenDoPEHandlerComponents.FindComponentsTraversor.processBindingRoleIfAny(WordprocessingMLPackage wordMLPackage, Object sdt) This applies to any sdt which might be a conditional|repeatOpenDoPEHandlerComponents.FindComponentsTraversor.processOpenDopeComponent(WordprocessingMLPackage srcPackage, String componentId, String xpathId) Convert the component sdt to w:altChunkprotected 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.private voidOpenDoPEReverter.repairBoundSdts()If an SDT contained a hyperlink, we will have removed its w:dataBinding and w:text.booleanOpenDoPEReverter.revert()private booleanOpenDoPEReverter.sanityCheck()What about the case where the one repeat is used twice? That's ok, as long as there is some other object between the two lots of repeats.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) private voidUpdateXmlFromDocumentSurface.trimParts(WordprocessingMLPackage output, RelationshipsPart rp, boolean modeDelete) 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) booleanCustomXmlDataStorage.xpathGetAsBoolean(String xpathB, String prefixMappings) 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.MailMergerWithNext.perform(WordprocessingMLPackage input, List<Object> contentList, List<Map<DataFieldName, String>> data, MailMerger.FormTextFieldNames formTextFieldNames) Perform the merge.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.MailMerger.performOnInstance(WordprocessingMLPackage input, List<Object> contentList, Map<DataFieldName, String> datamap, MailMerger.FormTextFieldNames formTextFieldNames) MailMerger.performOverList(WordprocessingMLPackage input, List<Object> contentList, List<Map<DataFieldName, String>> data, MailMerger.FormTextFieldNames formTextFieldNames) The idea is to be able to perform a mail merge on content from main document part, or a header/footer etc. -
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.model.styles
Methods in org.docx4j.model.styles that throw Docx4JExceptionModifier and TypeMethodDescriptionprivate voidStyleTree.createVirtualStylesForDocDefaults(DocDefaults docDefaults, Style normal) Manufacture a paragraph style from the following, so it can be used as the root of our paragraph style tree. -
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 TypeMethodDescriptionprivate voidLoadFromZipNG.addPartsFromRelationships(HashMap<String, LoadFromZipNG.ByteArray> partByteArrays, Base source, RelationshipsPart rp, ContentTypeManager ctm) Deprecated.voidSaveToZipFile.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) private voidLoadFromZipNG.getPart(HashMap<String, LoadFromZipNG.ByteArray> partByteArrays, OpcPackage pkg, RelationshipsPart rp, Relationship r, ContentTypeManager ctm) Deprecated.Get a Part (except a relationships part), and all its related parts.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.private RelationshipsPartLoadFromZipNG.getRelationshipsPartFromZip(Base p, HashMap<String, LoadFromZipNG.ByteArray> partByteArrays, String partName) Deprecated.private voidLoadFromZipNG.populatePackageRels(HashMap<String, LoadFromZipNG.ByteArray> partByteArrays, RelationshipsPart rp) Deprecated.private OpcPackageLoadFromZipNG.process(HashMap<String, LoadFromZipNG.ByteArray> partByteArrays) Deprecated.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 TypeMethodDescriptionprivate voidLoad3.addPartsFromRelationships(Base source, RelationshipsPart rp, ContentTypeManager ctm) voidLoad3.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.private RelationshipsPartLoad3.getRelationshipsPartFromZip(Base p, String partName) private voidLoad3.populatePackageRels(RelationshipsPart rp) 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).private static OpcPackageOpcPackage.load(PackageIdentifier pkgIdentifier, InputStream inputStream, String password) Convenience method to create a WordprocessingMLPackage or PresentationMLPackage from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).private static OpcPackageOpcPackage.load(PackageIdentifier pkgIdentifier, 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 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) booleanCustomXmlDataStoragePart.cachedXPathGetBoolean(String xpath, String prefixMappings) booleanCustomXmlPart.cachedXPathGetBoolean(String xpath, String prefixMappings) booleanXmlPart.cachedXPathGetBoolean(String xpath, String prefixMappings) For OpenDope Conditions, use XPath's conversion rules for boolean rather than Java's, since XPath's define useful behaviour for node-set and number.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) private TextFontThemePart.getMajorComplexScript()private TextFontThemePart.getMajorEastAsian()private FontCollectionThemePart.getMajorFontCollection()private TextFontThemePart.getMajorHighAnsi()ThemePart.getMajorLatin()private TextFontThemePart.getMinorComplexScript()private TextFontThemePart.getMinorEastAsian()private FontCollectionThemePart.getMinorFontCollection()private TextFontThemePart.getMinorHighAnsi()private TextFontThemePart.getMinorLatin()ThemePart.getScriptToTypefaceMajor()ThemePart.getScriptToTypefaceMinor()private TextFontThemePart.getTextFontFromTheme(STTheme type) 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.booleanCustomXmlDataStoragePart.xpathGetAsBoolean(String xpath, String prefixMappings) booleanCustomXmlPart.xpathGetAsBoolean(String xpathB, String prefixMappings) booleanXmlPart.xpathGetAsBoolean(String xpathB, String prefixMappings) 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 TypeMethodDescriptionbooleanJaxbCustomXmlDataStoragePart.cachedXPathGetBoolean(String xpath, String prefixMappings) JaxbCustomXmlDataStoragePart.cachedXPathGetString(String xpath, String prefixMappings) booleanJaxbCustomXmlDataStoragePart.setNodeValueAtXPath(String xpath, String value, String prefixMappings) voidbooleanJaxbCustomXmlDataStoragePart.xpathGetAsBoolean(String xpathB, String prefixMappings) JaxbCustomXmlDataStoragePart.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 TypeMethodDescriptionprivate static voidAlteredParts.addPartsForRels(List<AlteredParts.Alteration> list, List<Relationship> rels, RelationshipsPart rp) private static voidAlteredParts.addTree(List<AlteredParts.Alteration> list, RelationshipsPart rp) static 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) private static PartAlteredParts.toStorageFormat(Part part) -
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.private static org.apache.xmlgraphics.image.loader.ImageInfoBinaryPartAbstractImage.ensureFormatIsSupported(File imageFile, byte[] bytes, boolean isLoad) private static org.apache.xmlgraphics.image.loader.ImageInfoBinaryPartAbstractImage.ensureFormatIsSupported(URL url, File imageFile, byte[] bytes, boolean isLoad) 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.samples
Methods in org.docx4j.samples that throw Docx4JExceptionModifier and TypeMethodDescriptionstatic voidFootnoteAdd.addFootnote(int i, String text, FootnotesPart footnotesPart, R r) ContentControlBindingExtensionsOld.MyDocxFetcher.getDocxFromIRI(String iri) private voidprivate static voidFieldsDiagnostics.listFieldsInPart(String partName, List<Object> contentList, StringBuilder sb) (package private) voidSectPrList.listSectPr(WordprocessingMLPackage wordMLPackage) static voidstatic voidstatic voidstatic voidstatic voidstatic voidprivate static voidFieldsDiagnostics.pkgReport(WordprocessingMLPackage wordMLPackage, StringBuilder sb) static voidContentControlsInfoParts.printInfo(Part p, StringBuilder sb, String indent) private static voidPartsStrip.processFile(File inputfile, String outputfilepath) static voidstatic voidContentControlsInfoParts.traverseRelationships(OpcPackage wordMLPackage, RelationshipsPart rp, StringBuilder sb, String indent) static voidPartsStrip.traverseRelationships(WordprocessingMLPackage wordMLPackage, RelationshipsPart rp, StringBuilder sb, String indent) -
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) -
Uses of Docx4JException in org.pptx4j.samples
Methods in org.pptx4j.samples that throw Docx4JException -
Uses of Docx4JException in org.xlsx4j.samples
Methods in org.xlsx4j.samples that throw Docx4JExceptionModifier and TypeMethodDescriptionprivate static voidXlsxAddComment.addContent(WorksheetPart sheet) private static voidCellContentExtractor.displayContent(WorksheetPart sheet, DataFormatter formatter) static voidprivate static voidCellContentRemediator.remediateStrings(WorksheetPart sheet)