From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30944 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: almaghfuur lahu Newsgroups: gmane.text.pandoc Subject: Re: unable to load picture when convert markdown to pdf Date: Sat, 9 Jul 2022 18:37:03 -0700 (PDT) Message-ID: <87aa39ad-1124-43f4-8170-160ff691bda7n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2062_288044218.1657417023558" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25130"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCYBCOIWMFRBQO2VCLAMGQE24SINJY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 10 03:37:08 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f183.google.com ([209.85.219.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oALsi-0006Ny-OC for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 10 Jul 2022 03:37:08 +0200 Original-Received: by mail-yb1-f183.google.com with SMTP id c7-20020a258807000000b0066d6839741esf1617240ybl.23 for ; Sat, 09 Jul 2022 18:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=wWuxNPZWO7rx5AZyfk5GShaS6aYPKSxuYbBTLHO4Om8=; b=rqswNxZefsQZAcXdWKcAPZ5SePXN0+bmV+ni9FfGWiyDTJ+dCfI+uwSusJjJi18sgf eNwIfJTfhpzxqCnJadSnMRGt6VtiNcnKb3Ojupez3NryLhh9HeZOu1z13oIEaLQF0MrV VT3sGCPXbiH70dLkWqVb5dW+LQFsm325kSByCWSSIKk1wrvDSgGW07f3iqmjqbK0aeJ7 mAsGpl1LSDtetDu0yiC51UCgWIDwUnuGuN2dylGbpMHyhM6CLiKdNWPFjL9oWsCT3SFY R0dXM5ONXWI0CYGJ1Ob72TEIcJ8DJZwqLSiFTIb1trEhu0ZqL1/sBQTlojGd6g3ZLdDP 5ZQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=wWuxNPZWO7rx5AZyfk5GShaS6aYPKSxuYbBTLHO4Om8=; b=DazjepqmG7z26qiVGHRCTdJBrdHlDUzyUMjNHIL6SJvyhym+FdlzUpLrOFdJxYOhhT DmX8U22XZyu1W1mo8E6tJJBgSUprY/mmpWXOCc59rzt8LrYxrW0Ay6udb3hYEr7DklTp MIeYnDymVHrqgI8Jg3dtT9h4V8inddekz1SCJ3b1IdJHetZnjOrVwgF4ftIFH1lUGI4T z+uUMtIzTYo4q0+dK8wyJOQ/MmEe8T/8HyPU4FFRUaPipn9upMYRKlzVh8gyuy9Ci1fR awAwZ/t+Jg/sM7K1Kl4lB2KORGrI9f2fOf/b7KkjCb9rslVouuU5GSqdes5R3HMUxmf7 kMQA== 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:in-reply-to :references: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=wWuxNPZWO7rx5AZyfk5GShaS6aYPKSxuYbBTLHO4Om8=; b=kxu5n2cdzMIHp7RQOOqQcbcEaDc+EOkSc4/no2KeA/drNvGNOo3ZxUFFm+s7k9cESI c9N/NkQeCqvtQ/V+xvcmaSRd6rhHRiAaSyA00JgJLJNhA2bBFd96Te5juwOaTtJXe9z9 1RbpK6jEcxEAqoakMpcaIuFNx4kSbMtIFwsHLWBrVXcCsUt0PfefdrhCQygWEcxOIrEo 7X72vW26gZhRPYKcH+Z3kZ1KurbYUPgX1ApDjiX9hIjMidcC3xKXgTUmDr/MbUSehVNU vQAZrBZftLNK8n+JDf4tscD7wfakUsU0GVuIyL3HEuHtYp0KmsXXzmxFE3edUURcW6kw DM8A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora97p+9Ysq848aiAkB3fN+NYT12JeUja2CAiJDLTSpCwltFgtXmD qLOjskv81EfhqkMRnTXJNjI= X-Google-Smtp-Source: AGRyM1v60G47FR49F1RPqnmnJx+Wccv45kyyMF4WUjjLFBsUXjxa6xBQem3ibNtND0z1U2eop4DMdQ== X-Received: by 2002:a0d:ca09:0:b0:31c:86b4:1e71 with SMTP id m9-20020a0dca09000000b0031c86b41e71mr12557217ywd.267.1657417027772; Sat, 09 Jul 2022 18:37:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0d:d8cb:0:b0:31d:4ad:e625 with SMTP id a194-20020a0dd8cb000000b0031d04ade625ls4144164ywe.8.gmail; Sat, 09 Jul 2022 18:37:04 -0700 (PDT) X-Received: by 2002:a81:7d45:0:b0:31c:98da:aaa4 with SMTP id y66-20020a817d45000000b0031c98daaaa4mr12718843ywc.517.1657417024373; Sat, 09 Jul 2022 18:37:04 -0700 (PDT) In-Reply-To: X-Original-Sender: BudiKusasi-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:30944 Archived-At: ------=_Part_2062_288044218.1657417023558 Content-Type: multipart/alternative; boundary="----=_Part_2063_1928605004.1657417023558" ------=_Part_2063_1928605004.1657417023558 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_2063_1928605004.1657417023558 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable IMHO
can only work for straight link point to the media file
=
the last is likely not such direct link

ensur= e file is DLed to a dir. fully then replace text string https: with file:/<= /div>

On Monday, 4 July 2022 at 21:28:01 UTC+7 Rainwalker wrote:
<= /div>
I want to convert = my A.md to B.pdf,=C2=A0the content of A.md= =C2=A0 is

=
my command is
pandoc A= .md -o B.pdf --pdf-engine=3Dxelatex
it show error message= s :

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 ag= ain>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0}
l.70 ...d7020cfcfa704aea1546f1268396e41a51815.png}
=

I found if A.md only have t= he first=C2=A0url, it works. So I guess it&#= 39;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=3Dxelatex --default-image-extension=3Dpn= g

and there are no errors, the second= and third url were=C2=A0 added exten= sion ".png" when convertin'. When I check the pdf the second image is good now, but the third image is wrong becus=C2=A0
https://img-blog.csdn.net/2018051016432711= 4 ''s image is not the same as=C2=A0

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/87aa39ad-1124-43f4-8170-160ff691bda7n%40googlegroups.= com.
------=_Part_2063_1928605004.1657417023558-- ------=_Part_2062_288044218.1657417023558--