cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Upload PDF files/proper encoding

Re: Upload PDF files/proper encoding

Newbie8
New member | Level 2

I need help on this too

3 Replies 3

Greg-DB
Dropbox Staff

@Newbie8 I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:

  • the name and version number of the platform and SDK/library you are using, if any
  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
  • the full text of any error or unexpected output

Newbie8
New 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/typ... 
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: 

Newbie8_0-1666624607150.png

 

Greg-DB
Dropbox Staff

Can 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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Newbie8 New member | Level 2
What do Dropbox user levels mean?