InkOptions

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IInkOptions

public class InkOptions implements IInkOptions

Provides options that control the look of Ink objects in exported document.

Methods

MethodDescription
getHideInk()Shows or hides Ink elements in exported document.
setHideInk(boolean value)Shows or hides Ink elements in exported document.
getInterpretMaskOpAsOpacity()Uses ROP operation or Opacity for rendering brush.
setInterpretMaskOpAsOpacity(boolean value)Uses ROP operation or Opacity for rendering brush.

getHideInk()

public final boolean getHideInk()

Shows or hides Ink elements in exported document.


Next example demonstrates how to hide Ink elements in exported PDF document:
 
 Presentation pres = new Presentation("pres.pptx");
 try {
     PdfOptions pdfOptions = new PdfOptions();
     pdfOptions.getInkOptions().setHideInk(true);
     pres.save("output.pptx", SaveFormat.Pdf, pdfOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Default value is false.

Returns: boolean

setHideInk(boolean value)

public final void setHideInk(boolean value)

Shows or hides Ink elements in exported document.


Next example demonstrates how to hide Ink elements in exported PDF document:
 
 Presentation pres = new Presentation("pres.pptx");
 try {
     PdfOptions pdfOptions = new PdfOptions();
     pdfOptions.getInkOptions().setHideInk(true);
     pres.save("output.pptx", SaveFormat.Pdf, pdfOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Default value is false.

Parameters:

ParameterTypeDescription
valueboolean

getInterpretMaskOpAsOpacity()

public final boolean getInterpretMaskOpAsOpacity()

Uses ROP operation or Opacity for rendering brush.


Next example demonstrates how to set using ROP for expotring Ink elements:
 
 Presentation pres = new Presentation("pres.pptx");
 try {
     PdfOptions pdfOptions = new PdfOptions();
     pdfOptions.getInkOptions().setInterpretMaskOpAsOpacity(false);
     pres.save("output.pptx", SaveFormat.Pdf, pdfOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Default value is true.

Returns: boolean

setInterpretMaskOpAsOpacity(boolean value)

public final void setInterpretMaskOpAsOpacity(boolean value)

Uses ROP operation or Opacity for rendering brush.


Next example demonstrates how to set using ROP for expotring Ink elements:
 
 Presentation pres = new Presentation("pres.pptx");
 try {
     PdfOptions pdfOptions = new PdfOptions();
     pdfOptions.getInkOptions().setInterpretMaskOpAsOpacity(false);
     pres.save("output.pptx", SaveFormat.Pdf, pdfOptions);
 } finally {
     if (pres != null) pres.dispose();
 }

Default value is true.

Parameters:

ParameterTypeDescription
valueboolean