fi
REDIRECT "$PATH_INFO"
;;
+ pdf_export)
+ id="$(POST id)" file="$_DATA/${id}.kvd" tmp="$(randomid)"
+ type="$(DBM "$file" get type)"
+ [ -d "${_EXEC}/${type}/" ] \
+ && . "${_EXEC}/${type}/print.sh"
+
+ yield_html >"$_DATA/export/${tmp}.html"
+ lowriter --convert-to pdf --outdir "export/" "export/${tmp}.html" >/dev/null
+ pdftk "export/${tmp}.pdf" background "$_EXEC/$type/Background.pdf" output "export/${tmp}.pdf"
+ mv -- "export/${tmp}.pdf" "export/${id}.pdf"
+ rm -- "export/${id}.html"
+ redirect "/pdf/${id}/$(URL "${filenamestring}.pdf")"
+ ;;
*)
REDIRECT /
;;