try
  
catch                                                     
try {
...          
PDFlib    
...
} catch (PDFlibException $e) {
print "PDFlib exception occurred:\n";
print "[" . $e >get_errnum() . "] " . $e >get_apiname() . ": " 
$e >get_errmsg() . "\n";
}
catch (Exception $e) {
print $e;
}
                                                                                                 
                                                                                                
      
2.10 Python                            
2.10.1 PDFlib Python                      
      
                                                                                        
                                                                                                      
                                                      
Unix
                   
pdflib_py.so                
pdflib_py.dylib                       
                                                               
Windows
                   
pdflib_py.dll                                                    
                               
2.10.2 Python        
Hello world           
from sys import *
from pdflib_py import *
p = PDF_new()
if PDF_begin_document(p, "hello.pdf", "") ==  1:
    print "Error: " + PDF_get_errmsg(p) + "\n"
    exit(2)
PDF_set_info(p, "Author", "Thomas Merz")
PDF_set_info(p, "Creator", "hello.py")
PDF_set_info(p, "Title", "Hello world (Python)")
PDF_begin_page_ext(p, 595, 842, "")
font = PDF_load_font(p, "Helvetica Bold", "winansi", "")
1. www.python.org         
40
  
2   
:  PDFlib                        






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

cgi web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved