Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
PDF page methods
PDFPAGE_Arc
PDFPAGE_Arc2
PDFPAGE_ArcTo
PDFPAGE_BeginText
PDFPAGE_CanvasCurrentPointX
PDFPAGE_CanvasCurrentPointY
PDFPAGE_CanvasOver
PDFPAGE_Circle
PDFPAGE_Clip
PDFPAGE_ClosePath
PDFPAGE_Comment
PDFPAGE_Concat
PDFPAGE_CurrentTextPositionX
PDFPAGE_CurrentTextPositionY
PDFPAGE_CurveTo
PDFPAGE_DrawWatermark
PDFPAGE_Ellipse
PDFPAGE_EndText
PDFPAGE_EoClip
PDFPAGE_EoFill
PDFPAGE_EoFillAndStroke
PDFPAGE_Fill
PDFPAGE_FillAndStroke
PDFPAGE_GetColorSpace
PDFPAGE_GetColorSpaceType
PDFPAGE_GetTextHeight
PDFPAGE_GetTextWidth
PDFPAGE_GetUnicodeTextHeight
PDFPAGE_GetUnicodeTextWidth
PDFPAGE_GStateRestore
PDFPAGE_GStateSave
PDFPAGE_Height
PDFPAGE_InPath
PDFPAGE_LineTo
PDFPAGE_MoveTo
PDFPAGE_NewPath
PDFPAGE_NoDash
PDFPAGE_Orientation
PDFPAGE_PageRotate
PDFPAGE_Pie
PDFPAGE_Pie2
PDFPAGE_PlayMetaFile
PDFPAGE_PlayMetaFileEx
PDFPAGE_PlayMetaFileExFromFileName
PDFPAGE_PlayMetaFileFromFileName
PDFPAGE_Rectangle
PDFPAGE_RectRotated
PDFPAGE_Resolution
PDFPAGE_Rotate
PDFPAGE_RotateText
PDFPAGE_RoundRect
PDFPAGE_Scale
PDFPAGE_SetActiveFont
PDFPAGE_SetCharacterSpacing
PDFPAGE_SetCMYKColor
PDFPAGE_SetCMYKColorFill
PDFPAGE_SetCMYKColorStroke
PDFPAGE_SetColor
PDFPAGE_SetColorFill
PDFPAGE_SetColorSpace
PDFPAGE_SetColorStroke
PDFPAGE_SetDash
PDFPAGE_SetDefaultCMYKColorSpace
PDFPAGE_SetDefaultGrayColorSpace
PDFPAGE_SetDefaultRGBColorSpace
PDFPAGE_SetFlat
PDFPAGE_SetGray
PDFPAGE_SetGrayFill
PDFPAGE_SetGrayStroke
PDFPAGE_SetHorizontalScaling
PDFPAGE_SetLineCap
PDFPAGE_SetLineJoin
PDFPAGE_SetLineWidth
PDFPAGE_SetLinkToPage
PDFPAGE_SetMiterLimit
PDFPAGE_SetPixel
PDFPAGE_SetRGBColor
PDFPAGE_SetRGBColorFill
PDFPAGE_SetRGBColorStroke
PDFPAGE_SetTextPosition
PDFPAGE_SetTextRenderingMode
PDFPAGE_SetTextRise
PDFPAGE_SetURL
PDFPAGE_SetWordSpacing
PDFPAGE_ShowImage
PDFPAGE_Size
PDFPAGE_SkewText
PDFPAGE_Stroke
PDFPAGE_TextBox
PDFPAGE_TextInitiated
PDFPAGE_TextOut
PDFPAGE_TextOutBox
PDFPAGE_TextOutBox2
PDFPAGE_TextShow
PDFPAGE_Thumbnail
PDFPAGE_Translate
PDFPAGE_UnicodeTextBox
PDFPAGE_UnicodeTextOut
PDFPAGE_UnicodeTextOutBox
PDFPAGE_UnicodeTextOutBox2
PDFPAGE_UnicodeTextShow
PDFPAGE_Watermark
PDFPAGE_Width
PDFPAGE_SetTextRenderingMode

