refactorizando exportar pdf