feat: add PDF export functionality
Description (Issue #1314)
I've added a new action (Export as PDF) to the toolbar. Clicking this option will open the print dialog, allowing users to save the article as a PDF. All the contents(texts, links, images, tables...) in the article are made available as it is.
(A demo video will be added below for better clarity.)
Changes Made:
- Updated language files with the new toolbar text (translations generated using Google Translate).
-
No new packages were added. Instead, I used the native
window.print(), which prints only the article, as all other components havedata-hide-print. - Added an icon for the new menu option along with the necessary code changes.
PR Type
- [ ] Feature
Demo Video
https://github.com/user-attachments/assets/79896f1f-170f-4fd2-889c-dd13a6c067e7
Linked Issues
- Fixes #1314
Additional Context
Changelog
- Will update the changelog once the PR is approved (incase any modifications).
Thank you for your contribution. We will review it promptly.
@vikas-viki, please use Conventional Commits format for your PR title.
Your PR title should follow this format:
<type>(<scope>): <description>
Common types include:
- feat: A new feature
- fix: A bug fix
- docs: Documentation changes
- style: Code style changes (formatting, missing semi colons, etc)
- refactor: Code refactoring
- test: Adding or updating tests
- chore: Changes to build process or auxiliary tools
Examples:
- feat(user): add user login function
- fix(api): correct HTTP response status code
- docs(readme): update installation guide
For more details, please visit: https://www.conventionalcommits.org/
@vikas-viki is attempting to deploy a commit to the RSS3 Team on Vercel.
A member of the Team first needs to authorize it.
Suggested PR Title:
feat: add PDF export functionality and localization updates
Change Summary: Added PDF export functionality and updated localization files for various languages to include export notifications and commands for exporting articles as PDF. Also introduced a new SVG icon for the PDF export feature.
Code Review: No change requests necessary.
@Innei can you review this please.
@hyoban @Innei @DIYgod please do check if the changes made are up to the marks.
Thanks for your contribution, you do not have to ping us after you make a change. We watched the repository and will check the updates in the inbox when we have time. Direct pinging is only used when we have missed your message for too long.
Thank you @vikas-viki for your contribution! 🎉
Your pull request has been merged and we really appreciate your help in making this project better. We hope to see more contributions from you in the future! 💪
wish add a new feat: add markdown export function. thx