精华内容
下载资源
问答
  • Printer

    2016-09-19 11:53:32
    Printer
    项目地址: Printer

    简介:标准 ES-POS 命令打印,固定 IP 或蓝牙打印,支持黑白图片打印

    项目详细地址:ProjectX(方便统一管理)

    标准 ES-POS 命令打印,固定 IP 或蓝牙打印,支持黑白图片打印

    预览

    Screenshots

    要求

    • minSdkVersion 5
    • <uses-permission android:name="android.permission.BLUETOOTH" />

    引用

    dependencies {
        ⋯
        compile 'am.util:printer:1.1.2'
        ⋯
    }
    

    详情

    • 继承 PrintTask 来实现打印任务
    • 继承 PrinterWriter 来实现更多纸张类型的打印
    • PrinterUtils 包含了众多打印指令

    注意

    • 仅提供建立蓝牙连接打印,不包括蓝牙搜索及配对功能
    • 不包含二维码生成功能

    历史


    展开全文
  • sato printer

    2017-11-22 18:00:53
    sato printer interface ,可以学习接口和指令的调用,
  • printer.rar

    2021-04-14 11:29:48
    printer.rar
  • RDP printer

    2012-06-13 20:09:27
    RDP printer
  • prettyprinter:现代,可扩展且有据可查的prettyprinter
  • 3d printer

    2013-08-24 15:23:38
    3d printer open source
  • CANON PRINTER

    2013-05-26 18:03:57
    CANON PRINTER DRIVER AND ULITITY
  • PrettyPrinter-源码

    2021-03-21 02:24:29
    PrettyPrinter
  • screen printer

    2011-10-18 09:31:08
    screen printer,screen printer,screen printer,screen printer
  • Labview USB printer

    2018-11-05 08:57:32
    Labview USB printer 可打印,可控制,网上要下载Barlend 安装包
  • Send2Printer

    2018-08-18 10:57:56
    Android开发通过WiFi无线打印第三方插件Send2Printer1.4.4
  • 想要调用第三方软件首先必须知道intent ...PrinterShare 清单 <activity android:configChanges="keyboardHidden|locale|orientation|screenSize" android:icon="@drawable/icon_title" android:name="c...

    想要调用第三方软件首先必须知道intent
    这里使用逆向工具获取清单文件的IntentFilter

    PrinterShare 清单

     <activity android:configChanges="keyboardHidden|locale|orientation|screenSize" android:icon="@drawable/icon_title" android:name="com.dynamixsoftware.printershare.ActivityWeb">
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="file"/>
                    <data android:scheme="content"/>
                    <data android:mimeType="text/html"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="content"/>
                    <data android:scheme="file"/>
                    <data android:host="*"/>
                    <data android:pathPattern=".*\\.htm"/>
                    <data android:pathPattern=".*\\.html"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.SEND"/>
                    <data android:mimeType="text/*"/>
                </intent-filter>
    </activity>
    <activity android:configChanges="keyboardHidden|locale|orientation|screenSize" android:icon="@drawable/icon_title" android:name="com.dynamixsoftware.printershare.ActivityPrintPDF">
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="content"/>
                    <data android:scheme="file"/>
                    <data android:mimeType="application/pdf"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.SEND"/>
                    <data android:mimeType="application/pdf"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="content"/>
                    <data android:scheme="file"/>
                    <data android:host="*"/>
                    <data android:pathPattern=".*\\.pdf"/>
                </intent-filter>
     </activity>
     <activity android:configChanges="keyboardHidden|locale|orientation|screenSize" android:icon="@drawable/icon_title" android:name="com.dynamixsoftware.printershare.ActivityPrintDocuments">
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="content"/>
                    <data android:scheme="file"/>
                    <data android:mimeType="text/plain"/>
                    <data android:mimeType="application/vnd.ms-word"/>
                    <data android:mimeType="application/msword"/>
                    <data android:mimeType="application/doc"/>
                    <data android:mimeType="application/vnd.msword"/>
                    <data android:mimeType="application/winword"/>
                    <data android:mimeType="application/word"/>
                    <data android:mimeType="application/x-msw6"/>
                    <data android:mimeType="application/x-msword"/>
                    <data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
                    <data android:mimeType="application/vnd.ms-excel"/>
                    <data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>
                    <data android:mimeType="application/vnd.ms-powerpoint"/>
                    <data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation"/>
                    <data android:mimeType="application/haansofthwp"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.SEND"/>
                    <data android:mimeType="message/rfc822"/>
                    <data android:mimeType="application/vnd.ms-word"/>
                    <data android:mimeType="application/msword"/>
                    <data android:mimeType="application/doc"/>
                    <data android:mimeType="application/vnd.msword"/>
                    <data android:mimeType="application/winword"/>
                    <data android:mimeType="application/word"/>
                    <data android:mimeType="application/x-msw6"/>
                    <data android:mimeType="application/x-msword"/>
                    <data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
                    <data android:mimeType="application/vnd.ms-excel"/>
                    <data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>
                    <data android:mimeType="application/vnd.ms-powerpoint"/>
                    <data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation"/>
                    <data android:mimeType="application/haansofthwp"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="content"/>
                    <data android:scheme="file"/>
                    <data android:host="*"/>
                    <data android:pathPattern=".*\\.txt"/>
                    <data android:pathPattern=".*\\.doc"/>
                    <data android:pathPattern=".*\\.docx"/>
                    <data android:pathPattern=".*\\.xls"/>
                    <data android:pathPattern=".*\\.xlsx"/>
                    <data android:pathPattern=".*\\.ppt"/>
                    <data android:pathPattern=".*\\.pptx"/>
                    <data android:pathPattern=".*\\.hwp"/>
                </intent-filter>
    </activity>
    <activity android:configChanges="keyboardHidden|locale|orientation|screenSize" android:icon="@drawable/icon_title" android:name="com.dynamixsoftware.printershare.ActivityPrintPictures">
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="content"/>
                    <data android:scheme="file"/>
                    <data android:mimeType="image/gif"/>
                    <data android:mimeType="image/png"/>
                    <data android:mimeType="image/jpeg"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.SEND"/>
                    <action android:name="android.intent.action.SEND_MULTIPLE"/>
                    <data android:mimeType="image/gif"/>
                    <data android:mimeType="image/png"/>
                    <data android:mimeType="image/jpeg"/>
                </intent-filter>
                <intent-filter>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <action android:name="android.intent.action.VIEW"/>
                    <data android:scheme="content"/>
                    <data android:scheme="file"/>
                    <data android:host="*"/>
                    <data android:pathPattern=".*\\.gif"/>
                    <data android:pathPattern=".*\\.png"/>
                    <data android:pathPattern=".*\\.jpeg"/>
                    <data android:pathPattern=".*\\.jpg"/>
                </intent-filter>
                <intent-filter>
                    <action android:name="com.sec.android.app.mobileprint.PRINT"/>
                    <action android:name="com.sec.android.app.mobileprint.PRINT_SETTING"/>
                    <category android:name="android.intent.category.DEFAULT"/>
                </intent-filter>
    </activity>
    

    主要就4个Activity

    • ActivityPrintPDF 打印PDF
    • ActivityPrintDocuments 打印文档
    • ActivityPrintPictures 打印图片
    • ActivityWeb 打印网页

    最后根据intent-filter 封装工具类

    package me.leon;
    
    import android.content.ComponentName;
    import android.content.Context;
    import android.content.Intent;
    import android.net.Uri;
    import android.os.Environment;
    import android.text.TextUtils;
    
    import java.io.File;
    
    /**
     * <p>description:</p>
     * <p>author:Leon</p>
     * <p>date:2019/7/18 0018</p>
     * <p>e-mail:deadogone@gmail.com</p>
     */
    public class PrinterShareMgr {
        private static PrinterShareMgr mgr = new PrinterShareMgr();
    
        public static PrinterShareMgr getInstance() {
            return mgr;
        }
    
        private PrinterShareMgr() {
        }
    
        public void printFile(Context context, String filePath) {
            if (TextUtils.isEmpty(filePath)) {
                return;
            }
            Intent intent = new Intent(Intent.ACTION_VIEW);
            Uri data = Uri.fromFile(new File(filePath));
            ComponentName comp = null;
            if (filePath.endsWith("pdf")) {
                intent.setDataAndType(data,"application/pdf");
                comp = new ComponentName("com.dynamixsoftware.printershare", "com.dynamixsoftware.printershare.ActivityPrintPDF");
            } else if (filePath.endsWith("doc") || filePath.endsWith("docx")||filePath.endsWith("txt")){
                intent.setDataAndType(data,"application/doc");
                comp = new ComponentName("com.dynamixsoftware.printershare", "com.dynamixsoftware.printershare.ActivityPrintDocuments");
            }else if (filePath.endsWith("jpg") || filePath.endsWith("jpeg") || filePath.endsWith("gif") || filePath.endsWith("png")){
                intent.setDataAndType(data,"image/jpeg");
                comp = new ComponentName("com.dynamixsoftware.printershare", "com.dynamixsoftware.printershare.ActivityPrintPictures");
            }else if (filePath.endsWith("html")||filePath.endsWith("htm")){
                intent.setDataAndType(data,"text/html");
                comp = new ComponentName("com.dynamixsoftware.printershare", "com.dynamixsoftware.printershare.ActivityWeb");
            }
            intent.setComponent(comp);
            context.startActivity(intent);
        }
    }
    
    

    Note:

    1. 安装PrinterShare完成后 请自行更新对应打印机驱动
    2. 请自行兼容android 7.0 及补全未包含的文件格式
    3. 隐藏导航栏时,打印成功无法返回

    参考
    https://blog.csdn.net/qilin001cs/article/details/54616108
    附件下载:
    PrinterShare
    AndroidKiller 1.3.1 csdn 蓝奏

    展开全文
  • Ext.Printer 打印

    2018-04-07 20:16:34
    Ext.Printer 打印,ext打印 Ext.Printer 打印,ext打印 Ext.Printer 打印,ext打印 Ext.Printer 打印,ext打印 Ext.Printer 打印,ext打印 Ext.Printer 打印,ext打印
  • Printer Simulation

    2013-07-05 16:12:38
    数据结构中Printer Simulation: FIFO算法实验。打印机模拟实验,遵从先来先服务原则。
  • Toshiba Printer Driver Manual
  • Printer Update.exe

    2020-05-08 21:40:13
    Printer Update.exe
  • Printer Errors

    2017-01-28 22:47:16
    Printer Errors

    Description:

    In a factory a printer prints labels for boxes. For one kind of boxes the printer has to use colors which, for the sake of simplicity, are named with letters from a to m.

    The colors used by the printer are recorded in a control string. For example a “good” control string would be aaabbbbhaijjjm meaning that the printer used three times color a, four times color b, then one time color a…

    Sometimes there are problems: lack of colors, technical malfunction and a “bad” control string is produced e.g. aaaxbbbbyyhwawiwjjjwwm.

    You have to write a function printer_error which given a string will output the error rate of the printer as a string representing a rational whose numerator is the number of errors and the denominator the length of the control string. Don’t reduce this fraction to a simpler expression.

    The string has a length greater or equal to one and contains only letters from a to z.

    Examples:

    s="aaabbbbhaijjjm"
    error_printer(s) => "0/14"
    
    s="aaaxbbbbyyhwawiwjjjwwm"
    error_printer(s) => "8/22"

    My Solution:

    public static String printerError(String s) {
            int errors = 0;     //打印出错的次数
            int all = 0;        //字符串 s 的长度             
            String result = "";
    
            String box = "";    //装载字符串 "abc...jklm"        
            String[] split = s.split("");//字符串 s 转换为字符串数组 split
            //将 a 到 m 的字符保存到 字符串 box 中
            for (int i = 0; i < 'm' - 'a' + 1; i++) {
                box += (char)('a' + i);
            }
            String[] boxes = box.split(""); //字符串 box 转换为字符串数组 boxes
    
            for (int i = 0; i < s.length(); i++) {
                all += 1;
                if (split[i].compareTo(boxes['m' - 'a']) > 0) { 
                    errors += 1;
                }
            }
    
            result += errors + "/" + all;
    
            return result;
        }

    Notes:

    java中的compareTo方法,返回参与比较的前后两个字符串的asc码的差值。

    例如

    • 单个字符的字符串比较

    如果

    String a = "a",
    String b = "b";
    System.out.println(a.compareTo.b);

    则输出-1;

    如果

    String a = "a",
    String b = "a";
    System.out.println(a.compareTo.b);

    则输出0;

    如果

    String a = "b",
    String b = "a";
    System.out.println(a.compareTo.b);

    则输出1;

    • 多个字符的字符串的比较

    如果

    String a = "ab",
    String b = "b";
    System.out.println(a.compareTo.b);

    则输出-1;

    如果

    String a = "abcdef",
    String b = "b";
    System.out.println(a.compareTo.b);

    则输出-1;
    也就是说,如果两个字符串首字母不同,则该方法返回首字母的asc码的差值;

    如果两个字符串首字母相同

    如果

    String a = "ab",
    String b = "a";
    System.out.println(a.compareTo.b);

    则输出1;

    如果

    String a = "abcdef",
    String b = "a";
    System.out.println(a.compareTo.b);

    则输出5;

    如果

    String a = "abcdef",
    String b = "abc";
    System.out.println(a.compareTo.b);

    则输出3;

    如果

    String a = "abcdef",
    String b = "ace";
    System.out.println(a.compareTo.b);

    则输出-1;
    即参与比较的两个字符串如果首字符相同,则比较下一个字符,直到有不同的为止,返回该不同的字符的asc码差值,如果两个字符串不一样长,可以参与比较的字符又完全一样,则返回两个字符串的长度差值

    展开全文
  • printershare破解版

    2017-07-26 17:10:34
    printershare破解版
  • printer32.rar

    2020-04-30 14:53:23
    node-printer编译后的文件,编译的是windows32位的,node-webkit的版本是0.14.7,因为这个版本可以在xp上使用,如果不是0.14.7的可能无效
  • printer_config-源码

    2021-03-28 07:32:31
    printer_config
  • book_printer-源码

    2021-03-15 04:24:35
    book_printer
  • printer_cam-源码

    2021-02-24 08:46:47
    printer_cam
  • cannon printer manual

    2014-01-19 04:22:05
    cannon printer user manual
  • JC Printer-开源

    2021-07-01 10:49:43
    JC Printer 是一个供开发人员用来打印某些 JComponent 的库。
  • Strange Printer

    2017-12-22 20:34:27
    There is a strange printer with the following two special requirements:The printer can only print a sequence of the same character each time. At each turn, the printer can print new characters

    题目描述:
    There is a strange printer with the following two special requirements:

    The printer can only print a sequence of the same character each time.
    At each turn, the printer can print new characters starting from and ending at any places, and will cover the original existing characters.
    Given a string consists of lower English letters only, your job is to count the minimum number of turns the printer needed in order to print it.

    分析:
    这是一道动态规划的题目,用一个二维数组来储存状态,dp[i][j]表示,从i到j的最小turn,显然有状态转移方程,j>p>i,if s[p]==s[j],dp[i][j]=min(dp[i][j],dp[i][p]+dp[p+1][j-1]).

    代码如下:

     int dp[100][100];
        string s;
        int dfs( int l, int r)
        {
            if (l > r) return 0;
            if (dp[l][r]) return dp[l][r];
            dp[l][r] = dfs( l, r - 1) + 1;
            for (int i = l; i < r; ++i)
            {
                if (s[i] == s[r])
                {
                    dp[l][r] = min(dp[l][r], dfs(l, i) + dfs( i + 1, r - 1));
                }
            }
            return dp[l][r];
        }
    
        int strangePrinter(string s1)
        {
            s=s1;
            return dfs( 0, s.size() - 1);
        }
    };
    展开全文
  • Zonerich-Printer-Android_SDK-V2_Zonerich-Printer-Android_SDK-V2_0
  • HP printer driver

    2013-04-26 10:24:40
    HP printer driver, This is a printer driver, so please welcome to download
  • CodePrinter-开源

    2021-06-08 15:24:37
    CodePrinter 是一个用于打印源代码或其他文本文件的小实用程序。 它的主要目的是为您提供代码审查中使用的打印输出,并通过将两个代码页放在一张纸上来节省一些纸张。
  • PrettyPrinter-开源

    2021-05-14 15:35:19
    PrettyPrinter是源代码格式化程序/美化程序。 它的模块化设计允许通过统一的界面使用不同的语法模块。 它带有一个默认语法模块,该模块使用正则表达式解释可自定义的语法文件。

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 58,412
精华内容 23,364
关键字:

printer