See Also Example
Collapse All

This method sets the text rendering mode.

Mode

Example

Description

trmFillText

Fill text.

trmStrokeText

Stroke text.

trmFillAndStroke

Fill, then stroke text.

trmNeitherFillNorStoke

Neither fill nor stroke text (invisible).

trmFillTextAndAddPathForClipping

Fill text and add to path for clipping.

trmStrokeTextAndAddPathForClipping

Stroke text and add to path for clipping.

trmFillStrokeAndAddPathForClipping

Fill, then stroke text and add to path for clipping.

trmAddTextToPathForClipping

Add text to path for clipping.

Syntax

HRESULT PDFPAGE_SetTextRenderingMode (
TxTextRenderingMode mode
)
Parameters
mode
One of the TxTextRenderingMode value.

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method sets the mode that determines how the character outline is used. By default, the character outline is used for filling operations in which the inside of the outline path is painted with the current fill color in a solid pattern. This state may be changed by calling this function.

Equivalent in new interface: IPDFDocument4::SetTextRenderingMode.

Example

Setting Text Rendering Mode

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;

PDF.PDFPAGE_SetRGBColorFill(0, 0.4, 0.2);
PDF.PDFPAGE_SetRGBColorStroke(1, 0, 0);
PDF.PDFPAGE_SetActiveFont('Verdana', False, False, False, False, 36.0, 0);

PDF.PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmFillText);
PDF.PDFPAGE_TextOut(20, 20, 0.0, 'ABCdef');

PDF.PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmStrokeText);
PDF.PDFPAGE_TextOut(20, 70, 0.0, 'ABCdef');

PDF.PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmFillAndStroke);
PDF.PDFPAGE_TextOut(20, 120, 0.0, 'ABCdef');

PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();

PDF->PDFPAGE_SetRGBColorFill(0, 0.4, 0.2);
PDF->PDFPAGE_SetRGBColorStroke(1, 0, 0);
PDF->PDFPAGE_SetActiveFont("Verdana", False, False, False, False, 36.0, 0);

PDF->PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmFillText);
PDF->PDFPAGE_TextOut(20, 20, 0.0, "ABCdef");

PDF->PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmStrokeText);
PDF->PDFPAGE_TextOut(20, 70, 0.0, "ABCdef");

PDF->PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmFillAndStroke);
PDF->PDFPAGE_TextOut(20, 120, 0.0, "ABCdef");

PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();

PDF.PDFPAGE_SetRGBColorFill(0, 0.4, 0.2);
PDF.PDFPAGE_SetRGBColorStroke(1, 0, 0);
PDF.PDFPAGE_SetActiveFont("Verdana", False, False, False, False, 36.0, 0);

PDF.PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmFillText);
PDF.PDFPAGE_TextOut(20, 20, 0.0, "ABCdef");

PDF.PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmStrokeText);
PDF.PDFPAGE_TextOut(20, 70, 0.0, "ABCdef");

PDF.PDFPAGE_SetTextRenderingMode(TxTextRenderingMode.trmFillAndStroke);
PDF.PDFPAGE_TextOut(20, 120, 0.0, "ABCdef");

PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc

PDF.PDFPAGE_SetRGBColorFill 0, 0.4, 0.2
PDF.PDFPAGE_SetRGBColorStroke 1, 0, 0
PDF.PDFPAGE_SetActiveFont "Verdana", False, False, False, False, 36.0, 0

PDF.PDFPAGE_SetTextRenderingMode 0 'trmFillText
PDF.PDFPAGE_TextOut 20, 20, 0.0, "ABCdef"

PDF.PDFPAGE_SetTextRenderingMode 1 'trmStrokeText
PDF.PDFPAGE_TextOut 20, 70, 0.0, "ABCdef"

PDF.PDFPAGE_SetTextRenderingMode 2 'trmFillAndStroke
PDF.PDFPAGE_TextOut 20, 120, 0.0, "ABCdef"

PDF.EndDoc

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots