public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Bhaskar Sanjeevamoorthy
	<mailtobhaskars-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Pandoc html to doc(Not Docx) conversion issue
Date: Thu, 07 Jun 2018 10:49:24 -0700	[thread overview]
Message-ID: <yh480kvaautrkr.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <4968239f-7a2b-41f0-bf08-b5bcdcfe7cc1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Bhaskar Sanjeevamoorthy <mailtobhaskars-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
writes:

You say doc, not docx.  Pandoc doesn't directly
support doc.  If 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, 
>
> Anyone came across below issue, Please let me know if there is a solution 
> for this:-
>
> *I have html(s) like below it has base64 encoded image. When i convert it 
> into doc file it doesnt render the image. Please suggest do i need to 
> change anything in the html format.*
>
> <html>
>
> <body>
> <img id="123" 
> style="background-image:url(data:image;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7);width:300px;height:300px;"/>
>
> </body>
> </html>
>
> or
>
> <html>
> <body>
> <img id="123" style="width:300px;height:300px;" src 
> ="data:image;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7"/>
> </body>
> </html>
>
> Thanks,
> Bhaskar
>
> -- 
> 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/msgid/pandoc-discuss/4968239f-7a2b-41f0-bf08-b5bcdcfe7cc1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/msgid/pandoc-discuss/yh480kvaautrkr.fsf%40johnmacfarlane.net.
For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2018-06-07 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07 13:26 Bhaskar Sanjeevamoorthy
     [not found] ` <4968239f-7a2b-41f0-bf08-b5bcdcfe7cc1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-07 17:49   ` John MacFarlane [this message]
     [not found]     ` <yh480kvaautrkr.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-06-08 12:23       ` Bhaskar Sanjeevamoorthy
     [not found]         ` <91ef9043-57fa-497f-a2e2-1859efe246d7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-08 15:26           ` John MacFarlane

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=yh480kvaautrkr.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=mailtobhaskars-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).