Add finaly print functionality and automatic save pdf