Note that there are some explanatory texts on larger screens.

plurals
  1. PO"name" web pdf for better default save filename in Acrobat?
    primarykey
    data
    text
    <p>My app generates PDFs for user consumption. The "Content-Disposition" http header is set as mentioned <a href="https://stackoverflow.com/questions/74019/specifying-filename-for-dynamic-pdf-in-aspnet">here</a>. This is set to "inline; filename=foo.pdf", which should be enough for Acrobat to give "foo.pdf" as the filename when saving the pdf.</p> <p>However, upon clicking the "Save" button in the browser-embedded Acrobat, the default name to save is not that filename but instead the URL with slashes changed to underscores. Huge and ugly. Is there a way to affect this default filename in Adobe?</p> <p>There IS a query string in the URLs, and this is non-negotiable. This may be significant, but adding a "&amp;foo=/title.pdf" to the end of the URL doesn't affect the default filename.</p> <p>Update 2: I've tried both</p> <pre><code>content-disposition inline; filename=foo.pdf Content-Type application/pdf; filename=foo.pdf </code></pre> <p>and</p> <pre><code>content-disposition inline; filename=foo.pdf Content-Type application/pdf; name=foo.pdf </code></pre> <p>(as verified through Firebug) Sadly, neither worked.</p> <p>A sample url is</p> <pre>/bar/sessions/958d8a22-0/views/1493881172/export?format=application/pdf&no-attachment=true</pre> <p>which translates to a default Acrobat save as filename of</p> <pre>http___localhost_bar_sessions_958d8a22-0_views_1493881172_export_format=application_pdf&no-attachment=true.pdf</pre> <p>Update 3: Julian Reschke brings actual insight and rigor to this case. Please upvote his answer. This seems to be broken in FF (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=433613" rel="nofollow noreferrer">https://bugzilla.mozilla.org/show_bug.cgi?id=433613</a>) and IE but work in Opera, Safari, and Chrome. <a href="http://greenbytes.de/tech/tc2231/#inlwithasciifilenamepdf" rel="nofollow noreferrer">http://greenbytes.de/tech/tc2231/#inlwithasciifilenamepdf</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload