Convert to pdf
Closed this issue · 4 comments
n1c01a5 commented
I try convert my content to pdf with
$pandoc = new Pandoc();
$options = array(
"from" => "plain",
"to" => "pdf"
);
$result = $pandoc->runWith($content, $options);
But I have this error:
ContextErrorException: Warning: file_get_contents(/tmp/pandoc53523a3db40e2.pdf): failed to open stream
Thanks for your help.
n1c01a5 commented
"plain" is a bad input format.
vishalmelmatti commented
did it work? I am also trying to convert markdown to pdf using this lib ?
n1c01a5 commented
Yes, it's works. Do you have any problems?
vishalmelmatti commented
Sorry, got it working using runWith.