function convert($type='pdf') { $filename=time(); $url=$this->input->get("url"); if($type=='pdf') { $filename="upload/tmp/".$filename.".pdf"; exec("/home/phptool/wkhtmltopdf-i386 $url $filename"); header('Content-Type: application/pdf'); } elseif($type=='image') { $filename="upload/tmp/".$filename.".jpg"; exec("/home/phptool/wkhtmltoimage-i386 $url $filename"); header('Content-Type: image/jpeg'); } header('Pragma: public'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Content-Transfer-Encoding: binary'); header('Content-Length: '.filesize($filename)); readfile("$filename"); }

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

Zend Studio 13.0.1
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.
