Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2012, Plutext Pty Ltd. This file is part of docx4j. docx4j is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.docx4j.openpackaging.parts.WordprocessingML;
An altChunk can appear wherever EG_BlockLevelElts is allowed ie in tc, footnotes/endnotes, txbxContent, body, comment, hdr/ftr. Also a content control???

Author(s):
jharrop
Since:
2.8
public interface AltChunkInterface {


Add HTML, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content. Unless you really want the HTML converted by Word, users are advised to use docx4j's XHTMLImporter instead.

Parameters:
bytes
Returns:
Throws:
org.docx4j.openpackaging.exceptions.Docx4JException
	public AlternativeFormatInputPart addAltChunk(AltChunkType typebyte[] bytes ) throws Docx4JException;
Add HTML, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content. Unless you really want the HTML converted by Word, users are advised to use docx4j's XHTMLImporter instead.

Add HTML, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content. Unless you really want the HTML converted by Word, users are advised to use docx4j's XHTMLImporter instead.

Parameters:
bytes
attachmentPoint
Returns:
Throws:
org.docx4j.openpackaging.exceptions.Docx4JException
	public AlternativeFormatInputPart addAltChunk(AltChunkType typebyte[] bytesContentAccessor attachmentPointthrows Docx4JException;
Add HTML, in a way that leaves it up to downstream application (eg Word) to convert the content to docx content. Unless you really want the HTML converted by Word, users are advised to use docx4j's XHTMLImporter instead.

Parameters:
is
attachmentPoint
Returns:
Throws:
org.docx4j.openpackaging.exceptions.Docx4JException
Convert the AltChunks to ordinary docx WordML content, returning result as a new WordprocessingMLPackage.
New to GrepCode? Check out our FAQ X