Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Convert to Word' not converting to word #2

Open
rationalreasoning opened this issue Feb 25, 2019 · 1 comment
Open

'Convert to Word' not converting to word #2

rationalreasoning opened this issue Feb 25, 2019 · 1 comment

Comments

@rationalreasoning
Copy link

I am trying to get the convert to word print version running for a professor at CSUSB who is wanting to use IMathAS to generate paper tests. I was able to install pandoc 1.12.3.1 through the yum repo and get it to spit out the attached file.
convertedfile.docx
But Word is unable to open it. Opening in wordpad displays an error which looks like

Notice: Undefined index: html in /home/imathas/public_html/pandoc/html2docx.php on line 71

Line 71 looks like..

$html = $_POST['html'];

this is all followed by a file full of random characters. I guess my questions are..
Is pandoc 1.12.3.1 a new enough version to work for this converter? I tried to update through cabal but never made it through the errors. There isn't a lot of documentation for this and i'm kind of stuck.

@drlippman
Copy link
Owner

Given the error, it sounds like the POST didn't include the html parameter. That sounds like an issue on the sending end, not in the html2docx script. Maybe use the browser network inspector to see if the POST parameters are being sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants