You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
skrul
9 months agoNew member | Level 2
PDF processing bug
Here is a possible issue I've noticed while experimenting with the dropbox API. The repro is something like:
1. Find a PDF in your dropbox via the web UI
2. Ue the "Edit PDF" feature, make a change to the document (e.g. delete a page, rotate, etc), then choose Save -> Replace Original
3. Download the edited file using the dropbox API
The file that you download from the dropbox API is corrupted. For example, I have a file with ID "id:VNGR990xOeAAAAAAAAACSw" that originally had two pages and I deleted the first page. When viewing with MacOS Preview app, the API downloaded version still has two pages but the first page has corrupted text; the itext library I'm using to process it refuses to open it ("Error at file pointer 82,080").
However, if I download the file through the web UI the file is fine and looks right.
I've found in the past if I use the "Edit PDF" feature again and save the file again, it is sometimes fixed when I use the download API.
cheers,
-steve
- iNeilDropbox Engineer
Hello skrul,
Based on the information that you have provided, I was unable to replicate this issue. May I ask if you are still encountering the issue while editing and downloading new pdfs? If possible, could you attempt to download the affected PDF to cross-check if the issue still occurs?
If you are still encountering the issue, please provide the response headers when you are executing the 2/files/download endpoint. Also, please let me know if the issue is occurring for all PDFs or only particular ones.- skrulNew member | Level 2
Thanks iNeil, I'll try to gather more information if it happens again.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 3 hours agoIf 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 or Facebook.
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!