public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Rainwalker <dean874608172-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: unable to load picture when convert markdown to pdf
Date: Mon, 4 Jul 2022 07:28:01 -0700 (PDT)	[thread overview]
Message-ID: <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n@googlegroups.com> (raw)


[-- 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 --]

             reply	other threads:[~2022-07-04 14:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04 14:28 Rainwalker [this message]
     [not found] ` <e1afbbd7-05ab-44b9-9326-30b51b27bfd9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-07-10  1:37   ` almaghfuur lahu

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=e1afbbd7-05ab-44b9-9326-30b51b27bfd9n@googlegroups.com \
    --to=dean874608172-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).