changed renderPdfElement to renderPdfHorizontal