API Documentation for ExtGState

NoPoDoFo ExtGState

The ExtGState, external graphics state, is primarily responsible for transparency. The simplist type being the level of opacity of an object, where 1 is completely opaque 0 is invisible.

class ExtGState {
  new(doc: Base): ExtGState
  setFillOpacity(v: number): void
  setBlendMode(mode: NPDFBlendMode): void
  setOverprint(v: boolean): void
  setFillOverprint(v: boolean): void
  setStrokeOpacity(v: number): void
  setStrokeOverprint(v: boolean): void
  setNonZeroOverprint(v: boolean): void
  setRenderingIntent(intent: NPDFRenderingIntent): void
  setFrequency(v: number): void
}

Constructors


new(doc: Base): ExtGState

Create a new ExtGState object owned by the Document provided. An external graphics state object can be utilized by a Pages resource dictionary. Setting this value is accomplished by Painter.SetExtGState.

Properties


Methods


setFillOpacity

setFillOpacity(v: number): void

Sets the fill opacity, this number must be between 0 and 1

setBlendMode

setBlendMode(mode: NPDFBlendMode): void

Set the value as one of NPDFBlendMode

setOverprint

setOverprint(v: boolean): void

Enable overprinting for both fill and stoke.

setFillOverprint

setFillOverprint(v: boolean): void

Enable/disable fill overprinting.

setStrokeOpacity

setStrokeOpacity(v: number): void

Set stroke opacity, this number must be between 0 and 1

setStrokeOverprint

setStrokeOverprint(v: boolean): void

Enable/disable stroke overprinting.

setNonZeroOverprint

setNonZeroOverprint(v: boolean): void

Enable/disable non zero overprint mode.

setRenderingIntent

setRenderingIntent(intent: NPDFRenderingIntent): void

Set the rendering intent as NPDFRenderingIntent.

setFrequency

setFrequency(v: number): void

Set the frequency for halftones.

results matching ""

    No results matching ""