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
download remote images in converting markdown to latex/pdf #750
Comments
+1 for this feature |
This is already implemented in 1.12. I guess I forgot to close this bug. |
It is possible that this feature has been lost again? I am trying to convert a web page (remote html file) to rich text file (rtf) using pandoc version 1.12.4.2 on Windows and pandoc does download and embed images in the output file:
I have also experimented with the
All I get is red colored reference to the image that has not been downloaded:
The rest of the document is converted correctly. If I download the web-page and its images to disk and then convert the the HTML file to RTF locally it works just fine - all images are properly included in the rich text document:
It also doesn't work if the images are embedded into the web page using base64 data uris. |
I just tried it with the dev version and the images came |
You can reproduce the steps with with the haskell website: http://www.haskell.org/platform/
Converting the website locally works:
|
We need this information for relative URLs! This should resolve the continuing problem noted in #750.
The problem is solved in the latest 1.13 release . All remote images are properly embedded into the RTF document :-) Thank you very much for this great tool! |
This problem seems to have reappeared, at least in version 1.16.0.2. This example again illustrates: pandoc -s http://www.haskell.org/platform/ -o out.rtf |
The problem is that we can only embed raster images in +++ puterleat [Sep 20 16 00:50 ]:
|
I don't think it's just an SVG issue though, e.g.: pandoc -s http://oldschool.runescape.com -o out.rtf |
That works fine. Are you looking at it in OSX's TextEdit by If you look at out.rtf in an editor, you'll see the data for +++ puterleat [Sep 20 16 01:33 ]:
|
Hi, I don't know if this is related, or if I'm hijacking this thread, but I just installed pandoc from ubuntu's apt-get, and tried this command:
The output does not contain the images. Maybe because they are relative (like The errors I see are:
I've tried adding the Is this related? (and is there a solution?) |
Not directly related. I'd suggest opening a new issue. +++ Tom Muylle [Sep 20 16 06:21 ]:
|
Thanks, sorry for the hijack |
I am facing the same issue while converting the html file to the rtf using the pandoc-1.18. |
Markdown (or possibly html) files with remote images cannot be directly converted to pdfs. As the
--self-contained
option already supports downloading of image files, perhaps a similar trick could be used to download and store local images for embedding in the latex or pdf document?The text was updated successfully, but these errors were encountered: