Apache POI Docx - 在现有文档Header中插入img

时间:2018-05-24 14:22:53

标签: apache-poi

我需要在现有docx的标题中插入img。

我的代码:

loss = tf.constant(0)
i = tf.constant(0)

def cond(i, loss):
    return tf.less(i, tf.size(xy))

def body(i, loss):
    # xy is the output from the first process
    xy = tf.cast(xy, tf.float32)
    x = tf.reduce_mean(xy) 
    loss = tf.add(loss, x)
    return [tf.add(i,1), loss]
r = tf.while_loop(cond, body, [i, loss])

optimizer.minimize(r[1])

当我打开docx修改后,我收到“打开文件时出错”错误。

感谢您的帮助。

0 个答案:

没有答案
相关问题