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
  • 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

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. PDFDraw: PDF annotations for Nextcloud support

PDFDraw: PDF annotations for Nextcloud support

Scheduled Pinned Locked Moved App Wishlist
11 Posts 5 Posters 3.3k Views 5 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.
  • marcusquinnM Online
    marcusquinnM Online
    marcusquinn
    wrote on last edited by girish
    #1

    Any chance of adding "PDF annotations for Nextcloud" support pretty please?

    "Annotate any PDF document collaboratively inside Nextcloud. Select "Annotate" from the context menu of PDF files to open the annotation mode.

    Requires a separate nodejs server running on the backend to distribute the signaling messages between clients. The server is available on GitHub."

    a1158bf0-95a1-473d-a62c-3b4b841069df-image.png

    Web Design https://www.evergreen.je
    Development https://brandlight.org
    Life https://marcusquinn.com

    1 Reply Last reply
    3
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      This looks very similar to the office integration in Nextcloud (in that case using wopi) with this using some pdfdraw API.

      Not sure if it makes sense to bundle this with the Nextcloud app package. It already kinda isn't the most stable one.

      Do you know if that Nextcloud plugin supports external server? In that case you might be able to run that nodejs app as a separate Cloudron app?

      marcusquinnM 1 Reply Last reply
      1
      • nebulonN nebulon

        This looks very similar to the office integration in Nextcloud (in that case using wopi) with this using some pdfdraw API.

        Not sure if it makes sense to bundle this with the Nextcloud app package. It already kinda isn't the most stable one.

        Do you know if that Nextcloud plugin supports external server? In that case you might be able to run that nodejs app as a separate Cloudron app?

        marcusquinnM Online
        marcusquinnM Online
        marcusquinn
        wrote on last edited by
        #3

        @nebulon Not sure but I guess so as the settings ask for a full path:

        71d75ae9-ec83-4557-89cd-8b88c409a1b6-image.png

        Web Design https://www.evergreen.je
        Development https://brandlight.org
        Life https://marcusquinn.com

        girishG 1 Reply Last reply
        2
        • marcusquinnM marcusquinn

          @nebulon Not sure but I guess so as the settings ask for a full path:

          71d75ae9-ec83-4557-89cd-8b88c409a1b6-image.png

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @marcusquinn Maybe you can make this into an app request?

          marcusquinnM 1 Reply Last reply
          1
          • girishG girish

            @marcusquinn Maybe you can make this into an app request?

            marcusquinnM Online
            marcusquinnM Online
            marcusquinn
            wrote on last edited by
            #5

            @girish Sure - can you move the post, save me re-writing?

            Web Design https://www.evergreen.je
            Development https://brandlight.org
            Life https://marcusquinn.com

            1 Reply Last reply
            1
            • marcusquinnM Online
              marcusquinnM Online
              marcusquinn
              wrote on last edited by
              #6

              Just found this: https://gitlab.com/nextcloud-other/nextcloud-annotate

              "Based initially on https://github.com/strukturag/pdfdraw which was found to
              be fundamentally broken. In particular, a completely unnecessary dependency
              on a backend server where no dependency is needed in order to accomplish
              the job needed."

              Testing it out now...

              Web Design https://www.evergreen.je
              Development https://brandlight.org
              Life https://marcusquinn.com

              vladimir.dV marcusquinnM 2 Replies Last reply
              1
              • marcusquinnM marcusquinn

                Just found this: https://gitlab.com/nextcloud-other/nextcloud-annotate

                "Based initially on https://github.com/strukturag/pdfdraw which was found to
                be fundamentally broken. In particular, a completely unnecessary dependency
                on a backend server where no dependency is needed in order to accomplish
                the job needed."

                Testing it out now...

                vladimir.dV Offline
                vladimir.dV Offline
                vladimir.d
                wrote on last edited by
                #7

                @girish Nextcloud-annotate needs the following dependencies installed in Nextcloud app.

                DEPENDENCIES:
                svg2pdf
                pdftk
                gs
                
                1 Reply Last reply
                1
                • marcusquinnM marcusquinn

                  Just found this: https://gitlab.com/nextcloud-other/nextcloud-annotate

                  "Based initially on https://github.com/strukturag/pdfdraw which was found to
                  be fundamentally broken. In particular, a completely unnecessary dependency
                  on a backend server where no dependency is needed in order to accomplish
                  the job needed."

                  Testing it out now...

                  marcusquinnM Online
                  marcusquinnM Online
                  marcusquinn
                  wrote on last edited by marcusquinn
                  #8

                  @marcusquinn This partially works - and is a very helpful addition!

                  @nebulon Can you look at the dependancies being added to the Cloudron packaged version please? 🙏

                  DEPENDENCIES:
                  svg2pdf
                  pdftk
                  gs

                  Ghostscript (gs) is needed for stripping the signature from signed/uneditable
                  PDF files, and for page manipulation.

                  Be careful with svg2pdf, there is a real version, part of svglib (pip install svglib),
                  and there is a fake one that does not work.

                  Based initially on https://github.com/strukturag/pdfdraw which was found to
                  be fundamentally broken. In particular, a completely unnecessary dependency
                  on a backend server where no dependency is needed in order to accomplish
                  the job needed.

                  Installation:

                  Go into nextcloud/apps/ and run;

                  sudo -u apache git clone https://gitlab.com/nextcloud-other/nextcloud-annotate pdfannotate
                  (change apache to the appropriate user account if it differs on your distro)

                  Go into your nextcloud instance (web browser), User icon --> Apps
                  Scroll to the bottom of "Your apps" and find "PDF Annotate" and press the
                  enable button.

                  Now go back to files and hit the "three dots" menu button beside a PDF and
                  select "Annotate".

                  Choose a color and draw mode, draw your annotations, and hit the button
                  beside the color picker to save the changes back to Nextcloud. Older versions of
                  your file are available through "versions".

                  I think it is Ghostscript we are missing that would enable the text annotating.

                  Drawing and shapes seems to work though.

                  Saving is also giving a permissions error:

                  68137f83-3ab7-4985-8b29-a2c6bd595bc9-image.png

                  Web Design https://www.evergreen.je
                  Development https://brandlight.org
                  Life https://marcusquinn.com

                  girishG 1 Reply Last reply
                  2
                  • marcusquinnM marcusquinn

                    @marcusquinn This partially works - and is a very helpful addition!

                    @nebulon Can you look at the dependancies being added to the Cloudron packaged version please? 🙏

                    DEPENDENCIES:
                    svg2pdf
                    pdftk
                    gs

                    Ghostscript (gs) is needed for stripping the signature from signed/uneditable
                    PDF files, and for page manipulation.

                    Be careful with svg2pdf, there is a real version, part of svglib (pip install svglib),
                    and there is a fake one that does not work.

                    Based initially on https://github.com/strukturag/pdfdraw which was found to
                    be fundamentally broken. In particular, a completely unnecessary dependency
                    on a backend server where no dependency is needed in order to accomplish
                    the job needed.

                    Installation:

                    Go into nextcloud/apps/ and run;

                    sudo -u apache git clone https://gitlab.com/nextcloud-other/nextcloud-annotate pdfannotate
                    (change apache to the appropriate user account if it differs on your distro)

                    Go into your nextcloud instance (web browser), User icon --> Apps
                    Scroll to the bottom of "Your apps" and find "PDF Annotate" and press the
                    enable button.

                    Now go back to files and hit the "three dots" menu button beside a PDF and
                    select "Annotate".

                    Choose a color and draw mode, draw your annotations, and hit the button
                    beside the color picker to save the changes back to Nextcloud. Older versions of
                    your file are available through "versions".

                    I think it is Ghostscript we are missing that would enable the text annotating.

                    Drawing and shapes seems to work though.

                    Saving is also giving a permissions error:

                    68137f83-3ab7-4985-8b29-a2c6bd595bc9-image.png

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #9

                    @marcusquinn said in PDFDraw: PDF annotations for Nextcloud support:

                    svg2pdf
                    pdftk
                    gs

                    ghostscript should already be there. pdftk is probably pdftk-java. I couldn't find svg2pdf in ubuntu repos.

                    jdaviescoatesJ marcusquinnM 2 Replies Last reply
                    0
                    • girishG girish

                      @marcusquinn said in PDFDraw: PDF annotations for Nextcloud support:

                      svg2pdf
                      pdftk
                      gs

                      ghostscript should already be there. pdftk is probably pdftk-java. I couldn't find svg2pdf in ubuntu repos.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #10

                      @girish said in PDFDraw: PDF annotations for Nextcloud support:

                      svg2pdf

                      I'm guessing it's this

                      https://github.com/typst/svg2pdf (which I found via https://docs.rs/crate/svg2pdf/latest )

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      • girishG girish

                        @marcusquinn said in PDFDraw: PDF annotations for Nextcloud support:

                        svg2pdf
                        pdftk
                        gs

                        ghostscript should already be there. pdftk is probably pdftk-java. I couldn't find svg2pdf in ubuntu repos.

                        marcusquinnM Online
                        marcusquinnM Online
                        marcusquinn
                        wrote on last edited by
                        #11

                        @girish This quote from above I believe is the answer to that:

                        Be careful with svg2pdf, there is a real version, part of svglib (pip install svglib), and there is a fake one that does not work.

                        Web Design https://www.evergreen.je
                        Development https://brandlight.org
                        Life https://marcusquinn.com

                        1 Reply Last reply
                        2
                        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