-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature Request] Pdf-docx export option #1387
Comments
hard against. You open Pandoras Box. Then you'd also need to support OpenDocument Standards like... Not to mention, if you export from MS formats to OpenDocuments formats and back, the layout is broken. I'd rather not want to have it. |
this could be a good incentive to implement a plugin system that allows, among other stuff, to import/export from/to whatever format the plugin implementer wants |
I agree with @cebas, but don't forget that this is really much todo. Is this about documents only? |
This is sort of feature creep - these are not simple features and are only tangentially related to the focus of Trilium - note taking. For docx there's an easy workaround - you can just open Word and paste the note's content into it and there you go - docx. |
Not only documents. My thoughts were about a generic plugin system that allows any kind of extension that the plugin system allows. This could start with import/export and grow to every other way @zadam wants to open a door to. |
I think you must explain more. This sounds to me, that you could do that by passing arguments to another executable file on windows / mac / linux. |
I mean this: https://en.wikipedia.org/wiki/Plug-in_(computing) |
@cebas in theory Trilium already has "plugins" - they are called "scripts". Trilium scripting API provides you access to the database and you can use that to export in whatever file format you wish. There's a catch though - I doubt people will develop docx export from scratch and will want to use existing node.js libraries. And this is a problem since the set of libraries Trilium comes with is set at build time and cannot be extended. Trilium scripts are CommonJS-like modules and in theory some libraries could be shoe horned into scripts, I'm not sure how this would work in practice ... |
@zadam thanks for the explanation. I didn't notice these scripts are plugin-like. I have no experience with node, so I can't help on this, but I'm sure somebody else will. |
There is always Pandoc for flexible file format conversion, based on Trilium's current HTML or Markdown export. See the demos page for example conversions, it includes docx as export option. |
I just checked the demo page and it doesn't convert files for me... |
Any error messages? Are you trying to execute on an HTML or Markdown export of Trilium? Willing to help out, Pandoc has usually worked well for me over the past years. |
Nah, not at all. I thought I can import my files into that thing and get a PDF. I mean, you are meant to renderNote the HTML file from the demo, and that's all you can use, no? If it's different, write step-by-step please. |
Implemented export as PDF in TriliumNext. |
It would be a must have a good pdf - docx export option. At the end, the documents of most of the people are in docx and pdf.
The text was updated successfully, but these errors were encountered: