diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json
index 9e9e9dda7f..a02a213a7a 100644
--- a/services/web/frontend/extracted-translations.json
+++ b/services/web/frontend/extracted-translations.json
@@ -203,6 +203,11 @@
"no_messages": "",
"no_new_commits_in_github": "",
"no_other_projects_found": "",
+ "no_pdf_error_explanation": "",
+ "no_pdf_error_reason_unrecoverable_error": "",
+ "no_pdf_error_reason_no_content": "",
+ "no_pdf_error_reason_output_pdf_already_exists": "",
+ "no_pdf_error_title": "",
"no_preview_available": "",
"no_search_results": "",
"no_symbols_found": "",
@@ -339,4 +344,4 @@
"zotero_reference_loading_error_expired": "",
"zotero_reference_loading_error_forbidden": "",
"zotero_sync_description": ""
-}
+}
\ No newline at end of file
diff --git a/services/web/frontend/js/features/preview/components/preview-error.js b/services/web/frontend/js/features/preview/components/preview-error.js
index a72fca2fb1..3536554e61 100644
--- a/services/web/frontend/js/features/preview/components/preview-error.js
+++ b/services/web/frontend/js/features/preview/components/preview-error.js
@@ -1,5 +1,5 @@
import PropTypes from 'prop-types'
-import { useTranslation } from 'react-i18next'
+import { useTranslation, Trans } from 'react-i18next'
import PreviewLogsPaneEntry from './preview-logs-pane-entry'
import Icon from '../../../shared/components/icon'
import { useEditorContext } from '../../../shared/context/editor-context'
@@ -59,6 +59,30 @@ function PreviewError({ name }) {
} else if (name === 'projectTooLarge') {
errorTitle = t('project_too_large')
errorContent = <>{t('project_too_much_editable_text')}>
+ } else if (name === 'failure') {
+ errorTitle = t('no_pdf_error_title')
+ errorContent = (
+ <>
+
document
environment contains no content. If it's empty, please add some content and compile again.",
+ "no_pdf_error_reason_output_pdf_already_exists": "This project contains a file called output.pdf
. If that file exists, please rename it and compile again.",
"logs_pane_info_message": "We are testing a new logs pane",
"logs_pane_info_message_popup": "We are testing a new logs pane. Click here to give feedback.",
"github_symlink_error": "Your Github repository contains symbolic link files, which are not currently supported by Overleaf. Please remove these and try again.",
@@ -1468,4 +1473,4 @@
"page_current": "Page __page__, Current Page",
"go_page": "Go to page __page__",
"pagination_navigation": "Pagination Navigation"
-}
+}
\ No newline at end of file