-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
text-readable PDF conversion, minor CSS changes (#1)
- Loading branch information
Showing
8 changed files
with
2,368 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
node_modules/ | ||
resume.pdf | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const puppeteer = require('puppeteer'); | ||
|
||
async function convertToPDF() { | ||
const browser = await puppeteer.launch(); | ||
const page = await browser.newPage(); | ||
|
||
// Set optional viewport size | ||
await page.setViewport({ width: 1200, height: 800 }); | ||
|
||
// Enter the path to the page | ||
await page.goto('http://localhost:8080', { waitUntil: 'networkidle0' }); | ||
|
||
// Generate text-editable PDF from the HTML page | ||
await page.pdf({ path: 'resume.pdf', format: 'A4' }); | ||
|
||
// Close the browser | ||
await browser.close(); | ||
} | ||
|
||
convertToPDF(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
bade177
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
iiitd-resume – ./
iiitd-resume-ananyalohani.vercel.app
iiitd-resume.vercel.app
iiitd-resume-git-master-ananyalohani.vercel.app