Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Community Packages
  3. πŸš€ Documize Conversion: community package for Documize's Word import / PDF export service

πŸš€ Documize Conversion: community package for Documize's Word import / PDF export service

Scheduled Pinned Locked Moved Community Packages
documizeconversiondocumentspdfword
3 Posts 2 Posters 103 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • vitetjV
    vitetjV
    vitetj
    App Dev
    wrote last edited by vitetj
    #1

    Documize Community delegates two things to a separate service: Word document import and PDF export. Out of the box it points at Documize's shared hosted endpoint, and upstream recommends self-hosting the documize/conversion container instead and changing the conversion endpoint URL to your own.
    So here it is as a Cloudron app. No UI, no login β€” it just answers the API calls your Documize instance makes.

    image-1790062294772.png
    Repo: https://github.com/vitetj/documizeconversion-cloudron
    Upstream version: 3.4.0

    Install

    App Store β†’ Install from URL:
    https://raw.githubusercontent.com/vitetj/documizeconversion-cloudron/main/CloudronVersions.json

    or:
    cloudron install --versions-url https://raw.githubusercontent.com/vitetj/documizeconversion-cloudron/main/CloudronVersions.json --location conversion --domain example.com

    Then, in Documize as an administrator, set the conversion endpoint to the app's origin. That's the whole setup.
    Check it is alive with curl https://<app-domain>/api/version β†’ 3.4.0.

    Packaging notes

    Upstream publishes no source release, only the Docker image, so the Dockerfile lifts the artifacts out of documize/conversion:3.4.0 and re-assembles them on cloudron/base:5.1.0: the Go API binary, the Aspose/PlantUML jars (run with OpenJDK 11 from the Ubuntu archive), puppet.js + node_modules with the Chromium puppeteer bundles, and the upstream TrueType fonts — without those, Word→PDF layout drifts.
    Two upstream quirks shaped the start script, in case they help anyone packaging something similar:

    • the API binary resolves java/ and puppet.js relative to its working directory and writes a log there, so it can't run from the read-only /app/code β€” it starts from a writable /run/documize that symlinks the code;
    • its scratch directory follows TMPDIR, pointed at /app/data/tmp, because a large .docx would blow through the small /tmp tmpfs.
      Other details: httpPort 5010, health check /api/version, localstorage addon, runs as cloudron (never root), memoryLimit 2 GB because Word conversion spawns a JVM with -Xmx1000m on top of Chromium. The image is ~3.6 GB, mostly fonts and the bundled Chromium.

    Heads up: the API is unauthenticated

    That's how the upstream service works β€” Documize calls it server-to-server with no credentials, so the package can't put SSO or proxyAuth in front of it without breaking it. Anyone who knows the domain can submit a document for conversion. If the endpoint doesn't need to be public, restrict it at the firewall to your Documize server's IP.

    Tested

    Health check, a real .docx converted through POST /api/1/word (the Aspose/Java path), PDF rendering with the bundled Chromium as the cloudron user, and a restart with existing app data. Feedback and issues welcome on the repo.

    1 Reply Last reply
    4
    • J
      J
      joseph
      Staff
      wrote last edited by
      #2

      @vitetj you can publish your package at https://ca.cloudron.io/ for others to find it more easily

      vitetjV 1 Reply Last reply
      1
      • J joseph

        @vitetj you can publish your package at https://ca.cloudron.io/ for others to find it more easily

        vitetjV
        vitetjV
        vitetj
        App Dev
        wrote last edited by
        #3

        @joseph here we go ! https://ca.cloudron.io/app/documize-conversion

        1 Reply Last reply
        2

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better πŸ’—

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search