<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Link a file pdf]]></title><description><![CDATA[<p dir="auto">Ciao a tutti,</p>
<p dir="auto">ho un problema, ho sempre inserito i link a file pdf come se fossero normali pagine.. sempre nello stesso modo...<br />
Come mai su un sito mi chiede di scaricare il file e su un altro mi apre il file nel browser?:?</p>
<p dir="auto">Ho da fare una modifica per un cliente ma non capisco il motivo per cui fa così <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--blush" style="height:1.4em;width:auto;vertical-align:middle" title=":blush:" alt="😊" /></p>
<p dir="auto">I due siti di esempio sono questi:</p>
<p dir="auto"><a href="http://tringalipro.it/prodotti-tipici-toscana-schede-tecniche.asp" rel="nofollow ugc">tringalipro.it/prodotti-tipici-toscana-schede-tecniche.asp</a><br />
<a href="http://renzomarinai.it/chianti-classico-riserva.asp" rel="nofollow ugc">renzomarinai.it/chianti-classico-riserva.asp</a></p>
<p dir="auto">Grazie 1000 <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/1881713c-5c09-4986-bf15-fa308ef84b2e-smilegt.gif?v=2190ae3dadd" class="not-responsive emoji emoji-customizations emoji--smile5" style="height:1.4em;width:auto;vertical-align:middle" title=":smile5:" alt="" /></p>
]]></description><link>https://dev.connect.gt/topic/148047/link-a-file-pdf</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 07:56:21 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/148047.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Mar 2011 15:44:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Link a file pdf on Wed, 30 Mar 2011 11:02:14 GMT]]></title><description><![CDATA[<p dir="auto">Grazie 1000 adesso faccio qualche prova e vi faccio sapere! <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/1881713c-5c09-4986-bf15-fa308ef84b2e-smilegt.gif?v=2190ae3dadd" class="not-responsive emoji emoji-customizations emoji--smile5" style="height:1.4em;width:auto;vertical-align:middle" title=":smile5:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/983936</link><guid isPermaLink="true">https://dev.connect.gt/post/983936</guid><dc:creator><![CDATA[patrizia.lorenzini]]></dc:creator><pubDate>Wed, 30 Mar 2011 11:02:14 GMT</pubDate></item><item><title><![CDATA[Reply to Link a file pdf on Wed, 23 Mar 2011 12:32:33 GMT]]></title><description><![CDATA[<p dir="auto">Il problema è nell'header http di risposta.</p>
<p dir="auto">Il primo, quello che non fa partire il download, risponde per i pdf con (prendo file a caso)</p>
<blockquote>
<p dir="auto">HTTP/1.1 200 OK =&gt;<br />
Content-Length =&gt; 244688<br />
Content-Type =&gt; application/pdf<br />
Last-Modified =&gt; Mon, 20 Dec 2010 14:31:52 GMT<br />
Accept-Ranges =&gt; bytes<br />
ETag =&gt; "7c17dfa452a0cb1:116db"<br />
Server =&gt; Microsoft-IIS/6.0<br />
X-Powered-By =&gt; PleskWin<br />
Date =&gt; Wed, 23 Mar 2011 12:22:30 GMT<br />
Connection =&gt; close</p>
</blockquote>
<p dir="auto">il secondo con</p>
<blockquote>
<p dir="auto">HTTP/1.1 200 OK =&gt;<br />
Date =&gt; Wed, 23 Mar 2011 12:23:16 GMT<br />
Server =&gt; Apache<br />
Last-Modified =&gt; Tue, 01 Mar 2011 11:23:39 GMT<br />
ETag =&gt; "52c020-45329-49d6a072804c0"<br />
Accept-Ranges =&gt; bytes<br />
Content-Length =&gt; 283433<br />
Content-disposition =&gt; attachment;<br />
Connection =&gt; close<br />
Content-Type =&gt; application/pdf</p>
</blockquote>
<p dir="auto">In rosso la parte interessante.</p>
<p dir="auto">Puoi procedere per due vie, una è la configurazione del server IIS, l'altra è quella di forzare il download con asp. Siccome non sono esperto di ambiente server windows ti consiglio di cercare informazioni sul Content-disposition in tale contesto.</p>
]]></description><link>https://dev.connect.gt/post/983934</link><guid isPermaLink="true">https://dev.connect.gt/post/983934</guid><dc:creator><![CDATA[claudioweb]]></dc:creator><pubDate>Wed, 23 Mar 2011 12:32:33 GMT</pubDate></item><item><title><![CDATA[Reply to Link a file pdf on Tue, 22 Mar 2011 18:07:44 GMT]]></title><description><![CDATA[<p dir="auto">Molto probabilmente dipende dal tipo di PDF e da come è stato salvato.</p>
<p dir="auto">Esistono due tipi di PDF: non-lineare e lineare - solo ques'ultimo viene mostrato nella finestra del browser perchè (per l'appunto) i dati vengono scaricati in maniera "lineare" e dunque il browser può iniziare a mostrare le prime pagine mentre scarica il documento.</p>
<p dir="auto">Da Wikipedia (h t t p ://en.wikipedia.org/wiki/Portable_Document_Format):</p>
<blockquote>
<p dir="auto">There are two layouts to the PDF files?non-linear (not "optimized") and linear ("optimized"). Non-linear PDF files consume less disk space than their linear counterparts, though they are slower to access because portions of the data required to assemble pages of the document are scattered throughout the PDF file. Linear PDF files (also called "optimized" or "web optimized" PDF files) are constructed in a manner that enables them to be read in a Web browser plugin without waiting for the entire file to download, since they are written to disk in a linear (as in page order) fashion.[11] PDF files may be optimized using Adobe Acrobat software or QPDF.</p>
</blockquote>
]]></description><link>https://dev.connect.gt/post/983938</link><guid isPermaLink="true">https://dev.connect.gt/post/983938</guid><dc:creator><![CDATA[html5today]]></dc:creator><pubDate>Tue, 22 Mar 2011 18:07:44 GMT</pubDate></item><item><title><![CDATA[Reply to Link a file pdf on Mon, 21 Mar 2011 19:05:29 GMT]]></title><description><![CDATA[<p dir="auto">Potrebbe essere che in uno dei due siti è stato modificato un eventuale header che forza il download di una determinata estensione (pdf in questo caso).</p>
<p dir="auto">Questo header mi sembra sia un file/codice che forza il download appunto per alcune estensioni.</p>
]]></description><link>https://dev.connect.gt/post/983937</link><guid isPermaLink="true">https://dev.connect.gt/post/983937</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Mon, 21 Mar 2011 19:05:29 GMT</pubDate></item></channel></rss>