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

Is it possible to use docbuilder in a plugin for onlyoffice #42

Open
default34 opened this issue Nov 25, 2020 · 6 comments
Open

Is it possible to use docbuilder in a plugin for onlyoffice #42

default34 opened this issue Nov 25, 2020 · 6 comments
Labels
feature request Issues that request new features to be added to OnlyOffice

Comments

@default34
Copy link

For example, I have a Helloworld plugin like that -
https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/helloworld
Is it possible to import docbuilder into this plugin and if so how to do it?

@ShockwaveNN
Copy link
Contributor

Could you describe your scenario in more details? What did you need to get in result?

DocumentBuilder is command line tool which use almost same syntax as plugins to generate document files.
Plugins are used to modification currently opened documents via DocumentServer.
So use cases of Plugins and DocBuilder are pretty different

@default34
Copy link
Author

I am writing a plugin for documents and I want to add a function to save the document in pdf format.
I found the builder.SaveFile ('pdf', 'Filename.pdf') method
But I didn't find a similar one for plugins in documentation.

@ShockwaveNN
Copy link
Contributor

@askonev Could you take a look, I'm not familiar with builder on that level

@askonev
Copy link
Member

askonev commented Dec 2, 2020

Hello @datexgo!
You are working with the desktop version of the onlyoffice editors?

@TheOrbOfConfusion89
Copy link

Hey @askonev , I'm interested in a workflow fairly similar to @datexgo . I'm using the desktop version of onlyoffice editor, and trying to develop a plugin which can do things like save and export the current file as PDF or a series of bitmap images.

However since the DocBuilder APIs are only exposed via the docbuilder executable I'm hitting a wall trying to "escape" from javascript in my plugin code to call into docbuilder, and it's just not seeming feasible. A way to call the docbuilder APIs directly from plugin code would be ideal for this use case.

@askonev
Copy link
Member

askonev commented Feb 8, 2022

@default34 @TheOrbOfConfusion89
There are technical and architectural restrictions to running methods for the builder in plugins. But solving the problem with saving files using plugin methods is feasible. Opened a enhancenment #55419 in our private issue tracker

@ShockwaveNN ShockwaveNN added the feature request Issues that request new features to be added to OnlyOffice label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to OnlyOffice
Projects
None yet
Development

No branches or pull requests

4 participants