Skip to content

Instantly share code, notes, and snippets.

@wwdablu
Created April 12, 2019 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wwdablu/e246be94c5ae54a1e6ddaf9f1a26ea8e to your computer and use it in GitHub Desktop.
Save wwdablu/e246be94c5ae54a1e6ddaf9f1a26ea8e to your computer and use it in GitHub Desktop.
simplyPdfDocument = SimplyPdf.with(this, new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.pdf"))
.colorMode(DocumentInfo.ColorMode.COLOR)
.paperSize(PrintAttributes.MediaSize.ISO_A4)
.margin(DocumentInfo.Margins.DEFAULT)
.paperOrientation(DocumentInfo.Orientation.PORTRAIT)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment