java.lang.Object
com.aspose.words.Zip64Mode
public class Zip64Mode
- extends java.lang.Object
Utility class containing constants.
Specifies when to use ZIP64 format extensions for OOXML files.
OOXML file is a ZIP-archive that has a 4 GB (2^32 bytes) limit on uncompressed size of a file,
compressed size of a file, and total size of the archive, as well as a limit of 65,535 (2^16-1) files in archive.
ZIP64 format extensions increase the limits to 2^64.
Example:
Shows how to use ZIP64 format extensions.
Random random = new Random();
DocumentBuilder builder = new DocumentBuilder();
for (int i = 0; i < 10000; i++)
{
BufferedImage bmp = new BufferedImage(5, 5, BufferedImage.TYPE_INT_ARGB);
Graphics2D g = bmp.createGraphics();
g.setColor(new Color(random.nextInt(254), random.nextInt(254), random.nextInt(254)));
g.drawImage(bmp, 0, 0, null);
g.dispose();
builder.insertImage(bmp);
}
OoxmlSaveOptions saveOptions = new OoxmlSaveOptions();
saveOptions.setZip64Mode(Zip64Mode.ALWAYS);
builder.getDocument().save(getArtifactsDir() + "OoxmlSaveOptions.Zip64ModeOption.docx", saveOptions);
- See Also:
- OoxmlSaveOptions.Zip64Mode
|
Field Summary |
static final int | NEVER = 0 | |
|
Do not use ZIP64 format extensions.
|
static final int | IF_NECESSARY = 1 | |
|
If necessary use ZIP64 format extensions.
|
static final int | ALWAYS = 2 | |
|
Always use ZIP64 format extensions.
|
NEVER = 0 | |
public static final int NEVER |
-
Do not use ZIP64 format extensions.
IF_NECESSARY = 1 | |
public static final int IF_NECESSARY |
-
If necessary use ZIP64 format extensions.
ALWAYS = 2 | |
public static final int ALWAYS |
-
Always use ZIP64 format extensions.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.