https://developer.android.com/training/printing/custom-docs.html#print-adapter
I found this but it is too complicated I think. I just want to send an existing pdf file to the printer. Is the above way is the only way? I couldn't find anything other that.