--- foo/term/pdf.trm.orig	Fri Feb 11 13:07:33 2005
+++ foo/term/pdf.trm	Fri Feb 11 13:07:40 2005
@@ -343,7 +343,7 @@
 	myPDF = PDF_new();
 
     /*open new PDF file */ 
-    if (PDF_open_fp(myPDF, gpoutfile) == -1)
+    if (PDF_open_file(myPDF, gpoutfile) == -1)
 	int_error(NO_CARET, "Error:cannot open PDF file .\n");
 
 #ifdef PDF_DONT_COMPRESS
