DavBfr / dart_pdf

Pdf creation module for dart/flutter
https://pub.dev/packages/pdf
Apache License 2.0
1.39k stars 622 forks source link

printing via Wi-Fi produces disjoint and unproper arabic characters, but it works well when connecting printer to direct cable. #1482

Open wellRoundedAppDev opened 1 year ago

wellRoundedAppDev commented 1 year ago

printing via Wi-Fi produces disjoint and unproper arabic characters, but it works well when connecting printer to direct cable. My code: ` final pdf = pw.Document();

pdf.addPage(pw.MultiPage(
    pageTheme: pw.PageTheme(
        textDirection: pw.TextDirection.rtl,
        theme: pw.ThemeData.withFont(
          base: arFont,
        ),
        //depends on printer
        pageFormat: PdfPageFormat.a4),
    crossAxisAlignment: pw.CrossAxisAlignment.end,
    mainAxisAlignment: pw.MainAxisAlignment.start,
    build: (context) {

return [ pw.Text("هلا"); } ])); await Printing.layoutPdf( onLayout: (PdfPageFormat format) async => pdf.save(), );`

Peet-A commented 8 months ago

same issue , any update on this point please ?