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

Add Document Export Functionality #191

Closed
devleejb opened this issue May 5, 2024 · 4 comments · Fixed by #238
Closed

Add Document Export Functionality #191

devleejb opened this issue May 5, 2024 · 4 comments · Fixed by #238
Assignees
Labels
enhancement 🌟 New feature or request
Milestone

Comments

@devleejb
Copy link
Member

devleejb commented May 5, 2024

What would you like to be added:
Currently, users can write Markdown documents in CodePair, but there is no functionality to export these documents to formats like PDF. It would be beneficial to introduce a document export feature that allows users to save their Markdown documents in various file formats.

Why is this needed:
Adding a document export functionality will enhance the usability of CodePair and provide users with the flexibility to save and share their work in different formats. This feature can improve the overall user experience and make it easier for users to collaborate and share their work outside of the platform.

Additional Information:

@devleejb devleejb added the enhancement 🌟 New feature or request label May 5, 2024
@devleejb devleejb added this to the New Feature milestone May 5, 2024
@krapie krapie moved this to Backlog in Yorkie Project May 11, 2024
@minai621
Copy link
Contributor

I want to try to solve this issue. Can I try it?

@devleejb
Copy link
Member Author

@minai621
Of course. If you have any question, feel free to ask.

@devleejb devleejb assigned devleejb and minai621 and unassigned devleejb Jul 15, 2024
@devleejb devleejb moved this from Backlog to In progress in Yorkie Project Jul 20, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in Yorkie Project Jul 23, 2024
@github-project-automation github-project-automation bot moved this to Done in CodePair Jul 23, 2024
@devleejb devleejb reopened this Jul 24, 2024
@devleejb
Copy link
Member Author

I think we have to research other approaches.

I will search approaches in this weekend too!

@minai621
Copy link
Contributor

minai621 commented Jul 24, 2024

@devleejb

I think we have to research other approaches.

I will search approaches in this weekend too!

I've thought about it, and it seems appropriate to provide a demo-level solution to users by capturing from the client side, as long as we can resolve the CORS issue.

In testing, I found that it perfectly supports markdown syntax except for applying style props directly in HTML. Images can be fetched via requests as long as they do not run into CORS issues.

However, if we include images in the content, we'll need to upload them to an image server to handle CORS.

We might need to choose between setting up an image server and installing Puppeteer in the Docker image.

If we decide to use Puppeteer, I'll look for the latest libraries instead of the previously suggested html-to-pdf.

@hackerwins hackerwins moved this from Done to Backlog in Yorkie Project Jul 25, 2024
@hackerwins hackerwins moved this from Done to Backlog in CodePair Jul 25, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in CodePair Jul 25, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Yorkie Project Jul 25, 2024
@devleejb devleejb modified the milestones: New Feature, v0.1.0 Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request
Projects
Archived in project
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants