Export file not showing all records

After exporting records in PDF or Excel, only current page records are showing. Total records are 500+ and records per page limit is set to 50, so total pages are more than 10. but after exporting file, it is showing only 50 records of page from we have exported.

We want to view all records in single export file.