Download file converted with Box View API
AnsweredI think I'm lacking understanding of the developer doc's nomenclature and am getting myself all confused.
Project: Upload a PDF. Convert it to HTML. Store converted file on client's server. Display converted content in browsers on request.
Here's what I've accomplished: Using Box View API, convert a PDF file and view it in the browser. But the converted file is on Box's server.
What I need to do: Download the PDF-to-HTML converted file to my client's server.
I obtained viewer.js from GitHub which states, in part, "viewer.js supports rendering text-based documents converted by the Box View API." Is the PDF-to-HTML converted file considered a "text-based document"?
Be that as it may, my next step is to get the converted file downloaded. Can you point me to the correct documentation, please?
Thank you!
Will
-
Hi Will!
I think that this bit of the documentation should do the trick for you:
https://box-view.readme.io/reference#get-documentsidcontentextensionYou can use the above call to download a file either in its original format, or in one of a few other "converted" formats - as specified in the link.
The converted file is considered a text-based document in this sense, and the non_svg version of the converted file would be an exception to that statement. This is described a little bit further in the documentation here: https://box-view.readme.io/reference#post-documents
Hopefully that does the trick for you!
Thanks!
-Tony
-
Hi,
In New Box View , how can we download a converted html files, like previous version of Box View?.
Download API downloads the file in the original format. -
Hey Sourabh,
Looks like this is what you are looking for: https://docs.box.com/reference#download-a-file!
Please let us know if you run into any issues.
-
Hi
Does the new Download file API allow us to download the file with PDF format that converted after uploaded to Box View? The old Box View API supports that (https://view.box.com/reference#get-documentsidcontentextension).
If not, how do I get converted PDF format of a file?
Thanks,
-
Hey, anybody here 😞
I've developed application using old box-view api allow user upload documents with some formats, then download the converted document in PDF format. And I'm going to migrating to new box-view api, but can't found the way to download converted document in PDF format.
Plz help me.
Thanks,
Please sign in to leave a comment.
Comments
6 comments