Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font quality decresing after genrating PDF #31

Open
Yuvraj-kadale opened this issue Aug 16, 2020 · 4 comments
Open

Font quality decresing after genrating PDF #31

Yuvraj-kadale opened this issue Aug 16, 2020 · 4 comments
Labels
Bug Something isn't working CH20 Hacktoberfest Counting contributions for Hacktoberfest Medium

Comments

@Yuvraj-kadale
Copy link

Yuvraj-kadale commented Aug 16, 2020

Describe the bug
After generating the pdf, the quality of the font is decreased.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to 'https://gitsetgo.netlify.app/'
  2. Click on 'generate pdf'
  3. Scroll down to '....'
  4. See error

Expected behaviour
No change in the font quality before and after generating the pdf.

Screenshots
Quality before generating the pdf
Capture

Quality after generating the pdf
Capture

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [firefox]
  • Version [79]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@issue-label-bot issue-label-bot bot added the Bug Something isn't working label Aug 16, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@garimasingh128
Copy link
Owner

Elaborate the issue in the description.

@Yuvraj-kadale
Copy link
Author

Elaborate the issue in the description.

DONE!

@garimasingh128 garimasingh128 added CH20 Hacktoberfest Counting contributions for Hacktoberfest Medium labels Sep 22, 2020
@ashuvssut
Copy link

actually font quality is not decreasing.
the font used in the webpage is not getting imported in pdf.

SOLUTION: Use puppetter. Puppeteer can generate pdfs from webpages. see it documentation

Why I am so sure that my solution ud work?
I have a react Resume website in which i created my resume (in the resume, there are HTML elements only with CSS and fonts). ref- https://github.com/ashuvssut/ashuvssut-resume
I generate my resume pdf using puppeteer

the generation process is automated by a GitHub Action that I created. If you want that PDF generation code then follow this link

Sadly there is no other option for you other than using puppeteer. I have searched a lot for alternatives.😂 believe me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working CH20 Hacktoberfest Counting contributions for Hacktoberfest Medium
Projects
None yet
Development

No branches or pull requests

3 participants