-
- You can click on the button below to generate a PDF instantly. Alternatively, you can
- also use
Cmd/Ctrl + P
but it would have
- different effects.
-
-
-
-
-
-
-
-
+
diff --git a/src/i18n/source/rightSidebar/actions.json b/src/i18n/source/rightSidebar/actions.json
index b6818714..52482cdc 100644
--- a/src/i18n/source/rightSidebar/actions.json
+++ b/src/i18n/source/rightSidebar/actions.json
@@ -9,12 +9,11 @@
"export": "Export"
}
},
- "printResume": {
- "heading": "Print Your Resume",
- "body": "You can click on the button below to generate a PDF instantly. Alternatively, you can also use <1>Cmd/Ctrl + P1> but it would have different effects.",
+ "downloadResume": {
+ "heading": "Download Resume",
+ "body": "You can click on the button below to download a PDF version of your resume instantly. For best results, please use the latest version of Google Chrome.",
"buttons": {
- "export": "Export",
- "print": "Print"
+ "saveAsPdf": "Save as PDF"
}
},
"loadDemoData": {
diff --git a/src/shared/PageController.js b/src/shared/PageController.js
index 0d81c9b2..1ed55afe 100644
--- a/src/shared/PageController.js
+++ b/src/shared/PageController.js
@@ -1,9 +1,10 @@
import React, { useContext } from 'react';
import PageContext from '../context/PageContext';
+import { saveAsPdf } from '../utils';
const PageController = () => {
const pageContext = useContext(PageContext);
- const { panZoomRef } = pageContext;
+ const { pageRef, panZoomRef } = pageContext;
const zoomIn = () => panZoomRef.current.zoomIn(2);
const zoomOut = () => panZoomRef.current.zoomOut(2);
@@ -29,15 +30,23 @@ const PageController = () => {