File: topdf

package info (click to toggle)
htmldoc 1.9.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,720 kB
  • sloc: cpp: 24,933; ansic: 4,722; sh: 3,262; makefile: 264; java: 59; php: 36; python: 13; xml: 10; perl: 7
file content (25 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# Sample "portal" script to convert the named HTML file to PDF on-the-fly.
#
# Usage: http://www.domain.com/path/topdf/path/filename.html
#

#
# The "options" variable contains any options you want to pass to HTMLDOC.
#

options="-t pdf --quiet --jpeg --webpage --header .t. --footer .1."

#
# Tell the browser to expect a PDF file...
#

echo "Content-Type: application/pdf"
echo ""

#
# Run HTMLDOC to generate the PDF file...
#

htmldoc $options http://${SERVER_NAME}:${SERVER_PORT}${PATH_INFO}?$QUERY_STRING