IMHO can only work for straight link point to the media file the last is likely not such direct link ensure file is DLed to a dir. fully then replace text string https: with file:/ On Monday, 4 July 2022 at 21:28:01 UTC+7 Rainwalker wrote: > I want to convert my *A.md *to *B.pdf, **the content of **A.md* * is* > > > > > *![](http://gityuan.com/images/context/context.jpg > )![](https://upload-images.jianshu.io/upload_images/944365-cf5c1a9d2dddaaca.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/456/format/webp > )![](https://img-blog.csdn.net/20180510164327114 > )* > > my command is > *pandoc A.md -o B.pdf --pdf-engine=xelatex* > it show error messages : > > > > > > *Error producing PDF.! Unable to load picture or PDF file > '/private/var/folders/hg/tnjcvbq55ydb7b4vlqfqh6yh0000gn/T/tex2pdf.-9d3be78556f187cb/af6d7020cfcfa704aea1546f1268396e41a51815.png'. be read again> }l.70 > ...d7020cfcfa704aea1546f1268396e41a51815.png}* > > I found if *A.md *only have the first url, it works. So I guess it's > because the second and third url dont have a extension like ".png" ? So I > try again with the command > *pandoc A.md -o B.pdf --pdf-engine=xelatex --default-image-extension=png* > > and there are no errors, the second and third url were added extension > ".png" when convertin'. When I check the pdf the second image is good > now, but the third image is wrong becus > https://img-blog.csdn.net/20180510164327114 ''s image is not the same as > https://img-blog.csdn.net/20180510164327114.png 's in browser. > > Anybody can help me plz? > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87aa39ad-1124-43f4-8170-160ff691bda7n%40googlegroups.com.