1. Home Brother
  2. Developer Centre Home
  3. Developer Resources
P-touch-Editor

P-touch Editor

Powerful yet easy-to-use, P-touch Editor lets you create barcode labels or other specialty labels, either one at a time or multiple labels in a batch. 

Furthermore, P-touch Template allows you to save label templates (designed in P-touch Editor) in the printer. You can then send P-touch Template commands to the printer and print data to insert in the template from a host device (PC, tablet, smartphone or other) to create the label required. 

P-touch Editor is included free with all Brother’s PC connectable labelling machines. 

 

Nurse printing patient wristband from tablet using TD label printer

b-PAC

b-PAC is a component that sends data to Brother label printer/mobile printer. Customers can create programs that directly control your printer to print labels. Creating a simple program for a system in use allows adding a label print function to the existing system. b-PAC is recommended for the following customers:

  • Customers who want to print labels by putting data from a database into a standard label layout
  • Customers who want to automate and simplify label printing tasks to streamline their work
  • Customers who want to integrate your printer into their business system

 

 

Retail worker printing price labels using RJ mobile label printer

SDKs

Since many mobile/tablet operating systems do not natively support printing, Brother provide Software Development Kits (SDKs) to help developers easily add printing support into their apps.

We have a range of SDKs suitable for both iOS and Android which allow you to integrate your Brother labelling machine into your existing mobile applications. 

 

 

Retail worker editing label on laptop to print via TD-2000 label printer

ESC/P

ESC/P allows developers to create print data using simple commands that control the position and layout. By simply sending ESC/P control code to the label printer, you have the flexibility to set font, size, add barcodes and more to create customised labels that meet requirements. 

ESC/P requires more coding than Template printing, but it means you do not have to configure a printer first before deploying it.

 

 

Are the SDKs on this website available for free? 

Yes, the SDKs on this website are available free of charge, once you have registered. 

Which models support ESC/P commands? 

Brother mobile printers have printer fonts and you can print by using ESC/P compatible printer commands.
If you develop a program which sends print data from a host device, then you can use these commands to print from the printer.

Please visit the Brother Solutions Center where our ESC/P Command Reference Manuals are available. ESC/P compatible commands are standard in all of our mobile printers, but there are some differences between models.

How do I print logos? 

Please check the supported commands of your model, and use either of the following methods: 

  • Using a raster SDK or printer driver 
  • Using an ESC/P graphic command
  • Using P-touch template. Prepare template data including logos in P-touch Editor and transfer them in advance to the printer main body by using the transfer manager 
Is it possible to print Chinese characters, Hindi or other languages using the SDK? 

Yes, this is possible.
Our standard SDK has a printing feature that uses API tools from Windows. It is possible to draw a bitmap picture on to a device and send the data to a printer. You can print out any text that you can see on the screen of your handheld device which is running either Windows Mobile or Windows CE without mis-encoding. If it cannot be shown on the screen of your handheld device, it cannot be printed from the machine.

How many digits of CODE128/EAN128 can be handled?

P-touch Editor 4.0, b-PAC SDK Ver.1.4 and later versions can handle up to 250 digits. Please download and use the latest version.
P-touch Editor 3.x can handle only up to 30 digits. To print data with more than 30 digits, you need to leave sufficient space on a template you create so that the barcode can fit into the space even when the number of data digits has increased.

Can I change barcode size? 

Yes. You can change it with b-PAC SDK Ver.3.0.
For b-PAC SDK Ver.2.0 and earlier versions, you need to do the following.

For example, if you want to change the barcode size to 4 cm or 6 cm according to the intended use, it is convenient to create two types of template files, i.e. 4-cm and 6-cm barcode template files, beforehand and let the program use either of the two files. The barcode width is selectable only from 3 types (or 4 types depending on the resolution of P-touch Editor and P-touch), large, medium and small (and ultra-small), due to print precision constraints of P-touch.

Can a label layout file (*.lbl) merged with a database in P-touch Editor be opened with the Open() method?

Since there is no database merging function in the b-PAC component, layout files merged with a database cannot be used as templates. The connection with a database must be performed within the user's program, not with b-PAC or the layout file.
You must create a new layout that is not merged with a database, and use it as a template.

The procedure for easily creating a layout that can be used as a template with b-PAC from an existing layout merged with a database is described as follows:

1. Use P-touch Editor to open the layout merged with a database.
2. From the File menu, select Database, then click Disconnect.
3. From the File menu, select Save As and save this template file newly.
As this layout is not merged with a database, it can be used as a template with b-PAC.

