This is an script implementation in php for generating Docx and PDF based on dynamic HTML content.
- Clone repo to html folder using:
git clone https://github.com/lpkapil/resumebuilder.git
- cd resumebuilder
- chmod -R 777 ./*
- composer install
- chmod -R 777 ./*
- Edit action.php and change below
$this->siteUrl = 'http://localhost/resumebuilder/';
- Access http://localhost/resumebuilder in Browser.
- ( However it's POC, we need to send dynamic form values to script and choose HTML template and it will convert that to docx and pdf. )
- Add ".html" template files in templates folder. They will be availble in homepage templates list.
{"pdf":"http://localhost/resumebuilder/pdf/Resume-1531488196.pdf","docx":"http://localhost/resumebuilder/docx/Resume-1531488196.docx"}
- PHP Server ( v7.2.x )
- PHP Extensions required
- PHP Zip
- PHP DOM
- PHP XML
- PHP Tidy
- PHP mbstring
- mpdf ( included using composer )
- phpdocx ( included using composer )