When the HTML content size exceeds the 25 MB limit, currently the system displays the following generic error message:
"Failed to export PDF". Instead the system should display a clear, specific, and user-friendly error message such as:
"PDF export failed because the HTML content size exceeds the maximum allowed limit of 25 MB. Please reduce the content size and try again."
This would help users immediately understand the issue and take the appropriate steps to resolve it.