I want to generate a PDF File from a View using the PdfDocument android class introduced in KitKat. I managed to do it, and the file is so far generated ok, end
To decrease PDF file size while using PdfDocument create your bitmap with Bitmap.Config.RGB_565 using Bitmap.Config.ARGB_8888 or Bitmap.Config.ARGB_4444 will increase the file size
Bitmap b = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);