User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:gendoc:howto [2019/12/12 11:25]
joebordes [PDF Output]
en:gendoc:howto [2021/09/12 17:39] (current)
joebordes [PDF Output]
Line 44: Line 44:
 You can accomplish this in various ways You can accomplish this in various ways
  
-1.- install libreoffice headless and unconv in the same server you have coreBOS, then add the PDF Links which can be done in Settings > Module Manager > Document Generator > Server SettingsWith that, you should be able to generate PDFs. The hard part of this solution is to install all the necessary software in the server and make sure it can be called by your web server user. There are some interesting conversations about this in the forum and in github issues. If you want us to install this for you don't hesitate to contact us, it is a nice way of supporting the project.+1.- install libreoffice headless and unconv in the same server you have coreBOS, then add the PDF Links which can be done in <​code>​Settings > Module Manager > Document Generator > Server Settings</​code> ​With that, you should be able to generate PDFs. The hard part of this solution is to install all the necessary software in the server and make sure it can be called by your web server user. There are some interesting conversations about this in the forum and in github issues. If you want us to install this for you don't hesitate to contact us, it is a nice way of supporting the project. ​The instructions are basically: <​code>​apt update 
 +apt-get install libreoffice-core unoconv 
 +unoconv --listener &</​code>​ and make sure that listener is on always
  
-2.- use our (TSolucio) service. TSolucio has one prepared which you can use by either having a support contract with us or by purchasing our [[https://​blog.corebos.org/​blog/​corebossubscription|coreBOS Subscription service]]. This is also a very clean way of getting PDFs and supporting the project. Besides getting the service you get access to a lot of our developments. Once you have purchased the service we will send you the URL and access information which you will have to set in the Settings > Module Manager > Document Generator > Server SettingsContact us for more details.+2.- use our (TSolucio) service. TSolucio has one prepared which you can use by either having a support contract with us or by purchasing our [[https://​blog.corebos.org/​blog/​corebossubscription|coreBOS Subscription service]]. This is also a very clean way of getting PDFs and supporting the project. Besides getting the service you get access to a lot of our developments. Once you have purchased the service we will send you the URL and access information which you will have to set in <​code>​Settings > Module Manager > Document Generator > Server Settings</​code> ​Contact us for more details.
  
 +3.- use [[https://​github.com/​sfoxdev/​docker-unoconv|this docker container]],​ then define the **GenDoc_Convert_URL** global variable (something like http://​server_ip:​3000) and set the **PDF Links** which can be done in <​code>​Settings > Module Manager > Document Generator > Server Settings</​code>​ To launch the docker image you can follow the instructions on their site, but I use: <​code>​docker run -d -p 8099:3000 --env-file=docker.env --name unoconv sfoxdev/​unoconv</​code>​ which leaves the service listening on port 8099. The docker.env file is an empty file (probably not even needed)
  
-3.- use [[https://​github.com/​sfoxdev/​docker-unoconv|this docker container]]then define ​the **GenDoc_Convert_URL** global variable ​and set the PDF Links which can be done in Settings > Module Manager > Document Generator > Server Settings.+Obviouslyyou can also open the OpenOffice document ​and click on the "​PDF"​ button to convert the ODT to PDF.
  
 +Let's add some indications about each type.
  
-Obviously, you can also open the OpenOffice document and click on the "​PDF"​ button to convert the ODT to PDF.