Forum Bugs

convert_string_to_file does not create pdf file

Aegidius
Hello.

I'm trying to use Price to generate a PDF from HTML, but the function convert_string_to_file does not create a file and the array given for error messages is not filled.

What it could be the problem?

Thank you.

Egidio
mikeday
Can you try calling prince->setLog() and specify a log file in a directory that your PHP code has write permissions to? This will capture any error messages. You may need to call setInputType("html"), and you can always try converting to passthru instead of file to see whether it is a permissions issue.