-
Notifications
You must be signed in to change notification settings - Fork 551
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
quill delta format to PDF and HTML #33
Comments
i found a nodejs quill-delta to html. It would be a good spec / example to work from. But again i dont know if its Notus that is the source format ? |
Converting to PDF would be very helpful! |
hey @pulyaevskiy what do you think of the idea ? If you have other plans in this area, i am happy to adapt. |
@gedw99 It would be really helpful to have such functionality for delta documents in flutter! And while I believe that this functionality would be best implemented outside of the zefyr editor in a separate package, I would love to help with building such functionality or help with testing if you already have something in the making. https://flutter.io/developing-packages/ |
Sorry for late response here. I definitely think this is a valuable thing to do. There is one thing I’m mostly concerned about which is bringing in too many dependencies into Zefyr or Notus. I’d like these packages to be lightweight and not force users downloads the rest of Pub with them. I currently have basic markdown converter in notus, but I’m starting to consider stripping out into a separate notus_convert package. This package would also be a good place for HTML and PDF converters. I can go ahead and set it up if this would help you guys to contribute. Let me know your thoughts. |
hey @pulyaevskiy thats the exact approach i would do also - converters. SO to Print a Zefyr doc, your thinking zefyr --> Notus ( file ) --> Markdown --> PDF ? I would also like: zefyr --> Notus ( file ) --> PDF Also there is another reason too. Zefyr proves whats possible with Flutter in terms of highly interactive software. I think that Spreadsheets, Powerpoints and SVG Editors will be built with Flutter ongoing. You should keep Zefyr & Notus and the exporter light and focussed. i agree. |
About Notus to PDF... SO to go from notus to pdf, how to calc the x and y ? See example: https://github.com/DavBfr/dart_pdf/tree/master/pdf |
@gedw99 Any progress on this feature so far? I would love to help with testing/prototyping since I believe most zefyr users would benefit in one way or another from having an export feature. After separating the notus_convert package as @pulyaevskiy mentioned the remaining work should be much easier since Markdown to PDF renders are already existing and a simple port to dart should do the trick. |
@pulyaevskiy I was lately looking into exporting a Zefyr document into Markdown using the Notus converter you mentioned above, but I had trouble finding it. Could you maybe quickly outline how to access the Markdown generated by the Notus markdown converter? |
hey @stemuk Nothng on my side. Too many things going on. GO for it and please comment back here how you go. Has the notus_convert package been seperated out yet though ? |
@gedw99 I will let you know if I make any progress on this side, for now I am focusing on exporting to Markdown though. As for the separation I think the |
My users are asking for this one, I successfully released a version of my app with "note taking" feature, but now people are asking for a way to "export" the notes with formatting :-) |
Thanks for the feedback @Panthro! I’m planning to have more updates in January. This is not very high on the list yet but I’ll keep everyone posted when I get to this. |
Nice, I'd love to see this actually happening |
@pulyaevskiy May I recommend exporting an interface for conversion, something like, Or perhaps And you would provide the converter/serializer when you create a new Zefyr widget. |
hey @pulyaevskiy any update on this? :-) Has anyone found a way to export the document to pdf or html? thanks |
@Panthro SO from HTML, its easy to convert to PDF using the PDF Dart lib. There are a few out there. |
@pulyaevskiy Thanks |
is there any interest in this ?
This woudl allow a user to print a zefyr document by first converting it to PDF.
This dart package looks like the good:
https://github.com/DavBfr/dart_pdf
SO all we only need to do write a generic parser in Dart that takes the current zefyr / quill format and convert it to PDF. Because zefyr format is limited ( like markdown in a way) it should not be too hard.
I am not sure if its Notus that is the actual on data structure we work from ?
The text was updated successfully, but these errors were encountered: