| Modifier and Type | Method and Description |
|---|---|
static void |
Docx4J.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 void |
Docx4J.bind(WordprocessingMLPackage wmlPackage,
Document xmlDocument,
int flags)
Bind the content controls of the passed document to the xml.
|
static void |
Docx4J.bind(WordprocessingMLPackage wmlPackage,
Document xmlDocument,
int flags,
DocxFetcher docxFetcher)
Bind the content controls of the passed document to the xml.
|
static void |
Docx4J.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 void |
Docx4J.bind(WordprocessingMLPackage wmlPackage,
InputStream xmlDocument,
int flags)
Bind the content controls of the passed document to the xml.
|
static void |
Docx4J.bind(WordprocessingMLPackage wmlPackage,
String xmlDocument,
int flags)
Bind the content controls of the passed document to the xml.
|
static WordprocessingMLPackage |
Docx4J.clone(WordprocessingMLPackage wmlPackage)
Duplicate the document
|
protected static Exporter<FOSettings> |
Docx4J.getFOExporter(int flags) |
protected static void |
Docx4J.insertXMLData(CustomXmlPart customXmlDataStoragePart,
Document xmlDocument) |
static WordprocessingMLPackage |
Docx4J.load(File inFile)
Load a Docx Document from a File
|
static OpcPackage |
Docx4J.load(File inFile,
Filetype type)
Load a docx/pptx/xlsx from a File, where you know in advance what type (zip, compound, flat opc)
it is.
|
static WordprocessingMLPackage |
Docx4J.load(InputStream inStream)
Load a Docx Document from an InputStream
|
static WordprocessingMLPackage |
Docx4J.load(PackageIdentifier pkgIdentifier,
File inFile)
Load a Docx Document from a File, assigning it an identifier for eventing
|
static WordprocessingMLPackage |
Docx4J.load(PackageIdentifier pkgIdentifier,
InputStream inStream)
Load a Docx Document from an InputStream, assigning it an identifier for eventing
|
static JAXBResult |
XmlUtils.prepareJAXBResult(JAXBContext context)
Prepare a JAXB transformation result for some given context.
|
protected static void |
Docx4J.removeSDTs(WordprocessingMLPackage wmlPackage) |
static void |
Docx4J.save(OpcPackage pkg,
File outFile)
Save a Ddocx/pptx/xlsx to a File.
|
static void |
Docx4J.save(OpcPackage pkg,
File outFile,
int flags)
Save a docx/pptx/xlsx to a File.
|
static void |
Docx4J.save(OpcPackage pkg,
File outFile,
int flags,
String password)
Save a docx/pptx/xlsx to a File.
|
static void |
Docx4J.save(OpcPackage pkg,
OutputStream outStream)
Save a docx/pptx/xlsx to an OutputStream using flag Docx4J.FLAG_SAVE_ZIP_FILE
|
static void |
Docx4J.save(OpcPackage pkg,
OutputStream outStream,
int flags)
Save a docx/pptx/xlsx to an OutputStream.
|
static void |
Docx4J.save(OpcPackage pkg,
OutputStream outStream,
int flags,
String password)
Save this pkg to an OutputStream.
|
static void |
Docx4J.toFO(FOSettings settings,
OutputStream outputStream,
int flags)
Convert the document via xsl-fo
|
static void |
Docx4J.toHTML(HTMLSettings settings,
OutputStream outputStream,
int flags)
Convert the document to HTML
|
static void |
Docx4J.toHTML(WordprocessingMLPackage wmlPackage,
String imageDirPath,
String imageTargetUri,
OutputStream outputStream)
Convert the document to HTML
|
static void |
Docx4J.toPDF(WordprocessingMLPackage wmlPackage,
OutputStream outputStream)
Convenience method to convert the document to PDF
|
static void |
XmlUtils.transform(Document doc,
Templates template,
Map<String,Object> transformParameters,
Result result) |
static void |
XmlUtils.transform(Source source,
Templates template,
Map<String,Object> transformParameters,
Result result)
Transform an input document using XSLT
|
static void |
XmlUtils.w3CDomNodeToOutputStream(Node n,
OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
FlatOpcXmlImporter.get() |
static Part |
FlatOpcXmlImporter.getRawPart(ContentTypeManager ctm,
Part pkgPart,
Relationship rel)
Get a Part (except a relationships part), but not its relationships part
or related parts.
|
Part |
FlatOpcXmlImporter.getRawPart(ContentTypeManager ctm,
String resolvedPartUri,
Relationship rel) |
RelationshipsPart |
FlatOpcXmlImporter.getRelationshipsPart(Part part)
Get the Relationships Part (if there is one) for a given Part.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Word2003XmlConverter.main(String[] args)
Example of usage
|
| Constructor and Description |
|---|
Word2003XmlConverter(Source source) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
XHTMLImporter.convert(File file,
String baseUrl)
Convert the well formed XHTML contained in file to a list of WML objects.
|
List<Object> |
XHTMLImporter.convert(InputSource is,
String baseUrl)
Convert the well formed XHTML from the specified SAX InputSource
|
List<Object> |
XHTMLImporter.convert(InputStream is,
String baseUrl) |
List<Object> |
XHTMLImporter.convert(Node node,
String baseUrl) |
List<Object> |
XHTMLImporter.convert(Reader reader,
String baseUrl) |
List<Object> |
XHTMLImporter.convert(Source source,
String baseUrl) |
List<Object> |
XHTMLImporter.convert(String content,
String baseUrl)
Convert the well formed XHTML contained in the string to a list of WML objects.
|
List<Object> |
XHTMLImporter.convert(URL url)
Convert the well formed XHTML found at the specified URI to a list of WML objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ConversionHyperlinkHandler.handleHyperlink(ConversionHyperlinkHandler.Model hyperlinkModel,
OpcPackage opcPackage,
Part currentPart) |
void |
Output.output(Result result) |
void |
FORenderer.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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractVisitorExporterDelegate.appendDocumentFooter(CC conversionContext,
Document document,
Element documentRoot) |
protected void |
AbstractVisitorExporterDelegate.appendDocumentHeader(CC conversionContext,
Document document,
Element documentRoot) |
protected void |
AbstractVisitorExporterDelegate.appendPartContent(CC conversionContext,
Document document,
Part part,
List<Object> content,
Element currentParent) |
protected void |
AbstractVisitorExporterDelegate.appendSectionFooter(CC conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected void |
AbstractVisitorExporterDelegate.appendSectionHeader(CC conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected abstract Element |
AbstractVisitorExporterDelegate.createDocumentRoot(CC conversionContext,
Document document) |
protected OutputStream |
AbstractExporter.createIntermediateOutputStream(OutputStream outputStream) |
protected Element |
AbstractVisitorExporterDelegate.createSectionBody(CC conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected Element |
AbstractVisitorExporterDelegate.createSectionRoot(CC conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected abstract ConversionSectionWrappers |
AbstractExporter.createWrappers(CS conversionSettings,
PK preprocessedPackage) |
protected ConversionSectionWrappers |
AbstractWmlExporter.createWrappers(CS conversionSettings,
WordprocessingMLPackage preprocessedPackage) |
void |
AbstractExporter.export(CS conversionSettings,
OutputStream outputStream) |
void |
Exporter.export(T conversionSettings,
OutputStream outputStream) |
protected void |
AbstractVisitorExporterDelegate.generateBodyContent(CC conversionContext,
Document document,
List<Object> content,
Element currentParent) |
protected Templates |
AbstractXsltExporterDelegate.getDefaultTemplate() |
protected abstract Document |
AbstractXsltExporterDelegate.getSourceDocument(CS conversionSettings,
CC conversionContext) |
protected Document |
WmlXsltExporterDelegate.getSourceDocument(CS conversionSettings,
CC conversionContext) |
protected Templates |
AbstractXsltExporterDelegate.getTemplates(CS conversionSettings,
CC conversionContext) |
void |
AbstractConversionContext.handleHyperlink(ConversionHyperlinkHandler.Model model) |
void |
AbstractWmlConversionContext.handleHyperlink(ConversionHyperlinkHandler.Model model) |
protected Templates |
AbstractXsltExporterDelegate.loadDefaultTemplates() |
protected void |
AbstractExporter.postprocess(CS conversionSettings,
AbstractConversionContext conversionContext,
OutputStream intermediateOutputStream,
OutputStream outputStream) |
protected abstract PK |
AbstractExporter.preprocess(CS conversionSettings) |
protected WordprocessingMLPackage |
AbstractWmlExporter.preprocess(CS conversionSettings) |
void |
AbstractXsltExporterDelegate.process(CS conversionSettings,
CC conversionContext,
OutputStream outputStream) |
protected abstract void |
AbstractExporter.process(CS conversionSettings,
CC conversionContext,
OutputStream outputStream) |
protected void |
AbstractWmlExporter.process(CS conversionSettings,
CC conversionContext,
OutputStream outputStream) |
abstract void |
AbstractExporterDelegate.process(CS conversionSettings,
CC conversionContext,
OutputStream outputStream) |
void |
AbstractVisitorExporterDelegate.process(CS conversionSettings,
CC conversionContext,
OutputStream outputStream) |
static OpcPackage |
Preprocess.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_COPY |
static WordprocessingMLPackage |
Preprocess.process(WordprocessingMLPackage wmlPackage,
Set<String> features)
This method applies those features in the preprocessing, that may be used with an
WordprocessingMLPackage.
|
static ConversionSectionWrappers |
CreateWrappers.process(WordprocessingMLPackage wmlPackage,
Set<String> features)
This method creates the Sections for the conversion.
|
protected void |
AbstractVisitorExporterDelegate.writeDocument(CC conversionContext,
Document document,
OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
protected static Part |
PartialDeepCopy.copyPart(Part part,
OpcPackage targetPackage,
boolean deepCopy) |
protected static OpcPackage |
PartialDeepCopy.createPackage(OpcPackage opcPackage) |
protected static void |
PartialDeepCopy.deepCopyContent(Part source,
Part destination) |
protected static Part |
PartialDeepCopy.deepCopyPart(OpcPackage opcPackage,
Base targetParent,
Part sourcePart,
Set<String> relationshipTypes) |
protected static void |
PartialDeepCopy.deepCopyRelationships(OpcPackage opcPackage,
Base sourcePart,
Base targetPart,
Set<String> relationshipTypes) |
static OpcPackage |
PartialDeepCopy.process(OpcPackage opcPackage,
Set<String> relationshipTypes) |
protected static void |
PartialDeepCopy.shallowCopyContent(Part source,
Part destination) |
| Modifier and Type | Method and Description |
|---|---|
static ConversionSectionWrappers |
ConversionSectionWrapperFactory.process(WordprocessingMLPackage wmlPackage,
boolean dummySections,
boolean dummyPageNumbering) |
| Modifier and Type | Method and Description |
|---|---|
void |
FlatOpcXmlCreator.addPartsFromRelationships(RelationshipsPart rp) |
static Part |
FlatOpcXmlCreator.createRawBinaryPart(Part part) |
static Part |
FlatOpcXmlCreator.createRawXmlPart(Part part) |
Package |
FlatOpcXmlCreator.get() |
static Document |
FlatOpcXmlCreator.getFlatDomDocument(WordprocessingMLPackage wordMLPackage)
Return the WordML package in Flat OPC format, as a W3C DOM document
|
void |
FlatOpcXmlCreator.marshal(OutputStream os) |
void |
FlatOpcXmlCreator.output(Result result) |
void |
FlatOpcXmlCreator.savePart(Part part) |
protected void |
FlatOpcXmlCreator.saveRawBinaryPart(Part part) |
void |
FlatOpcXmlCreator.saveRawXmlPart(Part part) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
HTMLExporterVisitorDelegate.appendDocumentFooter(HTMLConversionContext conversionContext,
Document document,
Element documentRoot) |
protected void |
HTMLExporterVisitorDelegate.appendDocumentHeader(HTMLConversionContext conversionContext,
Document document,
Element documentRoot) |
protected void |
HTMLExporterVisitorDelegate.appendPartContent(HTMLConversionContext conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent,
String className,
Part part,
List<Object> content) |
protected void |
HTMLExporterVisitorDelegate.appendSectionFooter(HTMLConversionContext conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected void |
HTMLExporterVisitorDelegate.appendSectionHeader(HTMLConversionContext conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected Element |
HTMLExporterVisitorDelegate.createDocumentRoot(HTMLConversionContext conversionContext,
Document document) |
protected Element |
HTMLExporterVisitorDelegate.createSectionBody(HTMLConversionContext conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected Element |
HTMLExporterVisitorDelegate.createSectionRoot(HTMLConversionContext conversionContext,
Document document,
ConversionSectionWrapper sectionWrapper,
Element currentParent) |
protected Document |
HTMLExporterXslt.HTMLExporterXsltDelegate.getSourceDocument(HTMLSettings conversionSettings,
HTMLConversionContext conversionContext) |
protected Templates |
HTMLExporterXslt.HTMLExporterXsltDelegate.loadDefaultTemplates() |
void |
HtmlExporterNG2.output(Result result)
Deprecated.
|
void |
HTMLExporterXslt.HTMLExporterXsltDelegate.process(HTMLSettings conversionSettings,
HTMLConversionContext conversionContext,
OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
static String |
FopConfigUtil.createDefaultConfiguration(Mapper fontMapper,
Set<String> fontsInUse) |
| Modifier and Type | Class and Description |
|---|---|
class |
XPathBinderAssociationIsPartialException |
| Constructor and Description |
|---|
ImmutablePropertyResolver(WordprocessingMLPackage wordMLPackage) |
PropertyResolver(WordprocessingMLPackage wordMLPackage) |
| Modifier and Type | Class and Description |
|---|---|
class |
W15RepeatZeroException
In 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).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ValueInserterPlainTextImpl.addBrRunToDocFrag(DocumentFragment docfrag,
RPr rPr) |
protected void |
ValueInserterPlainTextForOpenAPI3.addHyperlinkToDocFrag(JaxbXmlPart sourcePart,
DocumentFragment docfrag,
String url) |
protected void |
ValueInserterPlainTextImpl.addHyperlinkToDocFrag(JaxbXmlPart sourcePart,
DocumentFragment docfrag,
String url) |
void |
XsltFinisher.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).
|
void |
BindingHandler.applyBindings() |
void |
BindingHandler.applyBindings(JaxbXmlPart part) |
static void |
BindingHandler.applyBindings(WordprocessingMLPackage wordMLPackage)
Deprecated.
|
String |
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.
|
WordprocessingMLPackage |
OpenDoPEHandlerComponents.fetchComponents()
Component processing
|
static CustomXmlPart |
CustomXmlDataStoragePartSelector.getCustomXmlDataStoragePart(WordprocessingMLPackage wordMLPackage)
We need the item id of the custom xml part.
|
Document |
CustomXmlDataStorageImpl.getDocument() |
Document |
CustomXmlDataStorage.getDocument()
Write the contents of this object to the org.w3c.dom.Document
|
InputStream |
DocxFetcher.getDocxFromIRI(String iri) |
String |
CustomXmlDataStorage.getXML()
Get the XML as a String.
|
static void |
UpdateXmlFromDocumentSurface.main(String[] args) |
WordprocessingMLPackage |
OpenDoPEHandler.preprocess()
Preprocess content controls which have tag
"od:condition|od:repeat|od:component".
|
void |
OpenDoPEIntegrity.process(WordprocessingMLPackage wordMLPackage) |
void |
OpenDoPEIntegrityAfterBinding.process(WordprocessingMLPackage wordMLPackage) |
protected void |
ValueInserterPlainTextImpl.processString(JaxbXmlPart sourcePart,
DocumentFragment docfrag,
String text,
RPr rPr) |
void |
RemovalHandler.removeSDTs(JaxbXmlPart<? extends Object> part)
Removes Structured Document Tags from a document part, preserving their
contents.
|
void |
RemovalHandler.removeSDTs(JaxbXmlPart<? extends Object> part,
RemovalHandler.Quantifier quantifier,
String... keys)
Removes Structured Document Tags from a document part, preserving their
contents.
|
void |
RemovalHandler.removeSDTs(WordprocessingMLPackage wordMLPackage)
Removes Structured Document Tags from the main document part, headers, and footer,
preserving their contents.
|
void |
RemovalHandler.removeSDTs(WordprocessingMLPackage wordMLPackage,
RemovalHandler.Quantifier quantifier,
String... keys)
Removes Structured Document Tags from the main document part, headers, and footer,
preserving their contents.
|
boolean |
OpenDoPEReverter.revert() |
void |
CustomXmlDataStorage.setDocument(Document doc) |
void |
CustomXmlDataStorage.setDocument(InputStream is)
Set the contents of this object from the input stream
|
boolean |
CustomXmlDataStorage.setNodeValueAtXPath(String xpath,
String value,
String prefixMappings) |
DocumentFragment |
ValueInserterPlainTextForOpenAPI3.toOpenXml(Xpaths.Xpath.DataBinding dataBinding,
RPr rPr,
boolean multiLine,
BindingTraverserXSLT.BookmarkCounter bookmarkCounter,
String val,
JaxbXmlPart sourcePart) |
DocumentFragment |
ValueInserterPlainText.toOpenXml(Xpaths.Xpath.DataBinding dataBinding,
RPr rPr,
boolean multiLine,
BindingTraverserXSLT.BookmarkCounter bookmarkCounter,
String result,
JaxbXmlPart sourcePart) |
DocumentFragment |
ValueInserterPlainTextImpl.toOpenXml(Xpaths.Xpath.DataBinding dataBinding,
RPr rPr,
boolean multiLine,
BindingTraverserXSLT.BookmarkCounter bookmarkCounter,
String val,
JaxbXmlPart sourcePart) |
Object |
BindingTraverserNonXSLT.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
Map<String,Xpaths.Xpath> xpathsMap) |
Object |
BindingTraverserInterface.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
Map<String,Xpaths.Xpath> xpathsMap) |
abstract Object |
BindingTraverserCommonImpl.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
Map<String,Xpaths.Xpath> xpathsMap) |
Object |
BindingTraverserXSLT.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
Map<String,Xpaths.Xpath> xpathsMap) |
List<CustomXmlPart> |
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).
|
void |
CustomXmlDataStorageImpl.writeDocument(OutputStream os) |
void |
CustomXmlDataStorage.writeDocument(OutputStream os)
Write the contents of this object to the output stream
|
String |
CustomXmlDataStorage.xpathGetString(String xpath,
String prefixMappings)
Get the data pointed to by the xpath.
|
| Constructor and Description |
|---|
OpenDoPEHandler(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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FieldFormattingException |
class |
FieldValueException |
| Modifier and Type | Method and Description |
|---|---|
static String |
FormattingSwitchHelper.applyFormattingSwitch(WordprocessingMLPackage wmlPackage,
FldSimpleModel model,
String value) |
static String |
FormattingSwitchHelper.applyFormattingSwitch(WordprocessingMLPackage wmlPackage,
FldSimpleModel model,
String value,
String lang) |
static void |
FieldsPreprocessor.complexifyFields(JaxbXmlPart part)
Convert any w:fldSimple in this part to complex field.
|
void |
FieldUpdater.update(boolean processHeadersAndFooters) |
void |
FieldUpdater.updateComplex(JaxbXmlPart part) |
void |
FieldUpdater.updatePart(JaxbXmlPart part) |
void |
FieldUpdater.updateSimple(JaxbXmlPart part) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
MailMerger.canonicaliseStarts(ComplexFieldLocator fl,
List<FieldRef> fieldRefs) |
static WordprocessingMLPackage |
MailMerger.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 WordprocessingMLPackage |
MailMerger.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 void |
MailMergerWithNext.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 void |
MailMerger.performMerge(WordprocessingMLPackage input,
Map<DataFieldName,String> data,
boolean processHeadersAndFooters)
Perform merge on a single instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
AbstractConversionImageHandler.createEncodedImage(BinaryPart binaryPart,
byte[] bytes) |
protected abstract String |
AbstractConversionImageHandler.createStoredImage(BinaryPart binaryPart,
byte[] bytes) |
protected String |
FileConversionImageHandler.createStoredImage(BinaryPart binaryPart,
byte[] bytes) |
protected String |
AbstractConversionImageHandler.doHandleImage(AbstractWordXmlPicture picture,
Relationship relationship,
BinaryPart part) |
String |
AbstractConversionImageHandler.handleImage(AbstractWordXmlPicture picture,
Relationship relationship,
BinaryPart part) |
String |
ConversionImageHandler.handleImage(AbstractWordXmlPicture picture,
Relationship relationship,
BinaryPart part) |
protected String |
AbstractConversionImageHandler.handleInternalImage(AbstractWordXmlPicture picture,
Relationship relationship,
BinaryPart binaryPart) |
protected boolean |
AbstractConversionImageHandler.isInternalImage(AbstractWordXmlPicture picture,
Relationship relationship,
BinaryPart part) |
protected File |
FileConversionImageHandler.setupRootFolder(BinaryPart binaryPart) |
protected String |
FileConversionImageHandler.storeImage(BinaryPart binaryPart,
byte[] bytes,
File folder,
String filename) |
| Modifier and Type | Method and Description |
|---|---|
static String |
PackageRelsUtil.getNameOfMainPart(RelationshipsPart packageRels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ContentTypeManager.isContentEqual(ContentTypeManager other) |
| Modifier and Type | Class and Description |
|---|---|
class |
InvalidFormatException |
class |
PartTooLargeException |
class |
PartUnrecognisedException |
| Modifier and Type | Method and Description |
|---|---|
void |
SaveToZipFile.addPartsFromRelationships(ZipOutputStream out,
RelationshipsPart rp)
Deprecated.
|
OpcPackage |
LoadFromZipNG.get(File f)
Deprecated.
|
OpcPackage |
LoadFromZipNG.get(InputStream is)
Deprecated.
|
OpcPackage |
LoadFromZipNG.get(String filepath)
Deprecated.
|
static Part |
LoadFromZipNG.getBinaryPart(HashMap<String,LoadFromZipNG.ByteArray> partByteArrays,
ContentTypeManager ctm,
String resolvedPartUri)
Deprecated.
|
static BinaryPart |
ExternalResourceUtils.getExternalResource(String absoluteTarget) |
static Part |
LoadFromZipNG.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.
|
static Part |
Load.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.
|
RelationshipsPart |
LoadFromZipNG.getRelationshipsPart(HashMap<String,LoadFromZipNG.ByteArray> partByteArrays,
Part part)
Deprecated.
Get the Relationships Part (if there is one) for a given Part.
|
boolean |
SaveToZipFile.save(File docxFile)
Deprecated.
|
boolean |
SaveToZipFile.save(OutputStream realOS)
Deprecated.
|
boolean |
SaveToZipFile.save(String filepath)
Deprecated.
|
boolean |
SaveToZipFile.saveFlatOPC(OutputStream realOS)
Deprecated.
|
void |
SaveToZipFile.savePart(ZipOutputStream out,
Part part)
Deprecated.
|
protected void |
SaveToZipFile.saveRawBinaryPart(ZipOutputStream out,
Part part)
Deprecated.
|
void |
SaveToZipFile.saveRawXmlPart(ZipOutputStream out,
Part part)
Deprecated.
|
void |
SaveToZipFile.saveRawXmlPart(ZipOutputStream out,
Part part,
String zipEntryName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Save.addPartsFromRelationships(RelationshipsPart rp) |
OpcPackage |
Load3.get() |
Part |
Load3.getBinaryPart(ContentTypeManager ctm,
String resolvedPartUri) |
Part |
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.
|
RelationshipsPart |
Load3.getRelationshipsPart(Part part)
Get the Relationships Part (if there is one) for a given Part.
|
boolean |
Save.save(OutputStream realOS) |
void |
Save.savePart(Part part) |
void |
SaveSlides.savePart(Part part) |
void |
Save.saveRawXmlPart(Part part) |
| Modifier and Type | Method and Description |
|---|---|
void |
UnzippedPartStore.finishSave() |
void |
PartStore.finishSave()
Anything necessary to perfect the save operation.
|
void |
ZipPartStore.finishSave() |
ZipPartStore.ByteArray |
ZipPartStore.getByteArray(String partName)
This method is to facilitate updating the part without
JAXB unmarshalling then marshalling.
|
long |
UnzippedPartStore.getPartSize(String partName) |
long |
PartStore.getPartSize(String partName)
The size of this part in bytes.
|
long |
ZipPartStore.getPartSize(String partName) |
InputStream |
UnzippedPartStore.loadPart(String partName) |
InputStream |
PartStore.loadPart(String partName)
Returns null if the part does not exist.
|
InputStream |
ZipPartStore.loadPart(String partName) |
void |
UnzippedPartStore.saveBinaryPart(Part part) |
void |
PartStore.saveBinaryPart(Part part) |
void |
ZipPartStore.saveBinaryPart(Part part) |
void |
UnzippedPartStore.saveContentTypes(ContentTypeManager ctm) |
void |
PartStore.saveContentTypes(ContentTypeManager ctm) |
void |
ZipPartStore.saveContentTypes(ContentTypeManager ctm) |
void |
UnzippedPartStore.saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) |
void |
PartStore.saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) |
void |
ZipPartStore.saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) |
void |
UnzippedPartStore.saveJaxbXmlPart(JaxbXmlPart part) |
void |
PartStore.saveJaxbXmlPart(JaxbXmlPart part) |
void |
ZipPartStore.saveJaxbXmlPart(JaxbXmlPart part) |
void |
UnzippedPartStore.saveXmlPart(XmlPart part) |
void |
PartStore.saveXmlPart(XmlPart part) |
void |
ZipPartStore.saveXmlPart(XmlPart part) |
void |
PartStore.setOutputStream(OutputStream os) |
| Constructor and Description |
|---|
UnzippedPartStore(File dir) |
ZipPartStore(File f) |
ZipPartStore(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
OpcPackage.cloneAs(String targetContentType) |
Object |
ProtectionSettings.getSignatureHelper()
get the SignatureHelper object, so you can sign the package using custom settings.
|
static SpreadsheetMLPackage |
SpreadsheetMLPackage.load(File xlsxFile)
Convenience method to create a SpreadsheetMLPackage
from an existing File (.xlsx or .xml Flat OPC).
|
static PresentationMLPackage |
PresentationMLPackage.load(File pptxFile)
Convenience method to create a PresentationMLPackage
from an existing File (.pptx or .xml Flat OPC).
|
static OpcPackage |
OpcPackage.load(File docxFile)
Convenience method to create a WordprocessingMLPackage
or PresentationMLPackage
from an existing File (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
static WordprocessingMLPackage |
WordprocessingMLPackage.load(File docxFile)
Convenience method to create a WordprocessingMLPackage
from an existing File (.docx zip or .xml Flat OPC).
|
static OpcPackage |
OpcPackage.load(File file,
Filetype type)
convenience method to load from a file, where you know the Filetype
(if it is Filetype.ZippedPackage, ZipFile will be used instead of ZipArchiveInputStream)
|
static OpcPackage |
OpcPackage.load(File file,
Filetype type,
String password)
convenience method to load from a file, where you know the Filetype
(if it is Filetype.ZippedPackage, ZipFile will be used instead of ZipArchiveInputStream)
|
static OpcPackage |
OpcPackage.load(File docxFile,
String password)
Convenience method to create a WordprocessingMLPackage
or PresentationMLPackage
from an existing File (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
static SpreadsheetMLPackage |
SpreadsheetMLPackage.load(InputStream xlsxInputStream)
Creates a
SpreadsheetMLPackage from an InputStream. |
static PresentationMLPackage |
PresentationMLPackage.load(InputStream pptxInputStream)
Creates a
PresentationMLPackage from an InputStream. |
static OpcPackage |
OpcPackage.load(InputStream inputStream)
Convenience method to create a WordprocessingMLPackage
or PresentationMLPackage
from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
static WordprocessingMLPackage |
WordprocessingMLPackage.load(InputStream is)
Convenience method to create a WordprocessingMLPackage
from an existing stream(.docx zip or .xml Flat OPC).
|
static OpcPackage |
OpcPackage.load(InputStream is,
boolean docxFormat)
Deprecated.
|
static OpcPackage |
OpcPackage.load(InputStream is,
Filetype type)
convenience method to load a word2007 document
from an existing inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
static OpcPackage |
OpcPackage.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 OpcPackage |
OpcPackage.load(InputStream inputStream,
String password)
Convenience method to create a WordprocessingMLPackage
or PresentationMLPackage
from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
static OpcPackage |
OpcPackage.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 OpcPackage |
OpcPackage.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 OpcPackage |
OpcPackage.load(PackageIdentifier pkgIdentifier,
InputStream inputStream)
Convenience method to create a WordprocessingMLPackage
or PresentationMLPackage
from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
void |
ProtectDocument.restrictFormatting(List<String> allowedStyleNames,
boolean removedNotAllowedFormatting,
boolean autoFormatOverride,
boolean styleLockTheme,
boolean styleLockQFSet)
Restrict allowed formatting to specified styles, no password.
|
void |
ProtectDocument.restrictFormatting(List<String> allowedStyleNames,
boolean removedNotAllowedFormatting,
boolean autoFormatOverride,
boolean styleLockTheme,
boolean styleLockQFSet,
String password)
Restrict allowed formatting to specified styles, password protected.
|
void |
ProtectDocument.restrictFormatting(List<String> allowedStyleNames,
boolean removedNotAllowedFormatting,
boolean autoFormatOverride,
boolean styleLockTheme,
boolean styleLockQFSet,
String password,
HashAlgorithm hashAlgo)
Restrict allowed formatting to specified styles.
|
void |
OpcPackage.save(File file)
Convenience method to save a WordprocessingMLPackage
or PresentationMLPackage to a File.
|
void |
OpcPackage.save(File outFile,
int flags)
Save this pkg to a File.
|
void |
OpcPackage.save(File outFile,
int flags,
String password)
Save this pkg to a file.
|
void |
OpcPackage.save(OutputStream outStream)
Save this pkg to an OutputStream in the usual zipped up format
(Docx4J.FLAG_SAVE_ZIP_FILE)
|
void |
OpcPackage.save(OutputStream outStream,
int flags)
Save this pkg to an OutputStream.
|
void |
OpcPackage.save(OutputStream outStream,
int flags,
String password)
Save this pkg to an OutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
byte[] bytes) |
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
byte[] bytes,
ContentAccessor attachmentPoint) |
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
byte[] bytes,
ContentAccessor attachmentPoint,
int index) |
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
byte[] bytes,
int index) |
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
InputStream is) |
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
InputStream is,
ContentAccessor attachmentPoint) |
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
InputStream is,
ContentAccessor attachmentPoint,
int index) |
AlternativeFormatInputPart |
JaxbXmlPartAltChunkHost.addAltChunk(AltChunkType type,
InputStream is,
int index) |
String |
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.
|
String |
CustomXmlDataStoragePart.cachedXPathGetString(String xpath,
String prefixMappings) |
String |
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.
|
WordprocessingMLPackage |
JaxbXmlPartAltChunkHost.convertAltChunks()
To convert an altChunk of type XHTML, this method requires docx4j-XHTMLImport.jar (LGPL) and its dependencies.
|
E |
JaxbXmlPart.getContents()
Get the live contents of this part (the JAXB object model).
|
Document |
DefaultXmlPart.getDocument() |
Document |
ActiveXControlXmlPart.getDocument() |
abstract Document |
XmlPart.getDocument() |
String |
ThemePart.getFont(STTheme type,
CTLanguage themeFontLang) |
String |
ThemePart.getFontFromTheme(STTheme type) |
TextFont |
ThemePart.getMajorLatin() |
String |
XmlPart.getXML()
Get the XML as a String.
|
String |
CustomXmlDataStoragePart.getXML()
Get the XML as a String.
|
String |
CustomXmlPart.getXML()
Get the XML as a String.
|
boolean |
XmlPart.isContentEqual(Part other) |
boolean |
CustomXmlDataStoragePart.isContentEqual(Part other) |
abstract boolean |
Part.isContentEqual(Part other) |
boolean |
JaxbXmlPart.isContentEqual(Part other) |
void |
JaxbXmlPart.pipe(SAXHandler saxHandler)
Replace the contents of this part with the output of passing it through your SAXHandler.
|
void |
JaxbXmlPart.pipe(StAXHandlerInterface handler)
Replace the contents of this part with the output of passing it through your StAXHandler.
|
void |
JaxbXmlPart.pipe(StAXHandlerInterface handler,
StreamFilter filter)
Replace the contents of this part with the output of passing it through your StAXHandler.
|
void |
XmlPart.setDocument(InputStream is) |
boolean |
XmlPart.setNodeValueAtXPath(String xpath,
String value,
String prefixMappings)
Set the value of the node referenced in the xpath expression.
|
boolean |
CustomXmlDataStoragePart.setNodeValueAtXPath(String xpath,
String value,
String prefixMappings) |
boolean |
CustomXmlPart.setNodeValueAtXPath(String xpath,
String value,
String prefixMappings) |
void |
CustomXmlDataStoragePart.setXML(Document xmlDocument)
Set the XML
|
void |
CustomXmlPart.setXML(Document xmlDocument)
Set the XML data
|
void |
JaxbXmlPart.transform(Templates xslt,
Map<String,Object> transformParameters,
Result result)
Use an XSLT to alter the contents of this part.
|
void |
JaxbXmlPart.variableReplace(Map<String,String> mappings)
unmarshallFromTemplate.
|
List<Node> |
CustomXmlDataStoragePart.xpathGetNodes(String xpathString,
String prefixMappings) |
List<Node> |
CustomXmlPart.xpathGetNodes(String xpathString,
String prefixMappings) |
String |
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.
|
String |
CustomXmlDataStoragePart.xpathGetString(String xpath,
String prefixMappings) |
String |
DocPropsExtendedPart.xpathGetString(String xpathString,
String prefixMappings) |
String |
DocPropsCorePart.xpathGetString(String xpathString,
String prefixMappings) |
String |
CustomXmlPart.xpathGetString(String xpath,
String prefixMappings) |
| Modifier and Type | Method and Description |
|---|---|
String |
JaxbCustomXmlDataStoragePart.cachedXPathGetString(String xpath,
String prefixMappings) |
boolean |
JaxbCustomXmlDataStoragePart.setNodeValueAtXPath(String xpath,
String value,
String prefixMappings) |
void |
JaxbCustomXmlDataStoragePart.setXML(Document xmlDocument) |
List<Node> |
JaxbCustomXmlDataStoragePart.xpathGetNodes(String xpathString,
String prefixMappings) |
String |
JaxbCustomXmlDataStoragePart.xpathGetString(String xpathString,
String prefixMappings) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Patcher.apply(WordprocessingMLPackage otherPackage,
AlteredParts.Alterations alterations) |
List<Relationship> |
RelationshipsPart.differingContent(RelationshipsPart otherRP)
Identify rels common to both parts, but where rels have different
content.
|
static void |
AlteredParts.recurse(AlteredParts.Alterations alterations,
RelationshipsPart thisRP,
RelationshipsPart otherRP) |
static AlteredParts.Alterations |
AlteredParts.start(WordprocessingMLPackage thisPackage,
WordprocessingMLPackage otherPackage) |
| Modifier and Type | Method and Description |
|---|---|
AlternativeFormatInputPart |
AltChunkInterface.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.
|
AlternativeFormatInputPart |
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.
|
AlternativeFormatInputPart |
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.
|
AlternativeFormatInputPart |
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.
|
AlternativeFormatInputPart |
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.
|
AlternativeFormatInputPart |
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.
|
AlternativeFormatInputPart |
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.
|
AlternativeFormatInputPart |
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.
|
WordprocessingMLPackage |
AltChunkInterface.convertAltChunks()
Convert the AltChunks to ordinary
docx WordML content, returning result as
a new WordprocessingMLPackage.
|
OpcPackage |
EmbeddedPackagePart.extractPackage() |
boolean |
BinaryPart.isContentEqual(Part other) |
void |
DocumentSettingsPart.protectRestrictFormatting(boolean autoFormatOverride,
boolean styleLockTheme,
boolean styleLockQFSet,
String password,
HashAlgorithm hashAlgo)
Restrict allowed formatting to specified styles.
|
void |
StyleDefinitionsPart.protectRestrictFormatting(List<String> allowedStyleNames,
boolean removedNotAllowedFormatting,
Set<String> stylesInUse)
Restrict allowed formatting to specified styles.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TocException |
| Modifier and Type | Method and Description |
|---|---|
static void |
XmlSerializerUtil.serialize(Source source,
Result result,
boolean omit_xml_declaration,
boolean method_xml) |
static void |
XmlSerializerUtil.serialize(Source source,
Result result,
boolean omit_xml_declaration,
boolean method_xml,
boolean indent) |
| Modifier and Type | Method and Description |
|---|---|
static GloxPackage |
GloxPackage.load(File gloxFile) |
| Modifier and Type | Method and Description |
|---|---|
static Object |
SvgExporter.nodeToObjectModel(Node n,
Class declaredType) |
Copyright © 2007-2020. All Rights Reserved.