Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodkr123 committed Apr 6, 2018
1 parent 841c689 commit 3c89dda
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions app/src/main/java/com/convertwebviewtopdf/demo/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}*/
}

0 comments on commit 3c89dda

Please sign in to comment.