Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Newbie8
4 years agoNew member | Level 2
Re: Upload PDF files/proper encoding
I need help on this too
Newbie8
4 years agoNew member | Level 2
I am using the Dropbox API V2 SDK for Javascript:
https://github.com/dropbox/dropbox-sdk-js/tree/4f78b01326afdba5c4198fd092cd74e3e79095f8
And I am using the example code they provided which is this one:
https://github.com/dropbox/dropbox-sdk-js/blob/4f78b01326afdba5c4198fd092cd74e3e79095f8/examples/typescript/upload/upload.ts
It works for normal pdfs and other files however it doesn't work with pdfs with fields for user to fill in
Example pdf file:
Original File: http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf
Resulting File:
Greg-DB
Dropbox Community Moderator
4 years agoCan you elaborate on what you mean when you say "it doesn't work"? Are you referring to elements not being rendered properly as seen in that screenshot? If so, what application are you using to render that PDF? The process of uploading files to Dropbox is separate from how you then view those files.
For reference, the Dropbox API will accept and commit whatever bytes you upload, e.g., using the filesUpload method, regardless of file type. It doesn't modify or re-encode the bytes you supply, so make sure you're supplying the exact unmodified bytes that you want uploaded to Dropbox. Exactly how any particular PDF data is rendered depends on the application you use to render it.
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!