<div dir="ltr">Hi Alan,<div><br></div><div>That button use PDF.js that parse the file from the server. I think you could add some token to the URL and use that token in the htaccess or something similar. </div><div><br></div><div>Another option is to replace the URL by the server path, not sure if the library allows this</div><div><br></div><div>Conrado</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 9, 2017 at 2:12 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 09/08/17 12:43, Conrado Maggi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't think the PDF viewer has access to vtiger backend.<br>
<br>
If I understand correctly, the PDF viewer is a browser feature that download the PDF and open it in a new tab<br>
<br>
Or are you referring to something else?<br>
</blockquote>
<br>
<br></span>
If you look at a list of Documents and click the "..." on the left, an option is called "File Preview".<br>
<br>
This opens a modal jQuery dialog but it is not a new tab or window as such... Presumably this is done via an Ajax call so it _is_ possible to determine who the vtiger user is and if they are able to view the file.<br>
<br>
I think ;-)<br>
<br>
<br>
Alan<br>
<br>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>