Skip to content

Instantly share code, notes, and snippets.

@wwdablu
Created May 19, 2019 22: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/4f3336920f00c893a295ae0bf75bbf71 to your computer and use it in GitHub Desktop.
Save wwdablu/4f3336920f00c893a295ae0bf75bbf71 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