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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

PDFDraw: PDF annotations for Nextcloud support

Scheduled Pinned Locked Moved App Wishlist
11 Posts 5 Posters 1.4k Views
    • 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 Offline
    marcusquinnM Offline
    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

    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
    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
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    replied to nebulon 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

    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

    girishG 1 Reply Last reply
    2
  • girishG Offline
    girishG Offline
    girish Staff
    replied to marcusquinn on last edited by
    #4

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

    marcusquinnM 1 Reply Last reply
    1
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    replied to girish on last edited by
    #5

    @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
    1
  • marcusquinnM Offline
    marcusquinnM Offline
    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...

    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.dV marcusquinnM 2 Replies Last reply
    1
  • vladimir.dV Offline
    vladimir.dV Offline
    vladimir.d
    replied to marcusquinn 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 Offline
    marcusquinnM Offline
    marcusquinn
    replied to marcusquinn 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

    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

    girishG 1 Reply Last reply
    2
  • girishG Offline
    girishG Offline
    girish Staff
    replied to marcusquinn 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
  • jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    replied to girish 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
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    replied to girish 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.

    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
    2

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.