Set PrintTextMode to PXC_PrintTextModes.Auto

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
Freund
User
Posts: 42
Joined: Fri Mar 16, 2018 9:51 am

Set PrintTextMode to PXC_PrintTextModes.Auto

Post by Freund »

Hi,

how can I set the PrintTextMode to PXC_PrintTextModes.Auto?

Regards,

Christian Freund
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17820
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Set PrintTextMode to PXC_PrintTextModes.Auto

Post by Tracker Supp-Stefan »

Hello Freund,

You would use the TextMode enumerators in a way like below:

Code: Select all

PDFC.Inst.Settings("Operations.PrintPages.TextMode").v = PXC_PrintTextModes.PrintText_Auto;
or

Code: Select all

PDFC.Inst.Settings("Operations.PrintPages.TextMode").v = 0 // Auto
Kind regards,
Stefan
Freund
User
Posts: 42
Joined: Fri Mar 16, 2018 9:51 am

Re: Set PrintTextMode to PXC_PrintTextModes.Auto

Post by Freund »

Okay,

and in Core not Editor?

I dont have any visual interface.
I only have to open an file and print it. I use DrawToDevice.

I can set
IPXC_PageRenderParams pRparams = g_Inst.CreateRenderParams();
pRparams.TextSmoothMode = PXC_TextSmoothMode.TSM_ClearType;

But not TextModes to PXC_PrintTextModes.PrintText_Auto

Regards
Christian
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Set PrintTextMode to PXC_PrintTextModes.Auto

Post by Sasha - Tracker Dev Team »

Hello Freund,

When talking about that method, the default value of the TextMode is Auto. If you set the DDF_AllFontsAsCuves flag (DrawToDevice nFlags argument) then the Text mode will be set as PrintText_OutlineAlways. And if you set the DDF_EmbeddedFontAsCurves flag then the text mode will be set as PrintText_OutlineForEmbeddFont.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply