Innov-AI
    Documentation | MentDB Weak Server
PDF: generate a PDF from a HTML page

  • try {
    
    	sql connect "session1" {cm get "demo_cm_mysql";};
    	
    	pdf from html 
    		(sql to html "session1" "products" (concat "select * from products"))
    		"/Users/jimmitry/Desktop/test.pdf";
    	
    	sql disconnect "session1";
    
    } {
    
    	try {sql disconnect "session1";} {} "[err_sql]";
    	log trace [err]; 
    
    } "[err]";
Services     Supporters     Contact     About     Legal notice © 2024