p.set_info("Creator", "hello.cpp");
p.set_info("Author", "Thomas Merz");
p.set_info("Title", "Hello, world (C++)!");
p.begin_page_ext((float) a4_width, (float) a4_height, "");
//    host                      
winansi                                      
!
font = p.load_font("Helvetica Bold", "host", "");
p.setfont(font, 24);
p.set_text_pos(50, 700);
p.show("Hello, world!");
p.continue_text("(says C++)");
p.end_page_ext("");
p.end_document("");
    }
    catch (PDFlib::Exception &ex) {
cerr << "PDFlib exception occurred in hello sample: " << endl;
cerr << "[" << ex.get_errnum() << "] " << ex.get_apiname()
    << ": " << ex.get_errmsg() << endl;
return 2;
    }
    return 0;
}
2.5.3 C++                 
                                                                                               
                   
try   
catch                                                                 
                                                           
PDFlib::Exception                     
                                                                                                      
                                                                                                
                     
                                                                                        
                                                                  
try {
...          
PDFlib    
...
catch (PDFlib::Exception &ex) {
        cerr << "PDFlib exception occurred in hello sample: " << endl;
        cerr << "[" << ex.get_errnum() << "] " << ex.get_apiname()
            << ": " << ex.get_errmsg() << endl;
        return 2;
}
2.5.4 C++                   
                                                                                                        
                          
                                                                                                    
                                                                       
pdflib.hpp               
                                                                                                 
2.5  C++                  
31






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