<?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[Filename definition in phantom-pdf]]></title><description><![CDATA[<p>Hi,<br />
I am using the following option within template to provide the filename for the pdf but the result is a random string instead of the &quot;Terminzettel.pdf&quot;:</p>
<pre><code>options: {
  &quot;Content-Disposition&quot;: &quot;attachment; filename=Terminzettel.pdf&quot;
}
</code></pre>
<p>Appreciate your help!<br />
Jens</p>
]]></description><link>https://forum.jsreport.net/topic/603/filename-definition-in-phantom-pdf</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 13:00:58 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/603.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jul 2018 17:45:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Filename definition in phantom-pdf on Invalid Date]]></title><description><![CDATA[<p>Hi,<br />
I am using the following option within template to provide the filename for the pdf but the result is a random string instead of the &quot;Terminzettel.pdf&quot;:</p>
<pre><code>options: {
  &quot;Content-Disposition&quot;: &quot;attachment; filename=Terminzettel.pdf&quot;
}
</code></pre>
<p>Appreciate your help!<br />
Jens</p>
]]></description><link>https://forum.jsreport.net/post/2998</link><guid isPermaLink="true">https://forum.jsreport.net/post/2998</guid><dc:creator><![CDATA[jensMG]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Filename definition in phantom-pdf on Invalid Date]]></title><description><![CDATA[<p>It should not be inside template. Options is another prop. See the screen</p>
<p><img src="/uploads/files/1530554191655-upload-db2b767c-db5c-4fbb-92ec-03db35c3ad4c-resized.png" alt="0_1530554192031_upload-db2b767c-db5c-4fbb-92ec-03db35c3ad4c" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/3000</link><guid isPermaLink="true">https://forum.jsreport.net/post/3000</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Filename definition in phantom-pdf on Tue, 03 Jul 2018 10:07:29 GMT]]></title><description><![CDATA[<p>Sorry. Not true what I told before.<br />
My options already where outside the template.</p>
<p>This is what I currently have but the PDF title is still a random value!?</p>
<pre><code>options: {
  &quot;Content-Disposition&quot;: &quot;attachment; filename=Terminzettel.pdf&quot;
}
</code></pre>
<p>ctx.response.body = result.content;<br />
ctx.set('Content-Type', 'application/pdf');<br />
ctx.set('Content-Disposition', 'attachment; filename=Terminzettel.pdf');</p>
]]></description><link>https://forum.jsreport.net/post/3005</link><guid isPermaLink="true">https://forum.jsreport.net/post/3005</guid><dc:creator><![CDATA[jensMG]]></dc:creator><pubDate>Tue, 03 Jul 2018 10:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to Filename definition in phantom-pdf on Invalid Date]]></title><description><![CDATA[<p>hmm have you tried to use <code>reportName</code> option instead? it is described <a href="https://jsreport.net/learn/api#content-disposition-and-report-name" rel="nofollow">here</a></p>
<pre><code class="language-JS">{
      &quot;template&quot;: { ... },
      &quot;options&quot;: { &quot;reportName&quot;: &quot;Terminzettel&quot; }
   }
</code></pre>
<p>if that does not work, it will be helpful that you can upload some repository (your code is in node.js, right?) with some simple code that shows that the filename downloaded contains random value. we will check it and tell you why it happens maybe there is some mistake in your code.</p>
]]></description><link>https://forum.jsreport.net/post/3006</link><guid isPermaLink="true">https://forum.jsreport.net/post/3006</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Filename definition in phantom-pdf on Invalid Date]]></title><description><![CDATA[<p>tried the reportName and it also does not have any effect.<br />
filename is still like: 3a4f2114-63e6-4eba-9329-df6d55011b9b.pdf</p>
<p>happy to provide source code. how should i transfer it to you?</p>
]]></description><link>https://forum.jsreport.net/post/3008</link><guid isPermaLink="true">https://forum.jsreport.net/post/3008</guid><dc:creator><![CDATA[jensMG]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Filename definition in phantom-pdf on Invalid Date]]></title><description><![CDATA[<p>just upload it to <a href="https://github.com/" rel="nofollow">github</a> in a new repository and share the link here, so i will be able to download it</p>
]]></description><link>https://forum.jsreport.net/post/3009</link><guid isPermaLink="true">https://forum.jsreport.net/post/3009</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>