pdf creation by ERB template