We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
whizpool t.
10 years agoNew member | Level 1
how to get all files in pdf format can dropbox convert before i download it through the API
I have doc file on my dropbox when i access these files from my app i want them to be in pdf techincally i want them to be downloaded in pdf
Greg-DB
Dropbox Community Moderator
10 years agoUnfortunately, I don't have a sample implementation of this endpoint in Objective C to share.
Note that the iOS SDK itself uses OAuth 1, so the stored access token from credentialStoreForUserId can't be directly used as an OAuth 2 access token, which is why you're getting that "Invalid OAuth2 token" error.
If you do want to use that stored OAuth 1 access token, there's a blog post that shows how to implement OAuth 1 here:
https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/
(The iOS Core SDK is open source though, so you could alternatively add the source directly and modify the code to add /previews.)
Another option entirely though, which I recommend if your app is still in development mode, is to switch to using the SwiftyDropbox library for API v2, if you can (since it's for Swift):
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!