Closed pradeep1806 closed 3 years ago
Its because appendbitmaptext converts the text to an image, and alignment arguments is for the text images. I recommend you switch to appendbitmapwidget or appendbitmapbyte in version 2.2.0 for better formatting
Hello ,
Is there any way to align properly ?
Below method does not work fine with different kind of words.
It's really very difficult to make proper design with dynamic content .
Please suggest.If i use font , it does not reflect in the .
My Code and i have attached the sample receipt .![50ce2dcd-8f0c-443f-8a9e-3aae41babe70](https://user-images.githubusercontent.com/3882458/111181394-ef0afb00-85d3-11eb-81f8-9d34eb8bc220.jpeg)
PrintCommands commands = PrintCommands();
I want to print my PDF file which is aligned properly. If use appendBytes , it is not working.
Please suggest alternate way for below , to make it more dynamic. Map<String, dynamic> rasterMap = { 'appendBitmapText': " Star Clothing Boutique\n" + " 123 Star Road\n" + " City, State 12345\n" + "\n" + "Date:MM/DD/YYYY Time:HH:MM PM\n" + "--------------------------------------\n" + "SALE\n" + "SKU Description Total\n" + "300678566 PLAIN T-SHIRT 10.99\n" + "300692003 BLACK DENIM 29.99\n" + "300651148 BLUE DENIM 29.99\n" + "300642980 STRIPED DRESS 49.99\n" + "30063847 BLACK BOOTS 35.99\n" + "\n" + "Subtotal 156.95\n" + "Tax 0.00\n" + "--------------------------------------\n" + "Total 156.95\n" + "--------------------------------------\n" + "\n" + "Charge\n" + "156.95\n" + "Visa XXXX-XXXX-XXXX-0123\n" + "Refunds and Exchanges\n" + "Within 30 days with receipt\n" + "And tags attached\n", };