From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30915 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rainwalker Newsgroups: gmane.text.pandoc Subject: unable to load picture when convert markdown to pdf Date: Mon, 4 Jul 2022 07:28:01 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2734_1517269493.1656944881250" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21781"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDE3JXHKSEOBB4XRROLAMGQEIHUVEMY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 04 16:28:06 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f191.google.com ([209.85.128.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o8N3V-0005QE-PQ for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 04 Jul 2022 16:28:05 +0200 Original-Received: by mail-yw1-f191.google.com with SMTP id 00721157ae682-31c896f3326sf26415167b3.13 for ; Mon, 04 Jul 2022 07:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=KtisxcgjgCjnuKD3pS7cHsWiYmPK0yqFXHx8ew5ktSM=; b=bxY0wKV0koI13esbtv+IUzS0ZHe4vMItWWSCstAwN2Ro5PKcoZ3TQ3uvD6y/5xSqf8 g/B/BhoVzzTXeT8NzfOxTblbnFlxjoVG2pLjV/e3w1EIgmigGU3TRjNpVfr2PADTxAb7 xf77TRnhdih2RZUPwzk7ZQ59M7p0boaLXnXlXUHRg9tLe5qgUFEPN2/TbzuPSFZ6T6KF pLwOnEyyAU9a/oEtuD/ZZ1iamHEcyJp9OZGMmvxcuSNncpRWKbQ3heZ3POF2QNelNTtE S8RfSaAO6FfSlUENAIbPynhYuA+DdqEvREm3i8MgzW4L5CiqmeY23ql/+vLhpwhe/8Zp 2VMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=KtisxcgjgCjnuKD3pS7cHsWiYmPK0yqFXHx8ew5ktSM=; b=kXATtTBuZMYwxSoN9xsFPdlq6f3MFdHLdLAxqGyttg1Ajx5eOj1+kqu++S7sblAyP8 ai1zdZwGaaFHYoixVOKJH4aCJXSdYBZs6LcX/o5MU0qMybOeS+QKPddaTuaIH46A30xO 2gxPp/zlydm2fZdClVyIoxleX7n6bIWbBO9AHaMoSZM3vu73fzp2C3TFM3nO5demdf/e 7Eh0mKog6p7dwJraqkjGfN8cMv0N9zIGbZhEmavfafhBAzT6N1JzbRkO/9IxIt+y7GJ8 vPWtyMrnWGUk1yuBerqokUAGiv9/whlcg8KwWQpsrduYm4pakMYCDzfPv3mOAxgV4H3m 8iWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=KtisxcgjgCjnuKD3pS7cHsWiYmPK0yqFXHx8ew5ktSM=; b=51TsCh7EjVLcZwtoD0N7V6WibK6gFuz36VVREZh5kCj4GX8tKr4x2zntGtacwLVXXk UQPqApFgOC5LWX3ALbzlWqEdUOvcbQbSduKEQtdb29Y21CbZA0z3bLCFJ9ONpEl/JuYs JQUF9ito/ZYJQj3AzbE1ttqsJY+MQTG5kFAa2TfXJZHwV4sheEIqsJ/jhnfwl2RTkBF9 BHKUCEvJX0OkOl/36+NGtyzCgClyWFoptEIUxb2RL4H4cUEWikMdeDeogGonxXnkD1SH TZjxXj5MWkpsuK2Nn3ajugqoDszqwUFIZloVmeYFrzQbdTp3KGE8/QuboDkwb/XhTrhw Y8ig== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+K/UQvzpujiPTGJbVl1EvoTaJDDmRyAWZPG0qZMREvmfZmydjs Y+TP8L0CFQ4vky1tvsQHkbQ= X-Google-Smtp-Source: AGRyM1vS9SwxgwwbkZ25H2kYyTUMzXQ640ZD4jOZKh7r654N0huALJ8cFOFCwFeL5stUVAtrnP4/EA== X-Received: by 2002:a81:754:0:b0:314:59e0:ceb7 with SMTP id 81-20020a810754000000b0031459e0ceb7mr32590270ywh.178.1656944884649; Mon, 04 Jul 2022 07:28:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:a1d1:0:b0:31c:8f2d:aedc with SMTP id y200-20020a81a1d1000000b0031c8f2daedcls1420195ywg.3.gmail; Mon, 04 Jul 2022 07:28:02 -0700 (PDT) X-Received: by 2002:a0d:dd03:0:b0:31c:8909:f515 with SMTP id g3-20020a0ddd03000000b0031c8909f515mr9603714ywe.401.1656944881849; Mon, 04 Jul 2022 07:28:01 -0700 (PDT) X-Original-Sender: Dean874608172-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30915 Archived-At: ------=_Part_2734_1517269493.1656944881250 Content-Type: multipart/alternative; boundary="----=_Part_2735_373699353.1656944881250" ------=_Part_2735_373699353.1656944881250 Content-Type: text/plain; charset="UTF-8" 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'. }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. ------=_Part_2735_373699353.1656944881250 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I want to convert my A.md to B.pdf, the co= ntent of A.md  is
![](http://gityuan.com/images/context/context.jpg)

!= [](https://upload-images.jianshu.io/upload_images/944365-cf5c1a9d2dddaaca.p= ng?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=3Dxelatex
it show error messa= ges :

Error producing PDF.
! Unable to load picture or PDF file '/pri= vate/var/folders/hg/tnjcvbq55ydb7b4vlqfqh6yh0000gn/T/tex2pdf.-9d3be78556f18= 7cb/af6d7020cfcfa704aea1546f1268396e41a51815.png'.
<to be read again&= gt;
                   = ;}
l.70 ...d7020cfcfa704aea1546f1268396e41a51815.png}
<= font style=3D"background-color: white;" color=3D"#000000" size=3D"4">

I found if A.md only have the = first url, it works. So I gu= ess it's because the second and <= font color=3D"#ff0000" style=3D"">third url dont have a extension li= ke ".png" ? So I try again with the command
pandoc A.md -o B.pdf --pdf-engine=3Dxelatex --default-imag= e-extension=3Dpng

and there are no errors, the second and third url wer= e  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.ne= t/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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_2735_373699353.1656944881250-- ------=_Part_2734_1517269493.1656944881250--