From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20325 Path: news.gmane.org!.POSTED!not-for-mail From: Bhaskar Sanjeevamoorthy Newsgroups: gmane.text.pandoc Subject: Re: Pandoc html to doc(Not Docx) conversion issue Date: Fri, 8 Jun 2018 05:23:28 -0700 (PDT) Message-ID: <91ef9043-57fa-497f-a2e2-1859efe246d7@googlegroups.com> References: <4968239f-7a2b-41f0-bf08-b5bcdcfe7cc1@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_53515_865623578.1528460609085" X-Trace: blaine.gmane.org 1528460485 6672 195.159.176.226 (8 Jun 2018 12:21:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2018 12:21:25 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCVJBZUMZILRBQXK5HMAKGQEXZEWWIY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 08 14:21:21 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot0-f191.google.com ([74.125.82.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRGOO-0001ck-Nc for gtp-pandoc-discuss@m.gmane.org; Fri, 08 Jun 2018 14:21:21 +0200 Original-Received: by mail-ot0-f191.google.com with SMTP id r26-v6sf603845otk.17 for ; Fri, 08 Jun 2018 05:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=JCgClpuTXvVP8ulqG1iE5gsM00GZA+ly557wi7esQT0=; b=fM52X0TkisDc0Wi9NeT0WyzNLx5QwdbQNVEOEzbVpablT1G8vEM9tEdfqCbtIEmp7X fir12BHzV3z1SoPvo2NIYNLi+/QnRVivL6P4H+FA4a5Q6XD49lUeaGoGcf3rJ7/GErrK 4boU+3KDq8DnZKhWJ9KppW/b/U8xo+7hh6x2aPDVszbPrefCzu78kYhK6LQJ9rMZ7L7p fRMrpUjtkj73xd3Wg88Y99lDzc+1gztZABFL1JSoRW5G6B2PSA12xPB4olXx/5GGnRo8 DRD8zbh/Wjbjz7YtQNZA14QMzWmNhyMCAyvmO06w005+3XLSxx7jjs8L7KqRBlro1CNR nrJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=JCgClpuTXvVP8ulqG1iE5gsM00GZA+ly557wi7esQT0=; b=fXiftbMShH6Ynh2bTDIjJhgr0DcDTGnA8k7jqZPQnPzpBzJjkLY+Z4kiB1zBtMGSkm PaGeoVr/2o2wVkymZVIyzvdmNEXxRS180mO+W0fS1TnKIJUMx72ZTajhltUlDT86T6/R KuLsy/fR52rQduIhAUx1ja6YA55FhM/f0Ny3q4PuOWSv6piUpN0u8u7XBfldzv/C7iEP 2dE0I6xL67yp5eCqaND0Mn69Ste+KttbJnVr/sGcEE0gfd/0yOY4LCd8v/Htc3tfvAxQ nfYEwK7jXVj7JfqXyzyUeQX2vTp/gBegTixaEhOioOO/5Ko9mWDuWD1/AQZNpz1sWGuo mI8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=JCgClpuTXvVP8ulqG1iE5gsM00GZA+ly557wi7esQT0=; b=hfQhYZp7VWmiBJzCSLiEF+70HunZvbgOr5P18eyl2X6wCvNaDbUPGSUy+BTVG4+TvS RVTRktlB6pyJb3j1e0M39U/TPwskyJ64FpEFBvXMCMXPakJqvizKsBBazV2jcp0JsxUP pC84MKXdyv0gwkQAtpGHZC+d2uYz8jue/+ZeTjf8LkgKPDaZxfursM/IOzA9wj0coCn2 GeYTcj2fthVCNb97tIoopIQqEfguR3TWgqEZKvwSPzuJ0+5zqQvxKAXLGsUQOGvdCLzd zTw6Jkr+27Jlqfv0FK9OuRO0zp4J8gWA9kDgR0HIZaDhPe5QaaC1nQyBChfbJUfRN8M4 uNEA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APt69E2d0LuLme/LdqGvHigVmcEexrpR11/ixgPnShBIRkD3jgLCrMdq uP9AaKqBKyfuRUVANqR7l/A= X-Google-Smtp-Source: ADUXVKJ62EZLtj4oOGiD/n5zziMh657Fkb1P/0NxhV5CA2gV4EKpeXI1gkaLzNg6rJZmb6zSgrvoUg== X-Received: by 2002:a9d:4501:: with SMTP id w1-v6mr252278ote.8.1528460611594; Fri, 08 Jun 2018 05:23:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:ac85:: with SMTP id v127-v6ls1564480oie.19.gmail; Fri, 08 Jun 2018 05:23:30 -0700 (PDT) X-Received: by 2002:aca:754b:: with SMTP id q72-v6mr223796oic.10.1528460609841; Fri, 08 Jun 2018 05:23:29 -0700 (PDT) In-Reply-To: X-Original-Sender: mailtobhaskars-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-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:20325 Archived-At: ------=_Part_53515_865623578.1528460609085 Content-Type: multipart/alternative; boundary="----=_Part_53516_466498620.1528460609085" ------=_Part_53516_466498620.1528460609085 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 our= =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,R0lGODlhEAAQAMQAAORHHOVSK= udfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAA= AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICS= OZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lB= avAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7);width:300px;height:300px;"/>=20 > > >=20 > > =20 > > =20 > >=20 > > or=20 > >=20 > > =20 > > =20 > > >=20 > =3D"data:image;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPG= olfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= AAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQ= GDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBC= BMQiB0UjIQA7"/>=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 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/91ef9043-57fa-497f-a2e2-1859efe246d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_53516_466498620.1528460609085 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the reply.

