Thanks. This is helpful, I'll keep digging.

On Saturday, April 3, 2021 at 7:55:52 AM UTC-7 Bastien Dumont wrote:
Hi,

The DOCX writer inserts this element in the document's XML source code which locks the picture:

<pic:cNvPicPr>
<a:picLocks noChangeArrowheads="1" noChangeAspect="1"/>
</pic:cNvPicPr>

I guess that there should be something in Word to change this, like right-click on the image > Properties > Advanced Properties, but I can't check it. Otherwise you can access it via a macro. Uncompressing the DOCX file, removing the offending element in word/document.xml and recompressing it may also do the trick, although I have no way to verify it.

If all you want to do is to change height or width, you can set these attributes in the HTML file.

Regards,

Bastien

Le Saturday 03 April 2021 à 06:58:29AM, Michael Becker a écrit :
> To illustrate my challenge, here are two test files. I'm using this command to
> covert the HTML:
>
> pandoc -s TestFile4.html --reference-doc=aiztemp.docx -o TestFile4.docx
>
> As you can see, the result gives the word file, but the image in the file can
> not be resized or adjusted in any way. I would really love to learn what I can
> do to fix this so that I can do post-conversion editing on my file. For
> example, is there a wrapper I should be putting around the images in the HMTL?
>
> I hope someone can help.
>
> On Friday, April 2, 2021 at 8:43:19 AM UTC-7 Michael Becker wrote:
>
> Love pandoc, but alas I have an issue. When I covert an HTML file with
> images to .docx the images are embedded. I can't click on them or resize
> them. Does anyone have a solution for this?
>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/
> pandoc-discuss/b4a99de5-0263-4312-a29d-88785cffbc12n%40googlegroups.com.


> Test file
>
>
> [mBecker]
>
> Section 1
>
> Some text
>
> Section 2
>
> Some text
>

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/97776a8b-702a-4eda-8b7a-e1bfa349ed2cn%40googlegroups.com.