Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

get pdf with annotations #30

Closed
aryx opened this issue Oct 3, 2018 · 11 comments
Closed

get pdf with annotations #30

aryx opened this issue Oct 3, 2018 · 11 comments
Labels
big enhancement New big feature or big request

Comments

@aryx
Copy link

aryx commented Oct 3, 2018

When I 'get' a pdf I've annotated I get instead a zip file with 4 files in it (a .content, .lines, .pdf, and .pagedata). How do I get instead a pdf I can read with the line annotations in.

@dio4ev
Copy link

dio4ev commented Oct 3, 2018

Try this tool:
https://github.com/jmptable/rm-dl-annotated

@peerdavid
Copy link
Contributor

I created a fork of rmapi that supports rmapi geta "Quick sheets" which reads notebooks or pdf files with annotations. You can also load notebooks as pdf or as svg files. It works with Version 1.6 only because the file format of the .lines file changed in this version. You can find this rmapi implementation here: https://github.com/peerdavid/rmapi

-> Its still a beta version (i.e. no templates are supported, pdf is not everytime correct etc.) but possible at a later point we can merge it back...

@juruen
Copy link
Owner

juruen commented Dec 4, 2018

@peerdavid would you like to prepare a PR to integrate your changes upstream?

@peerdavid
Copy link
Contributor

@juruen I opened the PR #34. Please check if you really want those additional dependencies (listed in README.md ). I.e. I create a SVG file for the annotations using python3 and afterwards a bash script is called that merges it with (1) the background or (2) with the pdf file using other tools that must be installed locally. For that reason I also decided to create a fork.

@lobre
Copy link
Collaborator

lobre commented Feb 21, 2019

Can we consider this issue as resolved?

@lobre
Copy link
Collaborator

lobre commented Feb 22, 2019

Resolved with #38.

@lobre lobre closed this as completed Feb 22, 2019
@lobre
Copy link
Collaborator

lobre commented Feb 22, 2019

As it is only a first version, we can leave this issue open I think because so far the annotations are downloaded separately from the PDF.

@torwag
Copy link

torwag commented Jun 17, 2020

Hi I came across this using rmapi today.
First, I really like rmapi, it is getting a work-horse for me, being on Linux and having no official app.
I believe that most people expect that the downloaded version of a PDF contains the annotation and are a bit puzzled to see a zip file with plenty of unknown files for them.
Secondly, I exported the documents (forms) which I had signed on my rM, via rmapi and everything looked ok using zathura or evince on my host machine. I send the PDFs to a co-worker, and she said, the signature is missing. A bit surprised I double-checked, on my linux machine, I had PDF with signature, she used Adobe Acrobat on a Windows machine and could not see the signature. I went to convert the PDFs into PNG and back into PDF, as this usually makes sure that all and everything is purely a static image and nothing can get lost. However, using imagemagick convert which utilities ghostscript to render a pdf into a png, the signature was missing.
I ended up open the PDF in libreoffice (draw) and save it again as PDF, which seems to work.

Just as a feedback that the embedding of annotation seems not to be 100% compatible with all pdf readers.

@ddvk
Copy link
Collaborator

ddvk commented Jun 17, 2020

@torwag please provide a sample pdf

@torwag
Copy link

torwag commented Jun 23, 2020

further description was done in #114 solved #115 merged upstream and distributed with release 0.0.12

@ddvk
Copy link
Collaborator

ddvk commented Sep 22, 2020

we can close this one for now, the export is not optimal, but enough for most people i think

@ddvk ddvk closed this as completed Sep 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
big enhancement New big feature or big request
Projects
None yet
Development

No branches or pull requests

7 participants