I have multiple PDF templates I created that work fine with out of the box and custom modules when I click on preview or print (from action menu) in the detail view of these modules.
I want to be able to open these PDFs in a browser tab instead of downloading.
I did try editing the download.php file as suggested in post ( # 29297- Open attachments in a new browser window) but this doesn’t seem to have any effect. My PDFs still download.
What else could I do to have them open in the browser?
Thank you.
Versions:
SuiteCRM 7.10.7
PHP 7.2
SQL Server 2014
Windows Server 2012 R2
Chrome 71.0.3578.98
Thank you for your response. I have already checked my Chrome settings for PDF content and the option you reference is not available. There is an option for : Download PDF files instead of automatically opening them in Chrome and this is disabled. Yet when I go to any module’s detail view -> actions -> preview or print, the file downloads.
This leads me to believe that there is something else that needs to be handled in SuiteCRM.
I’ve also checked with other web applications/sites to see how the PDF viewing/downloading behaves and PDFs do open automatically in a new browser tab.
I have included a screenshot of the location in the app where I am trying to get this functionality to work. Though I am targeting a custom module, behavior should be the same for any module if I have my browser settings set to open in a browser tab.
I know some of my colleagues will try to make some time to come around the Forums, but I would say your best hope would be other Community members, some of them are quite helpful and knowledgeable.