DiagramContent

Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart, com.groupdocs.watermark.contents.Content

public final class DiagramContent extends Content

Represents a Visio document.

Learn more:

Constructors

Methods

DiagramContent(StreamContainer stream, StrategyManager strategyManager, FileFormatInfo formatInfo, DiagramLoadOptions diagramLoadOptions, WatermarkerSettings watermarkerSettings)

public DiagramContent(StreamContainer stream, StrategyManager<Integer> strategyManager, FileFormatInfo formatInfo, DiagramLoadOptions diagramLoadOptions, WatermarkerSettings watermarkerSettings)

Parameters:

Parameter Type Description
stream StreamContainer
strategyManager com.groupdocs.watermark.internal.StrategyManager<java.lang.Integer>
formatInfo com.aspose.diagram.FileFormatInfo
diagramLoadOptions DiagramLoadOptions
watermarkerSettings WatermarkerSettings

getPages()

public final DiagramPageCollection getPages()

Gets the collection of all pages of this [DiagramContent](../../com.groupdocs.watermark.contents/diagramcontent).

Returns: DiagramPageCollection - The collection of all pages of this [DiagramContent](../../com.groupdocs.watermark.contents/diagramcontent).

getHeaderFooter()

public final DiagramHeaderFooter getHeaderFooter()

Gets the header and footer of this [DiagramContent](../../com.groupdocs.watermark.contents/diagramcontent).

Returns: DiagramHeaderFooter - The header and footer of this [DiagramContent](../../com.groupdocs.watermark.contents/diagramcontent).

getAsposeDiagram()

public final Diagram getAsposeDiagram()

Returns: com.aspose.diagram.Diagram

addWatermark(Watermark watermark, int watermarkPlacementType, DiagramShapeSettings shapeSettings)

public final void addWatermark(Watermark watermark, int watermarkPlacementType, DiagramShapeSettings shapeSettings)

Parameters:

Parameter Type Description
watermark Watermark
watermarkPlacementType int
shapeSettings DiagramShapeSettings

performSave(String filePath)

public void performSave(String filePath)

Parameters:

Parameter Type Description
filePath java.lang.String

performSave(String filePath, SaveOptions saveOptions)

public void performSave(String filePath, SaveOptions saveOptions)

Parameters:

Parameter Type Description
filePath java.lang.String
saveOptions SaveOptions

performSave(OutputStream stream)

public void performSave(OutputStream stream)

Parameters:

Parameter Type Description
stream java.io.OutputStream

performSave(OutputStream stream, SaveOptions saveOptions)

public void performSave(OutputStream stream, SaveOptions saveOptions)

Parameters:

Parameter Type Description
stream java.io.OutputStream
saveOptions SaveOptions

add(Watermark watermark, WatermarkOptions options)

public void add(Watermark watermark, WatermarkOptions options)

Parameters:

Parameter Type Description
watermark Watermark
options WatermarkOptions

generatePreview(PreviewOptions previewOptions)

public void generatePreview(PreviewOptions previewOptions)

Parameters:

Parameter Type Description
previewOptions PreviewOptions

afterWatermarkAdding()

public void afterWatermarkAdding()

getDocumentInfo()

public IDocumentInfo getDocumentInfo()

Returns: IDocumentInfo

getFileType()

public FileType getFileType()

Returns: FileType

getFontIdByName(String fontName)

public final int getFontIdByName(String fontName)

Parameters:

Parameter Type Description
fontName java.lang.String

Returns: int

addFont(String fontName)

public final int addFont(String fontName)

Parameters:

Parameter Type Description
fontName java.lang.String

Returns: int

isNewFormat()

public final boolean isNewFormat()

Returns: boolean