Skip to content

Instantly share code, notes, and snippets.

@wwdablu
Created April 12, 2019 02:14
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/01c2045695d3a1bf8875fbfe31e1fbde to your computer and use it in GitHub Desktop.
Save wwdablu/01c2045695d3a1bf8875fbfe31e1fbde to your computer and use it in GitHub Desktop.
textComposer = simplyPdfDocument.getTextComposer();
TextComposer.Properties textProperties = new TextComposer.Properties();
textProperties.textSize = 24;
textProperties.typeface = Typeface.create(Typeface.DEFAULT, Typeface.BOLD);
textProperties.alignment = Layout.Alignment.ALIGN_CENTER;
textComposer.write("SimplyPDF", textProperties);
textProperties.typeface = null;
textProperties.textSize = 20;
textComposer.write("An android library that allows the user to generate PDF" +
" files within the application ans save them in the device storage." +
" This sample PDF is generated using this library", textProperties);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment