Mercurial > hg > digilib-old
diff client/digitallibrary/modules/pdfMaker.js @ 107:85126da2ae21 vendor start
XUL: Digilib Buttons in chrome
author | engler |
---|---|
date | Tue, 13 May 2003 21:02:22 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/digitallibrary/modules/pdfMaker.js Tue May 13 21:02:22 2003 +0200 @@ -0,0 +1,17 @@ +/**************************************************************************** + * - sample module for digilib * + * * + * christian luginbuehl (luginbuehl@student.unibe.ch) * + ****************************************************************************/ + +/** + * generates a pdf-file using a perl-script called makepdf + * + * ATTENTION: the script and this function are only in alpha stadium + */ +function makePDF() { + var pages = prompt("Enter the pages you like to make a PDF of:", att[1]); + if (pages != null && pages != "") { + top.location = "http://penelope.unibe.ch/cgi-bin/cgiwrap/luginbul/makepdf.cgi?dir=" + att[0] + "&pages=" + pages; + } +}