1 Reply Latest reply on Jun 23, 2015 7:14 AM by WolfShade

    Open PDF in READER, not browser, and supply URL parameters for 'search' and 'zoom'.

    WolfShade Level 4

      Hello, all,


      I'm trying to open PDF files from a URL link - open in READER, not the browser - and have Reader highlight keyword searches, and set the zoom to 100.


      The PDFs are in many folders, but I'm currently using CFFILE to do a 'readBinary' of the PDF, then use CFHEADER and CFCONTENT to give the user the option to open in Reader.


      <cffile action="readBinary" file=" { filename is in a url parameter } " variable="variables.thisPDF" />
      <cfheader name="content-disposition" value="attachment; filename=fakePDFname.pdf##search=#url.parameter#&zoom=100" />
      <cfcontent type="application/pdf" variable="#variables.thisPDF#" reset="yes" />


      The parameters appear as part of the filename, not as parameters, and I get an error message that there are no programs on my computer that will open "fakePDFname_pdf_search=hazmat&zoom=100".


      How can I get keywords to be highlighted within the PDF?


      Much appreciated,