New version with PDF#renderContent to render pdf from file content