From: almaghfuur lahu <budikusasi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: unable to load picture when convert markdown to pdf
Date: Sat, 9 Jul 2022 18:37:03 -0700 (PDT) [thread overview]
Message-ID: <87aa39ad-1124-43f4-8170-160ff691bda7n@googlegroups.com> (raw)
In-Reply-To: <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- 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 --]
prev parent reply other threads:[~2022-07-10 1:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-04 14:28 Rainwalker
[not found] ` <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-07-10 1:37 ` almaghfuur lahu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aa39ad-1124-43f4-8170-160ff691bda7n@googlegroups.com \
--to=budikusasi-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).