PdfSharp.Xps
1.1.15
|
Provides the funtionality to write a PDF content stream for a PdfPage or an XForm. More...
Public Member Functions | |
void | WriteLiteral (string value) |
Writes a string literally to the content stream. More... | |
void | WriteLiteral (string format, params object[] args) |
Writes a formatted string literally to the content stream. More... | |
void | WriteRgb (Color color, string op) |
void | WriteMatrix (XMatrix matrix) |
void | WriteGraphicsState (PdfExtGState extGState) |
void | WriteForm (XForm form) |
PdfContentWriter (DocumentRenderingContext context, PdfPage page) | |
Initializes a new instance of the PdfContentWriter class for creating a content stream of the specified page. More... | |
PdfContentWriter (DocumentRenderingContext context, XForm form, RenderMode renderMode) | |
Initializes a new instance of the PdfContentWriter class for creating a content stream of the specified form. More... | |
PdfContentWriter (DocumentRenderingContext context, PdfDictionary contentDictionary) | |
void | WriteElements (XpsElementCollection elements) |
Writes all elements of the collection to the content stream. More... | |
void | WriteElement (XpsElement element) |
Writes the specified element to the content stream. More... | |
void | BeginContent (bool hacks4softmask) |
Initializes the default view transformation, i.e. the transformation from the user page space to the PDF page space. More... | |
void | BeginContentRaw () |
Just save current state. More... | |
void | EndContent () |
void | WriteRenderTransform (XMatrix matrix) |
Writes the specified transformation matrix to the content stream. More... | |
void | WriteTextTransform (XMatrix matrix) |
Writes the specified text transformation matrix to the content stream. More... | |
void | WriteClip (XRect rect) |
Writes the specified rectangle as intersection with the current clip path to the content stream. More... | |
void | WriteClip (PathGeometry geo) |
Writes the specified PathGeometry as intersection with the current clip path to the content stream. More... | |
void | WriteOpacityMask (Brush brush) |
XMatrix | MultiplyTransform (XMatrix matrix) |
Muliplies the spcified transformation with the current transformation and returns the new value; More... | |
double | MultiplyOpacity (double opacity) |
Muliplies the spcified opacity with the current opacity and returns the new value; More... | |
void | RealizeFill (Brush brush, ref XForm xform, ref XImage ximage) |
Makes the specified brush to the current graphics object. More... | |
void | RealizeFillOpacity (double opacity) |
Realizes the opacity for non-stroke operations. More... | |
void | RealizeStroke (Path path) |
Makes the specified pen to the current graphics object. More... | |
void | RealizeStrokeOpacity (double opacity) |
Realizes the opacity for stroke operations. More... | |
void | RealizeExtGState (PdfExtGState xgState) |
Realizes the specified graphic state. More... | |
void | WriteSaveState (string traceMessage, string elementName) |
Saves the current graphical state and writes a push state operator to the content stream. More... | |
void | WriteRestoreState (string traceMessage, string elementName) |
Restores the previous graphical state and writes a pop state operator to the content stream. More... | |
Properties | |
DocumentRenderingContext | Context [get] |
Gets the document rendering context this PDF contentwriter belongs to. More... | |
XMatrix | DefaultPageTransform [get] |
Gets the default page transformation. More... | |
XMatrix | Transform [get] |
Gets the current transformation. More... | |
double | Opacity [get] |
Gets the current opacity value. More... | |
Provides the funtionality to write a PDF content stream for a PdfPage or an XForm.
PdfSharp.Xps.Rendering.PdfContentWriter.PdfContentWriter | ( | DocumentRenderingContext | context, |
PdfPage | page | ||
) |
Initializes a new instance of the PdfContentWriter class for creating a content stream of the specified page.
PdfSharp.Xps.Rendering.PdfContentWriter.PdfContentWriter | ( | DocumentRenderingContext | context, |
XForm | form, | ||
RenderMode | renderMode | ||
) |
Initializes a new instance of the PdfContentWriter class for creating a content stream of the specified form.
PdfSharp.Xps.Rendering.PdfContentWriter.PdfContentWriter | ( | DocumentRenderingContext | context, |
PdfDictionary | contentDictionary | ||
) |
void PdfSharp.Xps.Rendering.PdfContentWriter.BeginContent | ( | bool | hacks4softmask | ) |
Initializes the default view transformation, i.e. the transformation from the user page space to the PDF page space.
void PdfSharp.Xps.Rendering.PdfContentWriter.BeginContentRaw | ( | ) |
Just save current state.
void PdfSharp.Xps.Rendering.PdfContentWriter.EndContent | ( | ) |
double PdfSharp.Xps.Rendering.PdfContentWriter.MultiplyOpacity | ( | double | opacity | ) |
Muliplies the spcified opacity with the current opacity and returns the new value;
XMatrix PdfSharp.Xps.Rendering.PdfContentWriter.MultiplyTransform | ( | XMatrix | matrix | ) |
Muliplies the spcified transformation with the current transformation and returns the new value;
void PdfSharp.Xps.Rendering.PdfContentWriter.RealizeExtGState | ( | PdfExtGState | xgState | ) |
Realizes the specified graphic state.
void PdfSharp.Xps.Rendering.PdfContentWriter.RealizeFill | ( | Brush | brush, |
ref XForm | xform, | ||
ref XImage | ximage | ||
) |
Makes the specified brush to the current graphics object.
void PdfSharp.Xps.Rendering.PdfContentWriter.RealizeFillOpacity | ( | double | opacity | ) |
Realizes the opacity for non-stroke operations.
void PdfSharp.Xps.Rendering.PdfContentWriter.RealizeStroke | ( | Path | path | ) |
Makes the specified pen to the current graphics object.
void PdfSharp.Xps.Rendering.PdfContentWriter.RealizeStrokeOpacity | ( | double | opacity | ) |
Realizes the opacity for stroke operations.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteClip | ( | PathGeometry | geo | ) |
Writes the specified PathGeometry as intersection with the current clip path to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteClip | ( | XRect | rect | ) |
Writes the specified rectangle as intersection with the current clip path to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteElement | ( | XpsElement | element | ) |
Writes the specified element to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteElements | ( | XpsElementCollection | elements | ) |
Writes all elements of the collection to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteForm | ( | XForm | form | ) |
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteGraphicsState | ( | PdfExtGState | extGState | ) |
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteLiteral | ( | string | format, |
params object[] | args | ||
) |
Writes a formatted string literally to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteLiteral | ( | string | value | ) |
Writes a string literally to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteMatrix | ( | XMatrix | matrix | ) |
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteOpacityMask | ( | Brush | brush | ) |
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteRenderTransform | ( | XMatrix | matrix | ) |
Writes the specified transformation matrix to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteRestoreState | ( | string | traceMessage, |
string | elementName | ||
) |
Restores the previous graphical state and writes a pop state operator to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteRgb | ( | Color | color, |
string | op | ||
) |
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteSaveState | ( | string | traceMessage, |
string | elementName | ||
) |
Saves the current graphical state and writes a push state operator to the content stream.
void PdfSharp.Xps.Rendering.PdfContentWriter.WriteTextTransform | ( | XMatrix | matrix | ) |
Writes the specified text transformation matrix to the content stream.
|
get |
Gets the document rendering context this PDF contentwriter belongs to.
|
get |
Gets the default page transformation.
|
get |
Gets the current opacity value.
|
get |
Gets the current transformation.