Index: openacs-4/packages/acs-tcl/tcl/pdf-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/pdf-procs.tcl,v diff -u -r1.1.2.1 -r1.1.2.2 --- openacs-4/packages/acs-tcl/tcl/pdf-procs.tcl 8 Sep 2005 14:55:18 -0000 1.1.2.1 +++ openacs-4/packages/acs-tcl/tcl/pdf-procs.tcl 19 Sep 2005 10:45:02 -0000 1.1.2.2 @@ -45,7 +45,11 @@ } file delete $tmp_html_filename - return $tmp_pdf_filename + if {[file exists $tmp_pdf_filename]} { + return $tmp_pdf_filename + } else { + return "" + } } @@ -69,7 +73,11 @@ if {[catch {exec $htmldoc_bin --webpage --quiet -t pdf -f $tmp_pdf_filename $tmp_html_filename} err]} { ns_log Notice "Error during conversion from html to pdf: $err" } - return $tmp_pdf_filename + if {[file exists $tmp_pdf_filename]} { + return $tmp_pdf_filename + } else { + return "" + } } ad_proc -public text_templates::store_final_document {