Is it possible to make the printed label size changeable depending on the text length? 

Yes. Make the label template file as follows: 

< To be changeable depending on the number of lines of text > 

Direction: paper = vertical, text = horizontal 

Tape Length: Auto 

"Specifies how text is displayed" of the text object: Long Text 

If "Long Text" is selected, calling the SetText method repeatedly for the same object after the Open method fixes the tape length to the largest size. The solve this problem, call the Open method/Close method on each printing occasion though it is less efficient. 

< To be changeable depending on the length of one line > 

Direction: paper = horizontal, text = horizontal 

Tape Length: Auto 

"Specifies how text is displayed" of the text object: Automatic Length or Free Size 

Can I add an extra line of text to be added to a text object (i.e. add a return character)? 

Specify Fixed Frame Size (Wrap) as the text layout of the text object. The overflowed characters are placed in the next line.
To enter a return character at a certain point, include a return character code in the text to be replaced.
Refer to the Asset1.xls, VBA sample program, included in b-PAC SDK Ver. 3.0.

What are the different Merge Options settings for a text object?

Merge Options is a function that, depending on the label that you wish to create, specifies the area in which text is printed and either automatically enlarges or reduces the character size or uses a fixed character size.
As for detail, refer to the P-touch Editor Help.

Fixed Frame Size - The size of the object does not change as text is added or deleted. The text is enlarged or reduced so that all entered text is displayed. 

Fixed Frame Size (Wrap) - Text that is typed in is wrapped automatically. If there is not enough space for wraps, the size of all characters is reduced. 

Long Text - As text is added, the text frame is enlarged vertically 

Automatic - As text is added, the text frame is enlarged horizontally 

Free Size - The object frame is enlarged or reduced depending on whether text is added or removed 

Is it possible to use Unicode text? 

Yes. Use the label template file from P-touch Editor 5 with b-PAC Ver. 2.0 or later.

Are the SDKs on this website available for free? 

Yes, the SDKs on this website are available free of charge, once you have registered. 

Which models support ESC/P commands? 

Brother mobile printers have printer fonts and you can print by using ESC/P compatible printer commands.
If you develop a program which sends print data from a host device, then you can use these commands to print from the printer.

Please visit the Brother Solutions Center where our ESC/P Command Reference Manuals are available. ESC/P compatible commands are standard in all of our mobile printers, but there are some differences between models.

How do I print logos? 

Please check the supported commands of your model, and use either of the following methods: 

  • Using a raster SDK or printer driver 
  • Using an ESC/P graphic command
  • Using P-touch template. Prepare template data including logos in P-touch Editor and transfer them in advance to the printer main body by using the transfer manager 
Is it possible to print Chinese characters, Hindi or other languages using the SDK? 

Yes, this is possible.
Our standard SDK has a printing feature that uses API tools from Windows. It is possible to draw a bitmap picture on to a device and send the data to a printer. You can print out any text that you can see on the screen of your handheld device which is running either Windows Mobile or Windows CE without mis-encoding. If it cannot be shown on the screen of your handheld device, it cannot be printed from the machine.

I already have an application to print from a Brother mobile printer. Can I also print from other Brother mobile printers using this?

Small changes to your application will be required if you used the SDKs for the same platform and developed a program for a different printer. Please download the latest version of the SDK and then rebuild the program. Please refer to the manuals which are included in the SDKs.

When I print directly to the machine via Bluetooth, it will produce an incorrect printout, or a printing error will occur when not using the Software Development Kit.

When you are connecting the machine via Bluetooth®, the printer may not start to receive the data immediately after the port is opened. We advise to wait for an interval of 500 msec before sending the print data to the machine.

If you normally close and re-open the Bluetooth® port between prints, we would again advise to leave 500 msec between the port being closed and re-opened.

Also, once you have sent the print data, and the printing process has begun, do not close the port.

Which of the 32 bit and 64 bit version b-PAC SDK should I use?

Use the b-PAC SDK version that matches the version of your printer, applications, and Windows OS.

Windows 32 bit
Use b-PAC SDK (32 bit version) and 32 bit applications with a printer supporting b-PAC SDK (32 bit version).

Windows 64 bit

Use b-PAC SDK (64 bit version) and 64 bit applications with a printer supporting b-PAC SDK (64 bit version), or use b-PAC SDK (32 bit version) and 32 bit applications with a printer supporting b-PAC SDK (32 bit version).

