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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    PDFDraw: PDF annotations for Nextcloud support

    App Wishlist
    5
    11
    1063
    Loading More Posts
    • 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.
    • marcusquinn
      marcusquinn last edited by girish

      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

      We're not here for a long time - but we are here for a good time :)
      Jersey/UK
      Work & Ecommerce Advice: https://brandlight.org
      Personal & Software Tips: https://marcusquinn.com

      1 Reply Last reply Reply Quote 3
      • nebulon
        nebulon Staff last edited by

        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?

        marcusquinn 1 Reply Last reply Reply Quote 1
        • marcusquinn
          marcusquinn @nebulon last edited by

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

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

          We're not here for a long time - but we are here for a good time :)
          Jersey/UK
          Work & Ecommerce Advice: https://brandlight.org
          Personal & Software Tips: https://marcusquinn.com

          girish 1 Reply Last reply Reply Quote 2
          • girish
            girish Staff @marcusquinn last edited by

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

            marcusquinn 1 Reply Last reply Reply Quote 1
            • marcusquinn
              marcusquinn @girish last edited by

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

              We're not here for a long time - but we are here for a good time :)
              Jersey/UK
              Work & Ecommerce Advice: https://brandlight.org
              Personal & Software Tips: https://marcusquinn.com

              1 Reply Last reply Reply Quote 1
              • marcusquinn
                marcusquinn last edited by

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

                We're not here for a long time - but we are here for a good time :)
                Jersey/UK
                Work & Ecommerce Advice: https://brandlight.org
                Personal & Software Tips: https://marcusquinn.com

                vladimir.d marcusquinn 2 Replies Last reply Reply Quote 1
                • vladimir.d
                  vladimir.d @marcusquinn last edited by

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

                  DEPENDENCIES:
                  svg2pdf
                  pdftk
                  gs
                  
                  1 Reply Last reply Reply Quote 1
                  • marcusquinn
                    marcusquinn @marcusquinn last edited by 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

                    We're not here for a long time - but we are here for a good time :)
                    Jersey/UK
                    Work & Ecommerce Advice: https://brandlight.org
                    Personal & Software Tips: https://marcusquinn.com

                    girish 1 Reply Last reply Reply Quote 2
                    • girish
                      girish Staff @marcusquinn last edited by

                      @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.

                      jdaviescoates marcusquinn 2 Replies Last reply Reply Quote 0
                      • jdaviescoates
                        jdaviescoates @girish last edited by

                        @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 Reply Quote 0
                        • marcusquinn
                          marcusquinn @girish last edited by

                          @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.

                          We're not here for a long time - but we are here for a good time :)
                          Jersey/UK
                          Work & Ecommerce Advice: https://brandlight.org
                          Personal & Software Tips: https://marcusquinn.com

                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post
                          Powered by NodeBB