Text Converter C++ Sample

 

Description:

 

The TextConverter sample is integrated with the printer driver. The TextConverter can be launched by the printer driver to reconstruct and display the printed document based on the Formatted Text output generated by the printer driver. The formatted text output contains the necessary font positioning and font information to recreate the printed document as closely as possible to the original.

 

Description: Description: C:\Users\tgabor\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png

 

 

Features

 

·         X86 and X64 support

·         No widechar (UNICODE) support

·         If adobe temp font is used, replaced by Courier.

·         Drops proper error for wrong input file, wrong content format, etc

·         Zooming

·         From menu, and from shortcut (Ctrl+[ scroll or +,- ])

·         Result export (save as bitmap)

 


 

Syntax to execute the sample:

 

Text Converter C++ Sample.exe <TXT> <BMP>

Where <TXT> is the path to the text file generated by the printer driver, and the <BMP> is the path to the background bitmap image file. The background bitmap is optional.

 

Text Converter C++ Sample.exe <GRP>

Where <GRP> is the path to the group file, generated by the printer driver.

 

Using the TextConverter Sample with the Black Ice Printer Drivers

 

Sample Source Code Folder Location:

<RTK Installation Folder>\<RTK 32/64 bit>\Samples\Sample Source Codes\C++\ Text Converter C++ Sample

 

Solution files

Compilers

Text Converter C++ Sample_VS2015.sln

Visual Studio 2015

Text Converter C++ Sample _VS2017.sln

Visual Studio 2017

Text Converter C++ Sample _VS2019.sln

Visual Studio 2019

Text Converter C++ Sample _VS2022.sln

Visual Studio 2022

 

 

Note: Please make sure that you use the appropriate Resource ToolKit, there are two different RTKs.

- API/RTK for 32/64 bit Windows 11, 10, 8.1, 7

- API/RTK for 32/64 bit Windows Server 2025/2022/2019/2016/2012