IInkOptions

public interface 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 abstract 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 abstract 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 abstract boolean getInterpretMaskOpAsOpacity()

Uses ROP operation or Opacity for rendering brush.


Next example demonstrates how to set using ROP for exporting 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 abstract void setInterpretMaskOpAsOpacity(boolean value)

Uses ROP operation or Opacity for rendering brush.


Next example demonstrates how to set using ROP for exporting 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