• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Stop text adornments from coming in Overprint preview and PDF

Participant ,
Nov 05, 2015 Nov 05, 2015

Copy link to clipboard

Copied

Hi, I am working with text adornments and referring the basicTextAdornment sample plugin from Indesign SDK.

Please have a look at below routine from the ITextAdornment.h interface:

/**  Draw the text adornment.

   Two important IShape flags must be observed:

  IShape::kPrinting       If set, indicates that we are printing.

  IShape::kPreviewMode    If set, indicates that we are previewing

  printing to the screen, text adornments

  that do not draw when printing should not

  draw for this either

  @param gd IN Pointer to the GraphicsData.

  @param iShapeFlags IN The value of the flags parameter passed into IShape::Draw.

  @param waxRun IN An interface on this wax run boss.

  @param renderData An interface on this wax run boss.  It can be nil, meaning the WaxRunis NOT a typical text run.

  @param waxGlyphs IN An interface on this wax run boss.  It can be nil, meaning the WaxRunis NOT a typical text run.

  @param data IN pointer to optional ITextAdornmentData.  It may be nil if no data is specified when the adornment was attached.

  */

  virtual void Draw(GraphicsData *gd, int32 iShapeFlags,

  IWaxRun* waxRun,

  IWaxRenderData* renderData,

  IWaxGlyphs* waxGlyphs,

  const ITextAdornmentData *data) = 0;

We can see that the value for the parameter 'iShapeFlags' can be set to either kPrinting or kPreviewMode, but I don't want the text adornments to be part of any one of them.

Can some one suggest how we can stop this?


Is there kPrinting

TOPICS
SDK

Views

470

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Nov 16, 2015 Nov 16, 2015

simple way is to check the value of the flag inside the Draw() method and return from the function if  'iShapeFlags' value corresponds to any of the above flags.

Votes

Translate

Translate
Participant ,
Nov 16, 2015 Nov 16, 2015

Copy link to clipboard

Copied

LATEST

simple way is to check the value of the flag inside the Draw() method and return from the function if  'iShapeFlags' value corresponds to any of the above flags.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines