Skip to content

Enhance PDF Export: Preserve Hyperlinks in Resume#1

Open
Talhadeveloperr wants to merge 1 commit intoAfif718:mainfrom
Talhadeveloperr:feature/PreviewFeature
Open

Enhance PDF Export: Preserve Hyperlinks in Resume#1
Talhadeveloperr wants to merge 1 commit intoAfif718:mainfrom
Talhadeveloperr:feature/PreviewFeature

Conversation

@Talhadeveloperr
Copy link
Copy Markdown

Summary

This PR improves the PDF export functionality in the Resume Maker project by ensuring that all hyperlinks (LinkedIn, GitHub.) remain clickable in the generated PDF.

Changes

  • Replaced the previous print-based PDF generation with html2pdf.js to maintain proper hyperlinks.
  • Updated handleDownloadPDF function with proper options for high-quality PDF export.
  • Fixed TypeScript issues related to Html2PdfOptions and .save() method.
  • Ensured that all anchor tags wrap icons and text for consistent hyperlink behavior.
  • Added useCORS: true and higher html2canvas scale for better rendering of SVG icons and fonts.

Benefits

  • Users can now click on hyperlinks directly in the downloaded PDF.
  • High-quality, multi-page PDF export compatible with A4 and Letter formats.
  • Maintains existing styling and template structure.

Notes

No changes were made to core resume templates. This update strictly improves PDF export behavior.

This PR focuses on improving PDF export with proper hyperlinks. I am also working on other enhancements and will submit updates for additional features in future PRs.

@manpreetbhasin
Copy link
Copy Markdown

Seems like incomplete commit. Only change is in package-lock.json. @Talhadeveloperr did you forget to commit rest?

@Talhadeveloperr
Copy link
Copy Markdown
Author

Talhadeveloperr commented Mar 5, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants