CodeMinion / another_brother

Another Brother Flutter SDK
BSD 3-Clause "New" or "Revised" License
20 stars 16 forks source link

PT-P710BT Only Prints Squares on High Quality Resolution #86

Open cdud99 opened 1 month ago

cdud99 commented 1 month ago

Everything works fine, until I want to use the high resolution setting.

Here are all my settings:

    printInfo.printerModel = Model.PT_P710BT;
    printInfo.printMode = PrintMode.ORIGINAL;
    printInfo.isAutoCut = true;
    printInfo.port = Port.BLUETOOTH;
    printInfo.orientation = brother.Orientation.LANDSCAPE;
    printInfo.labelNameIndex = PT.ordinalFromID(PT.W24.getId());
    printInfo.banishMargin = true;
    printInfo.printQuality = PrintQuality.HIGH_RESOLUTION;

I am printing an image that is pulled from a canvas, if that makes a difference.

CodeMinion commented 1 month ago

Hi @cdud99 ,

Thanks for reaching out about this. Could we trouble to provide a few more details, like what device are you printing from: Android, iOS.

Also could we trouble you to clarify what you mean by the statement "Everything works fine, until I want to use the high resolution setting." What exactly is the outcome/behavior you are seeing?

Thanks in advance,

cdud99 commented 3 weeks ago

I'm running this on an iPhone 14 Pro.

What I mean by everything working fine until I switch to the high-resolution setting is that I can change any setting and have it provide the desired outcome. Specifically, I'm trying to print a label on 24mm tape approximately 2.5” long. With every other setting I have, the label prints precisely how I would expect it to come out; it's just low resolution. When I set the high-resolution setting, the label gets resized to a square rather than a rectangle.

In Flutter, I draw the label on a Canvas, convert it to an image, and then send that image to the printer.

CodeMinion commented 2 weeks ago

Thanks for the clarifications @cdud99 .

Looking at the implementation this seems to be a bug in the native library. If that's the case we'll need to wait until a new drop arrives from Brother.

SoCaliOS commented 17 hours ago

I have no problem printing to PT-P710BT. I set the print mode to either "Fit-to-page" or "Fit-to-paper". I also set to portrait mode.