Windows 32 bit and 64 bit coexisting on the same computer
Use b-PAC SDK (32 bit version) and 32 bit applications with a printer supporting b-PAC SDK (32 bit version).

Note
Microsoft Office software also has 32 bit and 64 bit versions.

Is there any information useful for development? 

Make use of the help files that are installed in addition to sample files written in major development languages.

Access the files from: Windows Start Menu -> All Programs -> Brother b-PAC3 SDK

What are the new functions and features supported in b-PAC SDK Ver3.0 and later versions?

Newly added functions

b-PAC is newly equipped with functions frequently requested by users, such as follows:

  • Printer status detecting function
  • Loaded tape width detecting function 
  • Print-completion event acquiring function 
  • A function that allows the use of multiple fonts in a single text object

Keeping the conventional "simple installation"

  • b-PAC's highly valued "simple installation" feature is kept available. With a simple interface, you can create a program to print a label you want. 
  • If you are not changing any features, you can migrate the conventional b-PAC version to b-PAC SDK Ver.3.0 or a later version just by uninstalling the previous version and installing b-PAC SDK Ver.3.0 or a later version. To use a new feature of b-PAC SDK Ver.3.0 or a later version, you may need to correct conventional sections depending on the methods used. In that case, you can refer to the code rewriting examples in the documents.
  • Since there is no change in frequently used methods such as Open(), Close(), GetText(), SetText() and SetBarcodeData(), you do not need to correct conventional sections even if new features of b-PAC SDK Ver.3. 0 or a later version are added.

What is more, the enhanced functions are available 

  • An interface that allows easy programming in a program language commonly used today, such as C# and .NET, is added.
  • HTML Help format documentation improved contents and searchability. The document describes program rewriting examples for all methods, which is helpful when you add new features of b-PAC SDK Ver.3.0 or a later version to a program in previous version.
  • Practical examples are added so that customers can use them almost as they are just by making a slight change in contents.

When I print using b-PAC, an error occurs ("Active X component can't create object" or "Automation Server can't create object")

Check if your application is compatible with the b-PAC version you are using (32 bit or 64 bit).
The compatibility of applications built with "Any CPU" may vary depending on the Windows version (32 bit or 64 bit). Make sure you select the compatible b-PAC version.

For more information, see the following related FAQs:

Q - "Which of the 32 bit and 64 bit versions of b-PAC SDK should I use?"

Q - "Which platform should I use to build an application in the Visual Studio development environment"? 

 

 

How can I upgrade b-PAC on a client PC? 

Install the provided Client Component Installer (CCI) on the client PC. Or create an installer using the merge module included in the b-PAC SDK and install it on the client PC.

How can b-PAC be copied to a computer not in the development environment? 

Download the client installer package from the b-PAC Download page. Components needed to run applications using b-PAC will be installed by the installer.

(Documents, samples, sample template files and others that are included in SDK are not copied. A P-touch driver must be correctly installed on the computer used.)

An error occurs when printing is executed in an environment where installation is performed by an installer created using a redeployment merge module (bPAC3.msm).

It is because there are insufficient modules for the created installer.
Based on the version of your b-PAC, add the following merge modules and others provided by Microsoft to the installing project and re-create the installer.

* The following merge modules are normally stored in the Program Files folder of a computer installed with Visual Studio.
e.g. C:¥Program Files (x86)¥Common Files¥Merge Modules¥

With b-PAC 3.0:

- Visual C++ 8.0 MFC (Microsoft_VC80_MFC_x86.msm)       *Stored in Visual Studio 2005

- Visual C++ 8.0 CRT (Microsoft_VC80_CRT_x86.msm)       *Stored in Visual Studio 2005

- GDI+ and MSXML4 are required in some cases.

With b-PAC 3.2:

<32 bit version>

- Visual C++ 14.0 MFC (Microsoft_VC140_MFC_x86.msm) *Stored in Visual Studio 2015

- Visual C++ 14.0 CRT (Microsoft_VC140_CRT_x86.msm) *Stored in Visual Studio 2015

<64 bit version>

- Visual C++ 14.0 MFC (Microsoft_VC140_MFC_x64.msm) *Stored in Visual Studio 2015

- Visual C++ 14.0 CRT (Microsoft_VC140_CRT_x64.msm) *Stored in Visual Studio 2015

- Visual C++ 11.0 CRT (Microsoft_VC110_CRT_x64.msm) *Stored in Visual Studio 2012