DiagramContent
Leave feedback
On this page
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:
| Method | Description |
|---|---|
| getPages() | Gets the collection of all pages of this [DiagramContent](../../com.groupdocs.watermark.contents/diagramcontent). |
| getHeaderFooter() | Gets the header and footer of this [DiagramContent](../../com.groupdocs.watermark.contents/diagramcontent). |
| getAsposeDiagram() | |
| addWatermark(Watermark watermark, int watermarkPlacementType, DiagramShapeSettings shapeSettings) | |
| performSave(String filePath) | |
| performSave(String filePath, SaveOptions saveOptions) | |
| performSave(OutputStream stream) | |
| performSave(OutputStream stream, SaveOptions saveOptions) | |
| add(Watermark watermark, WatermarkOptions options) | |
| generatePreview(PreviewOptions previewOptions) | |
| afterWatermarkAdding() | |
| getDocumentInfo() | |
| getFileType() | |
| getFontIdByName(String fontName) | |
| addFont(String fontName) | |
| isNewFormat() |
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 |
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).
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).
public final Diagram getAsposeDiagram()
Returns: com.aspose.diagram.Diagram
public final void addWatermark(Watermark watermark, int watermarkPlacementType, DiagramShapeSettings shapeSettings)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark | |
| watermarkPlacementType | int | |
| shapeSettings | DiagramShapeSettings |
public void performSave(String filePath)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String |
public void performSave(String filePath, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String | |
| saveOptions | SaveOptions |
public void performSave(OutputStream stream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream |
public void performSave(OutputStream stream, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | |
| saveOptions | SaveOptions |
public void add(Watermark watermark, WatermarkOptions options)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark | |
| options | WatermarkOptions |
public void generatePreview(PreviewOptions previewOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| previewOptions | PreviewOptions |
public void afterWatermarkAdding()
public IDocumentInfo getDocumentInfo()
Returns: IDocumentInfo
public FileType getFileType()
Returns: FileType
public final int getFontIdByName(String fontName)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontName | java.lang.String |
Returns: int
public final int addFont(String fontName)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontName | java.lang.String |
Returns: int
public final boolean isNewFormat()
Returns: boolean
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.