Read and display pdf file

Dear ALL,

Every month, I’ll upload some files to reports directory with file name rptyyyymmdd.pdf.

In the Control, I’ll like to read the LAST 20 files from the reports directory and when user select the exact pdf, system will open another windows to view the said pdf.

Can anybody point out how to to do this?

Thanks in Advance.

Regards,
Justalk

Re: Read and display pdf file

Hi,

generate a link to pdf-file(s) with html/javascript. The user can click and open in his browser.

Re: Read and display pdf file

Dear RHS,

Can you post an example? Prefer JavaScript and/or php. But need to hide the actual location.

Eg.
File location is /home/pdfs
So javascript or php will show viewpdf(‘docname’);
and the ‘docname’ will change from time to time (variable) not fixed.

Any working example?

Thanks for feedback.

Regards,
Justalk