From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20329 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pandoc html to doc(Not Docx) conversion issue Date: Fri, 08 Jun 2018 08:26:41 -0700 Message-ID: References: <4968239f-7a2b-41f0-bf08-b5bcdcfe7cc1@googlegroups.com> <91ef9043-57fa-497f-a2e2-1859efe246d7@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528471490 624 195.159.176.226 (8 Jun 2018 15:24:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2018 15:24:50 +0000 (UTC) To: Bhaskar Sanjeevamoorthy , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBP6A5LMAKGQEFA4F5HQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 08 17:24:46 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f56.google.com ([209.85.213.56]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRJFt-0008Rk-AX for gtp-pandoc-discuss@m.gmane.org; Fri, 08 Jun 2018 17:24:45 +0200 Original-Received: by mail-vk0-f56.google.com with SMTP id g33-v6sf5222756vki.13 for ; Fri, 08 Jun 2018 08:26:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1528471616; cv=pass; d=google.com; s=arc-20160816; b=kivCc0ARUzVo5pDZn2Sts2BIp3oDdhUaP5XhC4J62BAwoiRtvt9JGXebB8u9pMmVNH ypxQ0Y8KdI6hos8t/wp5p+aKLuDaRg89IHKAFeUnvFgcVSLX/cWkcNthr1k5dQfZLdN/ SIFSCtt10gFetmrhDVBD5EdZLgiGRrbcNdYZKEBMnwiDojWgAiV1Bzoro9+j/VmDKbWm TEs7pkQ+VgbzjD2HkLhH4B+oO1m3bjIrsq7JJn5iLQ5QBo/ZUkdZu7L02LCzFqVD3fZ4 2l/A+abzW52rGzUCfhDu4bPR9w+Tmp0gund+di16m8R3Bxz/N1ILa6rp1sAySjrX2ZE3 QW6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding:reply-to :mime-version:message-id:date:references:in-reply-to:subject:to:from :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=CzvbaHY7ASTJiF2TQWH7arpYsemAaVKswEZ9M0LqmUc=; b=nBV7qXmFgASl/MIPXRakhr7o3Y6fSMvPWrG0cj7Z9eHJ/teaJJwZZXxHV1Uz/SKLdE JZfbqEsZjEh5O1B5rIZHoXVEHWltesCTumqQdAepX0zz81Uey3jaNOhCo567A2Sm9P5y PFtJl4jDVvfuXiooX8z56F1cC9JqdtbXoYM8t0jhAangpRQrjrE/irIbM7GA98jrHpH5 9WZyeKyNWT9DT7tAuPgzqIkW2P5z20/6DoPiK7IMqUd02oC/3LN0T5Sx2ekOTEkvOzP1 tAq236/2YEdyBrxOb8ALv8McAw8CiYFbyqggMvNp7GXAUl+uwBZ/r2fcyIK1SJXfntv+ Z8uA= ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=P0STq5Qm; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c01::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:content-transfer-encoding:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=CzvbaHY7ASTJiF2TQWH7arpYsemAaVKswEZ9M0LqmUc=; b=Bp7TFFGF/q9v8JAsqEwK9uSZthy3ErKDJ3W6t2qKu5DvHGiT6Rtj1EgeimHNhhxWmF ayMibcajUP58R5eeEqgE0oTuKI6s3E/jj7VHWxXEWy3lDsZa5XHzV/JIV2hCkV1lWxM3 4aEzDKZqoU/CwOt4HcggDKsArBRbwkZB/bBpn0yIvunNdE7pZZx3GccMIBoNQT4brRC4 0Jglss8TSrFg3Q4aNcVk1CxbInAlIybQGfuzaEkuX4Cn1j9Or21hTTfwXwx6Qou8igEn 9ZntJQgJiWW/hoRlVBrk8X15IUBYyP0TQsbRmGKWnOR8zWlFx3JqQDNAFKN50Thy/5eD CEWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to :content-transfer-encoding:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=CzvbaHY7ASTJiF2TQWH7arpYsemAaVKswEZ9M0LqmUc=; b=RIMvQY8ddXAB9y9QFGU+/KQmCumV/Bpk87ZUUg0H8e1d/iOHLcllB9a/1FPN2YlmYp ly56uY3jmE562Q35FM/5dc8kNaE6T7/3AMp5AMKveb3XrFAF6wL8fJ8nOlh29xik8k2H eXxlB4rFAzLXZ2OA2r4SYghoDWU5rYJ0eELXcwUTo7OdyljLHUGr2gc4GerfUxg2lO+d DfDj86ou5UCmaCEkCpvPbjgggdoa681JsKOEXuSWUbUhb2wKaoFNgP9ZATZGTZYKuURi bpoOA+ZkzMmGXjXKTWtyTffUTnitPYs8gtkLKSjdDEr1IprquTa9jVU58yKgyG4C Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APt69E2Vzf5AkkvL9hpboEdUt+sLMkOnLRPwCklsj5HI4a7laZYAIR2O lulsdWfObrKArGZijxP0VSY= X-Google-Smtp-Source: ADUXVKJCOGxfmAGS3KpHIPVPGd1Hvu5r/jE6DIQQ0u/g5GmWGONW4GJ8JOfHN6tTR2lqFsybq5bNyQ== X-Received: by 2002:a1f:9613:: with SMTP id y19-v6mr13204vkd.8.1528471616253; Fri, 08 Jun 2018 08:26:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9f:36a1:: with SMTP id p30-v6ls356535uap.13.gmail; Fri, 08 Jun 2018 08:26:55 -0700 (PDT) X-Received: by 2002:ab0:5bdb:: with SMTP id z27-v6mr2966193uae.109.1528471615295; Fri, 08 Jun 2018 08:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528471615; cv=none; d=google.com; s=arc-20160816; b=iBw9USphf1oD041LPxkBcD4hJe9B2hzx4Yrr/sqzhG5is1Y2yzquZEs0y07SrIDp6R cwnbNeUNRNpgxV++9YDHaQdbtDQdNMDuC2brU/JZoltdGfGQIq3TPYDescri8AbrvoQZ lPvY4/Jah2It+cmhg4fFYyiUN3JeYEnFM47uyfmb/lNMRvMeL8dXZtfA3CITXKCEVgNC fGi5jED1QGFNDazfdji56W7zPikV+5jykYVxhK6uemOJVv8SKhAfWkEEMj7AhdDIr7LU 0h0sosBkr2b5KGllDh3ybteZwZVuXTGVCfgFqVhYh3DDwDxksqkldacHkpCgpPVTEQg7 fhSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature:arc-authentication-results; bh=xu1hzXYuoa5b35/F0uram5wMGg/PAjjdD/9zikq3E84=; b=GKYwk55SFUiWpmhh9QQrwLMekM8g1VwynlDFHkHklBAuQW21Hi541MNMq+UFYcj7N1 60a+cqd21I7muhuh4KS06027IPfoNaf+HESWllXOJ1Dp+fuAE4C9KJz5kSfaEYxFhyS1 ZSSFiS5ws6Xivfsu2ie9PeF7KWMCYDtqHswBeBBoppBklxCyXs/jG3PUj3XM7+lZ1SEK XXl9uEot0IjJLJTz6dfxn6QWa2zSIbHdOmotoscw2/S9OZYJ/pJTUdOb7rCMK8Kc7wwO pKXE0GQuOtm6Z0CMlwWrCBmQNmnauYOMmK08z8i3+sKzBB7NS+iisnKGASiNrbGyXx66 dJTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=P0STq5Qm; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c01::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl0-x230.google.com (mail-pl0-x230.google.com. [2607:f8b0:400e:c01::230]) by gmr-mx.google.com with ESMTPS id d22-v6si1679958uam.1.2018.06.08.08.26.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jun 2018 08:26:55 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c01::230 as permitted sender) client-ip=2607:f8b0:400e:c01::230; Original-Received: by mail-pl0-x230.google.com with SMTP id 31-v6so8504163plc.4 for ; Fri, 08 Jun 2018 08:26:55 -0700 (PDT) X-Received: by 2002:a17:902:6546:: with SMTP id d6-v6mr7126836pln.196.1528471614327; Fri, 08 Jun 2018 08:26:54 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t192-v6sm2984493pgc.74.2018.06.08.08.26.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 08:26:52 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id DD119A17C; Fri, 8 Jun 2018 11:26:41 -0400 (EDT) In-Reply-To: <91ef9043-57fa-497f-a2e2-1859efe246d7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=P0STq5Qm; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c01::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:20329 Archived-At: Pandoc just converts the structure and content of the document. It pays no attention to inline style tags or CSS. And it generally can only handle simple tables (e.g. without row/colspans). Bhaskar Sanjeevamoorthy writes: > Thanks for the reply. > > you suggested to use docx file instead doc. > But we have lot of inline style tags,css classes and complex tables in ou= r=20 > actual html file, that is why we switched to doc format. > > Can you plz suggest how to solve this inline style tags issue for docx=20 > output, so that we can use this approach & drop off .doc approach > > Thanks & regards, > Bhaskar > > On Thursday, June 7, 2018 at 11:19:40 PM UTC+5:30, John MacFarlane wrote: >> >> Bhaskar Sanjeevamoorthy >=20 >> writes:=20 >> >> You say doc, not docx. Pandoc doesn't directly=20 >> support doc. If you specify an output file with a=20 >> .doc extension, it will default to HTML. You can=20 >> create a docx and then use Word to convert it to doc.=20 >> >> For docx, the second one will work, but not the first=20 >> (because in general styles don't come across).=20 >> >> > Hello,=20 >> >=20 >> > Anyone came across below issue, Please let me know if there is a=20 >> solution=20 >> > for this:-=20 >> >=20 >> > *I have html(s) like below it has base64 encoded image. When i convert= =20 >> it=20 >> > into doc file it doesnt render the image. Please suggest do i need to= =20 >> > change anything in the html format.*=20 >> >=20 >> > =20 >> >=20 >> > =20 >> > > >=20 >> style=3D"background-image:url(data:image;base64,R0lGODlhEAAQAMQAAORHHOVS= KudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAA= AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVIC= SOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1l= BavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7);width:300px;height:300px;"/>=20 >> >> >=20 >> > =20 >> > =20 >> >=20 >> > or=20 >> >=20 >> > =20 >> > =20 >> > > >=20 >> =3D"data:image;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchP= GolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= AAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKTo= QGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlB= CBMQiB0UjIQA7"/>=20 >> >> > =20 >> > =20 >> >=20 >> > Thanks,=20 >> > Bhaskar=20 >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 >> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 >> .=20 >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/4968239f-7a2b-41f0-bf08= -b5bcdcfe7cc1%40googlegroups.com.=20 >> >> > For more options, visit https://groups.google.com/d/optout.=20 >> > > --=20 > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/91ef9043-57fa-497f-a2e2-1859efe246d7%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/m2d0x1padq.fsf%40johnmacfarlane.net. For more options, visit https://groups.google.com/d/optout.