我正在开发一款通过Google云打印打印图像的应用。 它正在工作,但我需要设置文档边距。 我该怎么做?
String fileName = Environment.getExternalStorageDirectory() + "/test.jpg";
final File file = new File(fileName);
Uri uri = Uri.fromFile(file);
Intent printIntent = new Intent(this, PrintDialogActivity.class);
printIntent.setDataAndType(uri, "image/jpeg");
printIntent.putExtra("title", "image print");
startActivity(printIntent);