* unable to load picture when convert markdown to pdf @ 2022-07-04 14:28 Rainwalker [not found] ` <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 2+ messages in thread From: Rainwalker @ 2022-07-04 14:28 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1693 bytes --] 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'.<to 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/e1afbbd7-05ab-44b9-9326-30b51b27bfd9n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 3372 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: unable to load picture when convert markdown to pdf [not found] ` <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-07-10 1:37 ` almaghfuur lahu 0 siblings, 0 replies; 2+ messages in thread From: almaghfuur lahu @ 2022-07-10 1:37 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2232 bytes --] 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 > <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://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 > <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'.<to > 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. [-- Attachment #1.2: Type: text/html, Size: 5395 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-10 1:37 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-07-04 14:28 unable to load picture when convert markdown to pdf Rainwalker [not found] ` <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-07-10 1:37 ` almaghfuur lahu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).