Sample Application

The SDK package from Brother Developer Center contains a sample application project. You can see how the printer works using the application built from the project. It's more easy downloading from Google Play for Android.

The application's functionality is briefly described here.

Sample Application for iOS

The top view of application consists of the following menus.

Function Description
Print Print image or PDF using any settings. Discover printers to be used in any function.
Send Data Send P-touch Template or any command file to the printer.
Template Print Prints using P-touch Templates that have been downloaded to the printer.
Transfer Manager Get/Delete P-touch Template from the printer.
Utility Get information from the printer. Configure the printer.

Image files for printing can be retrieved from Photo Library of your iOS device. You can use iTunes File Sharing to import other files like PDF.

Sample Application for Android

The top view of application consists of the following menus.

Function Description
Print Image/Prn File Prints images (jpg, bmp, png) and prn files (Windows PC driver output).
Print Pdf File Prints PDF files.
Print Template Prints using P-touch Templates that have been downloaded to the printer.
Manage Templates Transfers template files to the printer or remove templates from the printer.
Device Settings Manages model-specific printer settings.

The view of this function contains the following controls.

Control Description
Multiple Select Check this box if you want to print several files at once. Checking or unchecking this box clears the current file selection(s).
Select File Browse the file system to select a file to print.
Printer Settings Select a printer and set printing information.
Printer Status Get status from the selected printer.
Print Start printing the selected file(s).
Send File Send the data of the selected file as it is.
Multi Print Print multiple files.

Printer Settings

The Printer Settings view contains the following settings.

Setting Description
Printer Model Selects a printer model from a list of supported Brother models. Selecting a printer model may change other settings on this screen to new default values.
Port Selects an interface from a list of ports supported by the selected PrinterModel. These may include BLUETOOTH, BLE, NET, and USB.
Printer Selects from a list of printers available on the selected Port.
Paper size Selects from a list of paper sizes supported by the selected PrinterModel.
Printing orientation Selects from Portrait or Landscape.
Fit to Page Selects a scaling option: original size, fit-to-page, or custom scale factor. If the requested image size is larger than the printable area of the paper, the printer will not print it.
Number of copies Number of copies to print.
Half toning Selects the method of converting an image to monochrome: Threshold, Pattern dither, or Error diffusion.
Threshold of simple binary Threshold value when Halftone is set to Threshold.
Save prn file Sets the file path where print data will be saved. The print data will be saved to the file instead of printing.
Skip status check Controls the status check before printing.
Check the print end Controls when print-complete status checks are performed.
Cutting zero lines Trims the blank space at the end of the data after the image is changed to binary/ternary.
Tethering Uses the Android device for tethering.
Print quality Specifies the print quality.
IP/MAC address Presents options to set these addresses. (auto set when you select a printer)
Alignment Settings Presents options to set alignment and margins.
Align Selects the setting for left, center or right alignment.
Left margin Specifies the X coordinate to start printing.
Valign Selects the setting for top, middle or bottom alignment.
Top margin Specifies the Y coordinate to start printing. value in dots.
PJ Settings Presents options for settings used only with PocketJet printers.
Carbon Enables "Carbon paper" (2-ply paper) mode.
PJ Density Specifies a print density within the range of 0 to 10.
Feed mode Selects the feed method when printing finishes, according to the paper type.
Custom Paper Width Specifies the width of custom paper.
Custom Paper Length Specifies the length of custom paper.
Feed Paper Setting Specifies the length feed at end-of-page.
Paper Position Selects the horizontal feed position of custom paper (LEFT, CENTER, RIGHT).
Dash Line Print Selects whether or not to apply dashed-line print mode.
Mode9 Selects whether or not to apply Mode 9 compression.
PJSpeed Specifies a print speed within the range of 0 to 3 (PJ-7xx).
Printer case Selects the roll case configuration (PJ-7xx).
RJ/TD Settings presents options for settings used only with RJ and TD printers.
Custom Setting (File) Selects custom paper setting file.
Custom Setting (Manual) Sets custom paper information one by one instead using a file.
Rotate 180 Selects whether or not to rotate 180 degrees for printing. (TD/RJ-3xxx/RJ-2xxx).
Density Specifies a print density within the range of –5 to 5.
PeelMode Configure printer to use label peeler (TD/RJ-3150).
Cut Settings Controls cutters on printers that support them.
Auto Cut Selects whether or not to cut after each label when printing multiple labels (PT/QL).
End Cut Selects whether or not to cut after the final label (PT/QL).
Half cut Selects whether or not to add half cuts to labels. Note: This can only be used with the PT series.
Special tape Selects whether or not special tape will be used. Note: This can only be used with the PT series (PT).

The view of this function contains the following controls.

Control Description
Select Browse the file system to select a file to print. You must specify whether to print the entire document or a range of pages.
All pages Check this box to print the entire PDF file. Start Page and End Page are ignored.
Start Page The first page number of the range to print.
End Page The last page number of the range to print.
Printer Settings Select a printer and set printing information.
Print Start printing the selected page(s).

Use this function to print using a template that has been previously downloaded to the printer.

The template is identified by a Key, a number that was assigned when the template was downloaded. The template has one or more fields that you may fill with text for printing. The fields are identified by an Index Number and an Object Name that were assigned when the template was created.

Control Description
Template Key Enter the key that identifies the desired template.
Encoding Select the printer character encoding (English, Japanese, or Chinese). The radio buttons choose the method of selecting a field to receive the replacement text.
Text No index or name; the next replaceable field (in index order) receives the text.
Index An input box appears; enter the index of the selected field.
ObjectName An input box appears; enter the object name of the selected field.
Text The replacement text to write into the specified field.
Add Apply the current selections. Template commands and text appear in the Input Data area.
Delete Delete the last block of template commands and text from the Input Data area.
Next Template Tap if you want to print another template.
Printer Settings Select a printer and set printing information.
Print Transfer the accumulated commands and data to the printer and start.

Manage Templates

Transfer Template

Transfer template file (*.pdz, *.blf) from Android to the printer. The view contains the following controls including other utility features.

Control Description
Select Browse the file system to select a file to transfer.
Printer Settings Select a printer and set printing information.
Transfer Template Start the transfer as template. For USB and Bluetooth, use pdz files. For Wi-Fi, use blf files.
Update Firm Start the transfer as firmware.
Get Firm Version Get the firmware version of the printer.
Send Media Info Start the transfer as Media Info.
Get Media Version Get the Media Info version of the printer.
Check Firm File Ver Check the firmware version of the file.
Check Media File Ver Check the Media Info version of the file.
Get Serial Number Get the Serial Number of the printer.
Get System Report Get the System Report of the printer.
Get Battery Info Get the Battery Info of the printer.

Remove Template

Get the list of templates and remove templates from the printer. The view contains the following controls.

Control Description
Printer Settings Select a printer and set printing information.
Template Information Template key number, file name, date modified, and file size.
Get List Get a list of the templates on the printer.
Delete Remove specified templates from the printer.

Notes

You need to prepare a custom paper setting file (or manually set values one by one on the application) for the paper when printing from RJ/TD series. The SDK package contains some paper information files you can use.

OS Description
iOS The package contains files. Need to copy them to the sample application via iTunes File Sharing, then you can select one of them in the application.
Android The sample application contains files and expands to customPaperFileSet directory in the root directory of the SD memory card. You can select one of them in the application.

See here for more details about custom paper information.