cups android 10,GitHub - pelya/android-print-plugin-cups: CUPS print plugin for Android

android-print-plugin-cups

CUPS print plugin for Android.

There are many other print plugins like this one, however I did not find any open-source plugins,

most of them have outrageous prices, and the only free plugin failed to work with Android printing framework.

In my opinion, printing support shall be a freely-available part of the OS,

that's also the reason why I chose GPL as a license for this plugin.

This plugin unpacks minimal Debian installation with CUPS included,

and launches it using PRoot, then uses it for actual printing.

To generate Debian image, download repo https://github.com/pelya/cuntubuntu

and launch script img-cups-jessie.sh from img directory.

You will need to do this from Debian/Ubuntu, and install few packages, specified in it's readme file.

PRoot can be downlaoded from http://proot.me/

Other than these things, the plugin contains only Java code, and no other magic.

There is no JNI or other weird stuff - Java code just calls lp, lpinfo, lpadmin etc commandline tools.

I hate Java and dislike IDEs, so you'll have to put up with my coding style, sorry.

Don't ask me how to import this project into Android Studio or Eclipse.

TODO:

Selected printer disappears in 10 seconds on Android Lollipop, print dialog stops working

Add support for 64-bit architectures

Implement AdvancedPrintOptionsActivity:

Page margins

Collate copies

Resize print content to fit into less amount of pages, by reporting bigger paper size and rescaling it back when printing

All options configurable by lpoptions:

Paper type

Printer tray select

Print resolution

Booklet print

Print preview:

Show or hide print preview in advanced options

Change page margins inside print preview

Select and de-select pages for print preview

USB printers support, by forwaring calls from libusb to Java

Print on older devices and from older apps, using 'Share' button

Command-line interface into CUPS installation

Add non-Samba printer by URL, share non-Samba printer

Search for IPP and Bonjour printers using cups-browsed

Set LANG to make CUPS print localized error messages

When printing page range and multiple copies, CUPS collates pages and we don't want that

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值