Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Rendering to DocX, fails to find images. #19

Closed
jomahoney opened this Issue · 4 comments

3 participants

@jomahoney

I have been trying using to the SmartMarkdown Plugin to render to PDF and HTML without issue and including the images but when I try to render it to DocX I get the following error:

Fail to generate output.
�Command: pandoc -t docx    /var/folders/j_/lpm97wj53cbc0cnprvps5nh00000gn/T/tmprCTLsX.md -o /Users/jomahoney/code/FYP/Project.docx

Errors: pandoc: Could not find image `images/login.png', skipping...
pandoc: Could not find image `images/profile.png', skipping...
pandoc: Could not find image `images/module.png', skipping...
pandoc: Could not find image `images/workbench.png', skipping...

But as mentioned the images are in the correct directory. I notice the the render uses a temp file, perhaps this is causing the images to not be found? Any ideas?

@demon386
Owner

I think the problem is because we're writing the content to a temporary file, and the image is not in the directory that temporary file resides.

I'll investigate this within about 2-3 days. Sorry for the delay.

@demon386
Owner

@jomahoney Hi, I've tried on my machine, and seems that I have no problem linking image when generating docx.

You used Mac OS X too right? Can you successfully generate the docx using the command line?

@jomahoney jomahoney closed this
@jomahoney

User Error

@timmkrause

What was the solution to your problem? Always mention your solution, you can help somebody else as well. Me in this case. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.