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

Pandoc converted Docx (word) give error when opening #2931

Closed
mahteshamulhaq opened this issue May 20, 2016 · 2 comments
Closed

Pandoc converted Docx (word) give error when opening #2931

mahteshamulhaq opened this issue May 20, 2016 · 2 comments

Comments

@mahteshamulhaq
Copy link

If i convert a text file (attched below) to docx with
pandoc --toc -t docx --reference-docx=reference.docx -s abc.txt -o abc.docx
i get the docx file but when i open it i give error while opening but show the file at the end
please see the abc.docx to see what error i get
all files are attached to check

abc.docx
abc.txt
reference.docx

System information :
Window server 2008 R2 enterprise
64 bit system
pandoc-1.17.0.2-windows

@mahteshamulhaq
Copy link
Author

please let me know did you able to replicate it ?

@mb21
Copy link
Collaborator

mb21 commented May 29, 2016

Could not reproduce on Mac. I got an error when opening your abc.docx file (there are problems with the contents or the file name might contain invalid characters (for example, \/)), but with pandoc 1.17.0.2 on Mac, your command generated a working docx.

Can you try with pandoc 1.17.1 and a command as simple as possible? i.e. without a custom reference.docx and preferably without --toc

@jgm jgm closed this as completed Dec 7, 2016
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

3 participants