A single picture shows :

Write well first word The format of the document , Insert a picture in it , And then rename it as ftl, Open it in an editor , Take that part of the picture base64 For information freemarker Replace the expression with . Then output the information of the picture to the template .

Multiple pictures show :

It should be noted that , When multiple pictures are displayed , When list In the cycle , If you don't change the two properties of the picture w:name and imagedata src Value , So it's always the address to call the first picture , It shows the first picture .

Change two properties w:name and imagedata  src Methods :

Change the name of two attributes with the index of individual variables , The index format of individual variables is “ Variable name _index”, See red bold below .

<#list images as im>
<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
<w:binData w:name="${"wordml://0200000"+im_index+1+".jpg"}" xml:space="preserve">
<v:shape id=" picture " o:spid="_x0000_i1025" type="#_x0000_t75" style="width:414.75pt;height:207.75pt;visibility:visible;mso-wrap-style:square">
<v:imagedata src="${"wordml://0200000"+im_index+1+".jpg"}" o:title=" menu "/>

Reference material :

In this paper, from :

freemarker Image output 、 Multiple pictures output ( The reason and solution of picture repetition ) More articles about

  1. java The image processing —— Combine multiple images into one Gif Picture and play or Gif Split into multiple pictures

    1. Multiple sheets jpg Graph synthesis gif Animation /** * Take more than one jpg Combine the pictures into one * @param pic String[] Multiple jpg file name Inclusion path * @param newPic String Generated gif ...

  2. php Merge pictures ( Combine the active background picture and dynamic QR code picture into one picture )

    <?php // Case a : Combine the active background picture and dynamic QR code picture into one picture // Picture a $path_1 = './background.png'; // Picture 2 $path_2 = './FU0851_2 ...

  3. Use freemarker Generate word、html There is a problem with the picture display

    Use freemarker Generate word.html There is a problem with the picture display Blog classification : Java Use freemarker Generate word When the picture shows the problem, use freemarker Generate html When the picture shows the problem, use iText raw ...

  4. php use jquery-ajax Upload multiple images, limit image size

    php use jquery-ajax Upload multiple images, limit image size /** * To upload pictures , The default size limit is 3M * @param String $fileInputName * @param number $siz ...

  5. Write something today of iOS Multiple picture combinations The problem of making a picture . Keep the original pixel unchanged

    1. requirement : The server gives a picture template , To be hollowed out on the template , Then add some other pictures , And then combine them into a picture , The pixels of this template Not fixed , It's possible to compare The current mobile phone screen is large . therefore , When combining screenshots , There are certain requirements . Post code : /** ...

  6. java Write on the picture , How to merge two pictures

    package writeimg; import javax.imageio.ImageIO; import java.awt.Color; import java.awt.Font; import ...

  7. php How to control users' access to pictures PHP It's forbidden to steal pictures ( Reprint )

    hold images The directory is set to not allow http visit ( Put the pictures in the catalog : Read . Directory browsing Two permissions are removed ). Use one PHP file , Direct use file Function to read this image . In this PHP File access control . apache Environment , In you ...

  8. php How to control users' access to pictures PHP It's forbidden to steal pictures

    This article is excerpted from the Internet for learning only I sum up according to the tutorial https://www.imooc.com/video/13412 Mainly to make use of apache Of htacess Control ,, With what judgment is not through this site to visit it ...

  9. Base64 Picture coding principle ,base64 Picture tool introduction , Image online conversion Base64

    Base64 Picture coding principle ,base64 Picture tool introduction , Image online conversion Base64 DataURI  Allow in HTML Small files embedded in documents , have access to  img  Label or  CSS  Embed transformed  Base64  code , Reduce   ...

Random recommendation

  1. C# Summary of interview questions ( Hang in the air )

    The benefits of generics : 1. It can ensure type safety and avoid packing and unpacking operations , Generic classes are replaced by specific types at compile time . 2. We'll take one ArrayList Come on ,ArrayList To unpack , That is to say ArrayList Pass in ...

  2. 3.6--- Double stack sorting (CC150)

    answer , The method in the textbook is better . public static Stack<Integer> sort(Stack<Integer> s) { Stack<Integer> ...

  3. Chatting Cocoapods And Xcode Engineering configuration

    Preface The article is relatively long , So at the beginning of this article, I'm going to give a brief introduction to what this article is going to talk about , Readers can choose the detail of the whole article , You can also find what you are interested in directly . Since it's about Cocoapods, First of all, we need to understand the background of its emergence . An experienced driver ...

  4. Song of Pi

    def main(): pi = ' # Give the value to be compared in advance t = int(raw_input()) for _ in xrange(t): song = raw_input().strip(). ...

  5. bootstrap Floating top or bottom

    This is a bootstrap The style provided , Just import bootstrap.css that will do . Required class style : navbar navbar-inverse navbar-inner navbar-fixed ...

  6. SDOI2016 R1 Problem solving report bzoj4513~bzoj4518

    Energy storage meter take n, m Break it down into binary , Consider one log(n) Layer of trie Trees ,n It will be in this trie A path came out of the tree , because Row number $ \le n$, So in n On the binary path of , Every time I go to 1 When I left , And m Computation contribution ,m In the same way ...

  7. Realization javascript The organization of modules under

    In front of the word java There are class files .Python Yes import key word .Ruby Yes require key word .C# Yes using key word .PHP Yes include and require.CSS Yes @import key word , But yes. ES5 ...

  8. HDU 6184 Counting Stars Classical ternary ring counting

    Topic link :http://acm.hdu.edu.cn/showproblem.php?pid=6184 The question : n A little bit m Undirected graph of strip and edge , Ask how many A-structure among A-structure Satisfy V ...

  9. About AJAX There is a problem of Chinese garbled code in use

    I'm just learning AJAX, Meet a tough bug Namely xmlHttp.open("get",url,false);url There's Chinese in it , It turned out to be garbled . But in the end, baidu , With the help of you bloggers , Successfully solved ...

  10. utilize Linux tap/tun Virtual device write a ICMP echo Program

    This article is published in my official account Linux Cloud computing network (id: cloud_dev), Focus on dry goods sharing , There is 10T Books and video resources , The background to reply 「1024」 Can receive , Welcome to pay attention , Qr code text can be swept at the end . The previous two articles have already ...