跳至主要內容
OCLC Support

PDFRefreshPre & PDFRefreshPost

Learn how to use the PDFRefreshPre and PDFRefreshPost config.txt directives to manage the display of PDFs in EZproxy.

PDFRefreshPre is a position-independent directive may appear only once and which must always be paired with a PDFRefreshPost directive. Typical placement is toward the top of config.txt.

PDFRefreshPre and PDFRefreshPost directives alter the text that appears before and after the link that is generated when a starting point URL refers to a PDF document.
Due to a flaw in the handling of redirects between Internet Explorer and Adobe Acrobat, starting point URLs that point to PDF documents fail to display properly if EZproxy performs a normal browser redirect to trigger the display of such documents. To compensate, EZproxy generates an intervening page that uses a browser refresh to avoid this behavior.

To create the refresh, EZproxy normally generates an intermediate page that looks like this:

      To access this document, wait a moment or click here to continue

The exact text that appears before and after the link can be altered using the PDFRefreshPre and PDFRefreshPost directives.

Example

Sample use with the default values of these directives is:

PDFRefreshPre To access this document, wait a moment or click <a href="PDFRefreshPost">here</a> to continue

Sample alternate use to make the link appear only in browsers that have JavaScript disabled is:

PDFRefreshPre <noscript>To access this document, wait a moment or click <a href="
PDFRefreshPost">here</a> to continue</noscript>

Related directive 

PDFRefresh