A Go program able to convert Office Documents automatically to PDF / EPUB Files via OnlyOffice and BoockStack
Jonas Letzbor 3843ebab9f | ||
---|---|---|
cmd/ncDocConverth | ||
configs | ||
internal | ||
pkg | ||
scripts | ||
web | ||
.gitignore | ||
BUILD.md | ||
README.md | ||
go.mod | ||
go.sum |
README.md
ncDocConverter
A Go program able to convert documents automatically to PDF / EPUB Files.
Currently, the following sources for documents are supported:
- Nextcloud with OnlyOffice
- Boockstack
As a destination to save the converted files only Nextcloud is supported.
Setting it up
For using the
BookStack
For converting books of BookStack you need to create an API token for the user to access the books:
- Login as Admin
- Go to Settings → Users
- Select user for API access
- Scroll down to
API Tokens
and clickCREATE TOKEN
- Set a name and expire date. Click
save
- Copy the ID and Token. The field
apiToken
will contain the combination fromid:token
Now you need also create a new role or edit an existing role.
- Go to Settings → Roles
- Edit and existing Role (the role which the user have) or create a new role
- Check the box
Access system API
andExport content
inSystem permissions
- Assing View Role (all and own) for Shelves, Books, Chapters and Pages