Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.
This repository was archived by the owner on May 10, 2024. It is now read-only.

Downloading + extracting PDFs #30

@jakecminihan

Description

@jakecminihan

Hi there!

I've been playing around using this and it's great, thank you for your work. I can successfully upload documents to my RM, but I can't figure out how to download ZipDocuments and extract them - I'd like to create a script that can automatically encrypt notebooks I make and return them to the RM Cloud. Here's the code I have working - no idea if this bit is even right or not!

from rmapy.api import Client, ZipDocument

rm = Client()

rm.renew_token()

Doc = [ i for i in rm.get_meta_items() if i.VissibleName == "TestDoc" ][0]
print(Doc)

Printing gives <rmapy.document.Document document ID>.

downloaded_file = rm.download(Doc)
print(downloaded_file)

Again, this yields <rmapy.document.ZipDocument document ID>. Looking at the code, I'm not sure what I should do next. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions