Skip to main content

Posts

iis server cannot run shell exec

Recent posts

menggunakan snappy wkhtml di silex

persipan download wkthtm yg versi mana saja, kali ini saya pake versi 7z download di https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.mxe-cross-win32.7z dan dokumentasinya di  https://github.com/KnpLabs/KnpSnappyBundle Installation With  composer , require: composer require knplabs/knp-snappy-bundle jalankan perintah diatas tunggu sampe beres lalu  tinggal pakai dengan menggunakan  use Knp\Snappy\Pdf ; di baris awal dan $snappy -> generate ( $input , $output ) ; echo "berhasil genrate $output_name " ; di baris perintah , Generate an image from a URL $container -> get( ' knp_snappy.image ' ) -> generate( ' http://www.google.fr ' , ' /path/to/the/image.jpg ' ); Generate a pdf document from a URL $container -> get( ' knp_snappy.pdf ' ) -> generate( ' http://www.google.fr ' , ' /path/to/the/file.pdf ' ); Generate a pdf document from m...