Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

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

$
0
0

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,

 

^_^


Viewing all articles
Browse latest Browse all 6243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>