From 3c89dda303e3acba74c1a1af0f3b451a8367caaa Mon Sep 17 00:00:00 2001 From: pramodkr Date: Fri, 6 Apr 2018 16:02:56 +0530 Subject: [PATCH] remove unnecessary code --- .../demo/MainActivity.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/src/main/java/com/convertwebviewtopdf/demo/MainActivity.java b/app/src/main/java/com/convertwebviewtopdf/demo/MainActivity.java index c3e3138..ee8feea 100644 --- a/app/src/main/java/com/convertwebviewtopdf/demo/MainActivity.java +++ b/app/src/main/java/com/convertwebviewtopdf/demo/MainActivity.java @@ -61,25 +61,6 @@ public void failure() { } }); - System.out.println("New Chages"); - } - - - /* private void createWebPrintJob(WebView webView) { - String jobName = getString(R.string.app_name) + " Document"; - PrintAttributes attributes = null; - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { - attributes = new PrintAttributes.Builder() - .setMediaSize(PrintAttributes.MediaSize.ISO_A4) - .setResolution(new PrintAttributes.Resolution("pdf", "pdf", 600, 600)) - .setMinMargins(PrintAttributes.Margins.NO_MARGINS).build(); - } - - PdfPrint pdfPrint = new PdfPrint(attributes); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - pdfPrint.print(webView.createPrintDocumentAdapter(jobName), path, "output_" + System.currentTimeMillis() + ".pdf"); - } - }*/ }