<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a difference between PDF preview (endpoint : files/get_preview) and PDF files by /downl in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-a-difference-between-PDF-preview-endpoint-files-get/m-p/255385#M14778</link>
    <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt;&amp;nbsp;endpoint just returns the original file data. If the file is a PDF file, it will return the original PDF data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_self"&gt;/2/files/get_preview&lt;/A&gt;&amp;nbsp;endpoint generates a preview of the requested file, and does not return the original data. Per the documentation, it will generate either a preview in PDF or HTML format, depending on the type of the original file. Note that this endpoint does not support retrieving previews of PDF files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is already a PDF, you can just use t&lt;SPAN&gt;he&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;endpoint. If you do call the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_self"&gt;/2/files/get_preview&lt;/A&gt;&amp;nbsp;endpoint&amp;nbsp;for a .pdf file, it will fail with a 'unsupported_extension' error, which is likely the "empty" response you're referring to.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2017 16:33:43 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-12-05T16:33:43Z</dc:date>
    <item>
      <title>Is there a difference between PDF preview (endpoint : files/get_preview) and PDF files by /download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-a-difference-between-PDF-preview-endpoint-files-get/m-p/255343#M14773</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to display a doc file through /get_preview end point.&amp;nbsp;&lt;BR /&gt;My understanding is that it will generated a pdf preview (I guess that means a pdf file ? )&lt;BR /&gt;&lt;BR /&gt;The pdf&amp;nbsp;preview I am getting is generating an empty file.&amp;nbsp;&lt;BR /&gt;However, I test the same code generating the file&amp;nbsp; with the response from /download endpoint downloading a pdf file. the generated file is not empty.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So, can I treat pdf_preview from /get_preview and pdf data from /download in the same way ?&amp;nbsp;&lt;BR /&gt;Or am I missing something here?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-a-difference-between-PDF-preview-endpoint-files-get/m-p/255343#M14773</guid>
      <dc:creator>Mhd</dc:creator>
      <dc:date>2019-05-29T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a difference between PDF preview (endpoint : files/get_preview) and PDF files by /downl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-a-difference-between-PDF-preview-endpoint-files-get/m-p/255385#M14778</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt;&amp;nbsp;endpoint just returns the original file data. If the file is a PDF file, it will return the original PDF data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_self"&gt;/2/files/get_preview&lt;/A&gt;&amp;nbsp;endpoint generates a preview of the requested file, and does not return the original data. Per the documentation, it will generate either a preview in PDF or HTML format, depending on the type of the original file. Note that this endpoint does not support retrieving previews of PDF files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is already a PDF, you can just use t&lt;SPAN&gt;he&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;endpoint. If you do call the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_self"&gt;/2/files/get_preview&lt;/A&gt;&amp;nbsp;endpoint&amp;nbsp;for a .pdf file, it will fail with a 'unsupported_extension' error, which is likely the "empty" response you're referring to.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 16:33:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-there-a-difference-between-PDF-preview-endpoint-files-get/m-p/255385#M14778</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-05T16:33:43Z</dc:date>
    </item>
  </channel>
</rss>