you suggested to = use docx file instead doc.
But we have lot of inline style tags,c= ss classes and complex tables in our actual html file, that is why we switc= hed to doc format.

Can you plz suggest how to solv= e this inline style tags issue for docx output, so that we can use this app= roach & drop off .doc approach

Thanks & re= gards,
Bhaskar

On Thursday, June 7, 2018 at 11:19:40 PM UT= C+5:30, John MacFarlane wrote:
= Bhaskar Sanjeevamoorthy <mailtob...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes:

You say doc, not docx. =C2=A0Pandoc doesn't directly
support doc. =C2=A0If you specify an output file with a
.doc extension, it will default to HTML. You can
create a docx and then use Word to convert it to doc.

For docx, the second one will work, but not the first
(because in general styles don't come across).

> Hello,=20
>
> Anyone came across below issue, Please let me know if there is a s= olution=20
> for this:-
>
> *I have html(s) like below it has base64 encoded image. When i con= vert it=20
> into doc file it doesnt render the image. Please suggest do i need= to=20
> change anything in the html format.*
>
> <html>
>
> <body>
> <img id=3D"123"=20
> style=3D"background-image:url(data:image;base64,R0l= GODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ= 0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= AAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNK= ToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7);width:300px;height:300px;"/>
>
> </body>
> </html>
>
> or
>
> <html>
> <body>
> <img id=3D"123" style=3D"width:300px;height:300px;" src=20
> =3D"data:image;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAA= AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAA= AAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5Q= AnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7&= quot;/>
> </body>
> </html>
>
> Thanks,
> Bhaskar
>
> --=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-discus...@googlegroups.com.
> To post to this group, send email to pandoc-...@googlegroups.com.
> To view this discussion on the web visit
https://groups.= google.com/d/msgid/pandoc-discuss/4968239f-7a2b-41f0-bf08-b5bcdcf= e7cc1%40googlegroups.com.
> For more options, visit https://groups.go= ogle.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/91ef9043-57fa-497f-a2e2-1859efe246d7%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_53516_466498620.1528460609085-- ------=_Part_53515_865623578.1528460609085--