| Modifier and Type | Method and Description |
|---|---|
static OpcPackage |
Docx4J.load(java.io.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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Docx4J.save(OpcPackage pkg,
java.io.File outFile)
Save a Ddocx/pptx/xlsx to a File.
|
static void |
Docx4J.save(OpcPackage pkg,
java.io.File outFile,
int flags)
Save a docx/pptx/xlsx to a File.
|
static void |
Docx4J.save(OpcPackage pkg,
java.io.File outFile,
int flags,
java.lang.String password)
Save a docx/pptx/xlsx to a File.
|
static void |
Docx4J.save(OpcPackage pkg,
java.io.OutputStream outStream)
Save a docx/pptx/xlsx to an OutputStream using flag Docx4J.FLAG_SAVE_ZIP_FILE
|
static void |
Docx4J.save(OpcPackage pkg,
java.io.OutputStream outStream,
int flags)
Save a docx/pptx/xlsx to an OutputStream.
|
static void |
Docx4J.save(OpcPackage pkg,
java.io.OutputStream outStream,
int flags,
java.lang.String password)
Save this pkg to an OutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
FlatOpcXmlImporter.get() |
| Modifier and Type | Method and Description |
|---|---|
static Part |
FlatOpcXmlImporter.getRawPart(ContentTypeManager ctm,
Part pkgPart,
Relationship rel,
OpcPackage targetPkg) |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
AbstractConversionSettings.getOpcPackage() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
ConversionFeatures.checkParams(OpcPackage opcPackage,
java.util.Set<java.lang.String> features)
Check the package and requested features and append defaults if necessary
|
org.w3c.dom.Element |
ConversionHTMLScriptElementHandler.createScriptElement(OpcPackage opcPackage,
org.w3c.dom.Document document,
java.lang.String scriptDefinition) |
org.w3c.dom.Element |
ConversionHTMLStyleElementHandler.createStyleElement(OpcPackage opcPackage,
org.w3c.dom.Document document,
java.lang.String styleDefinition) |
void |
ConversionHyperlinkHandler.handleHyperlink(ConversionHyperlinkHandler.Model hyperlinkModel,
OpcPackage opcPackage,
Part currentPart) |
void |
FOSettings.setOpcPackage(OpcPackage opcPackage)
Side effect (where there is no fopConfig) for WordprocessingMLPackage is to
invoke FopConfigUtil.createConfigurationObject
|
void |
AbstractConversionSettings.setOpcPackage(OpcPackage opcPackage) |
void |
AbstractConversionSettings.setWmlPackage(OpcPackage wmlPackage)
Deprecated.
|
| Constructor and Description |
|---|
FOSettings(OpcPackage opcPackage) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExporter<CS extends AbstractConversionSettings,CC extends AbstractConversionContext,PK extends OpcPackage>
Exporter are responsible to create the environment for the export process.
|
| Modifier and Type | Method and Description |
|---|---|
protected OpcPackage |
AbstractConversionContext.getOpcPackage() |
protected OpcPackage |
AbstractWmlConversionContext.initializeOpcPackage(AbstractConversionSettings conversionSettings,
OpcPackage opcPackage) |
protected OpcPackage |
AbstractConversionContext.initializeOpcPackage(AbstractConversionSettings settings,
OpcPackage opcPackage) |
static OpcPackage |
Preprocess.process(OpcPackage opcPackage,
java.util.Set<java.lang.String> features)
This method applies those features in the preprocessing, that may be used with an
OpcPackage.
Features processed: PP_COMMON_DEEP_COPY |
| Modifier and Type | Method and Description |
|---|---|
protected OpcPackage |
AbstractWmlConversionContext.initializeOpcPackage(AbstractConversionSettings conversionSettings,
OpcPackage opcPackage) |
protected OpcPackage |
AbstractConversionContext.initializeOpcPackage(AbstractConversionSettings settings,
OpcPackage opcPackage) |
protected void |
AbstractConversionContext.initializeSettings(AbstractConversionSettings settings,
OpcPackage localOpcPackage) |
static OpcPackage |
Preprocess.process(OpcPackage opcPackage,
java.util.Set<java.lang.String> features)
This method applies those features in the preprocessing, that may be used with an
OpcPackage.
Features processed: PP_COMMON_DEEP_COPY |
| Constructor and Description |
|---|
AbstractConversionContext(AbstractMessageWriter messageWriter,
AbstractConversionSettings conversionSettings,
OpcPackage localOpcPackage) |
| Modifier and Type | Method and Description |
|---|---|
protected static OpcPackage |
PartialDeepCopy.createPackage(OpcPackage opcPackage) |
static OpcPackage |
PartialDeepCopy.process(OpcPackage opcPackage,
java.util.Set<java.lang.String> relationshipTypes) |
| 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 Part |
PartialDeepCopy.deepCopyPart(OpcPackage opcPackage,
Base targetParent,
Part sourcePart,
java.util.Set<java.lang.String> relationshipTypes) |
protected static void |
PartialDeepCopy.deepCopyRelationships(OpcPackage opcPackage,
Base sourcePart,
Base targetPart,
java.util.Set<java.lang.String> relationshipTypes) |
static OpcPackage |
PartialDeepCopy.process(OpcPackage opcPackage,
java.util.Set<java.lang.String> relationshipTypes) |
| Modifier and Type | Field and Description |
|---|---|
OpcPackage |
FlatOpcXmlCreator.packageIn |
| Constructor and Description |
|---|
FlatOpcXmlCreator(OpcPackage p) |
| Modifier and Type | Method and Description |
|---|---|
static void |
HtmlCssHelper.createCss(OpcPackage opcPackage,
PPr pPr,
java.lang.StringBuilder result,
boolean ignoreBorders,
boolean isListItem) |
static void |
HtmlCssHelper.createCss(OpcPackage opcPackage,
RPr rPr,
java.lang.StringBuilder result) |
static void |
HtmlCssHelper.createCssForStyles(OpcPackage opcPackage,
StyleTree styleTree,
java.lang.StringBuilder result) |
protected void |
HTMLConversionContext.initializeSettings(AbstractConversionSettings settings,
OpcPackage localOpcPackage) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
PhysicalFonts.getPhysicalFont(OpcPackage wmlPackage,
java.lang.String fontName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
BindingTraverserNonXSLT.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap) |
java.lang.Object |
BindingTraverserXSLT.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap) |
java.lang.Object |
BindingTraverserInterface.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap) |
abstract java.lang.Object |
BindingTraverserCommonImpl.traverseToBind(JaxbXmlPart part,
OpcPackage pkg,
java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Property> |
PropertyFactory.createProperties(OpcPackage wmlPackage,
ParaRPr rPr) |
static java.util.List<Property> |
PropertyFactory.createProperties(OpcPackage wmlPackage,
PPr pPr) |
static java.util.List<Property> |
PropertyFactory.createProperties(OpcPackage wmlPackage,
RPr rPr) |
| Modifier and Type | Method and Description |
|---|---|
abstract OpcPackage |
Base.getPackage() |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
ContentTypeManager.createPackage(java.lang.String pkgContentType)
Return a package of the appropriate type.
|
| Modifier and Type | Field and Description |
|---|---|
OpcPackage |
SaveToZipFile.p
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
LoadFromZipNG.get(java.io.File f)
Deprecated.
|
OpcPackage |
LoadFromZipNG.get(java.io.InputStream is)
Deprecated.
|
OpcPackage |
LoadFromZipNG.get(java.lang.String filepath)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Load.registerCustomXmlDataStorageParts(OpcPackage pkg)
Deprecated.
Find any /customXml/itemN.xml which have a props part
which specifies a data store item ID.
|
| Constructor and Description |
|---|
SaveToZipFile(OpcPackage p)
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
OpcPackage |
Save.p |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
Load3.get() |
| Modifier and Type | Method and Description |
|---|---|
void |
Load3.reuseExistingOpcPackage(OpcPackage existingPkg)
By setting this, you can load the contents into
this existing package (ie instead of returning a new one).
|
| Constructor and Description |
|---|
Save(OpcPackage p) |
Save(OpcPackage p,
PartStore targetPartStore) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultPackage |
class |
PresentationMLPackage |
class |
SpreadsheetMLPackage |
class |
WordprocessingMLPackage |
class |
WordprocessingMLTemplatePackage |
| Modifier and Type | Field and Description |
|---|---|
protected OpcPackage |
ProtectionSettings.pkg |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
OpcPackage.clone() |
OpcPackage |
OpcPackage.cloneAs(java.lang.String targetContentType) |
OpcPackage |
OpcPackage.getPackage() |
static OpcPackage |
OpcPackage.load(java.io.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(java.io.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(java.io.File file,
Filetype type,
java.lang.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(java.io.File docxFile,
java.lang.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(java.io.InputStream inputStream)
Convenience method to create a WordprocessingMLPackage
or PresentationMLPackage
from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
static OpcPackage |
OpcPackage.load(java.io.InputStream is,
boolean docxFormat)
Deprecated.
|
static OpcPackage |
OpcPackage.load(java.io.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(java.io.InputStream is,
Filetype type,
java.lang.String password)
convenience method to load a word2007 document
from an existing inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
static OpcPackage |
OpcPackage.load(java.io.InputStream inputStream,
java.lang.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,
java.io.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,
java.io.File docxFile,
java.lang.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,
java.io.InputStream inputStream)
Convenience method to create a WordprocessingMLPackage
or PresentationMLPackage
from an inputstream (.docx/.docxm, .ppxtx or Flat OPC .xml).
|
| Constructor and Description |
|---|
ProtectionSettings(OpcPackage pkg) |
| Modifier and Type | Field and Description |
|---|---|
protected OpcPackage |
Part.pack |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
Part.getPackage() |
| Modifier and Type | Method and Description |
|---|---|
void |
Part.setPackage(OpcPackage pack) |
| Modifier and Type | Method and Description |
|---|---|
OpcPackage |
EmbeddedPackagePart.extractPackage() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
BinaryPartAbstractImage.createImageName(OpcPackage opcPackage,
Base sourcePart,
java.lang.String proposedRelId,
java.lang.String ext) |
static BinaryPartAbstractImage |
BinaryPartAbstractImage.createImagePart(OpcPackage opcPackage,
Part sourcePart,
byte[] bytes)
Create an image part from the provided byte array, attach it to the source part
(eg the main document part, a header part etc), and return it.
|
static BinaryPartAbstractImage |
BinaryPartAbstractImage.createImagePart(OpcPackage opcPackage,
Part sourcePart,
byte[] bytes,
java.lang.String mime)
Create an image part from the provided byte array, attach it to the source part
(eg the main document part, a header part etc), and return it.
|
static BinaryPartAbstractImage |
BinaryPartAbstractImage.createImagePart(OpcPackage opcPackage,
Part sourcePart,
byte[] bytes,
java.lang.String mime,
java.lang.String ext)
Deprecated.
|
static BinaryPartAbstractImage |
BinaryPartAbstractImage.createImagePart(OpcPackage opcPackage,
Part sourcePart,
java.io.File imageFile)
Create an image part from the provided filePath image, attach it to the source part
(eg the main document part, a header part etc), and return it.
|
static BinaryPartAbstractImage |
BinaryPartAbstractImage.createLinkedImagePart(OpcPackage opcPackage,
Part sourcePart,
java.net.URL url)
Create a linked image part, and attach it as a rel of the specified source part
(eg a header part).
|
| Modifier and Type | Class and Description |
|---|---|
class |
GloxPackage |
| Modifier and Type | Method and Description |
|---|---|
protected OpcPackage |
AbstractPmlConversionContext.initializeOpcPackage(AbstractConversionSettings settings,
OpcPackage opcPackage) |
| Modifier and Type | Method and Description |
|---|---|
protected OpcPackage |
AbstractPmlConversionContext.initializeOpcPackage(AbstractConversionSettings settings,
OpcPackage opcPackage) |
protected void |
AbstractPmlConversionContext.initializeSettings(AbstractConversionSettings settings,
OpcPackage opcPackage) |
Copyright © 2007–2023. All rights reserved.