我正在寻找页脚中的段落和元素段落的示例。我试过了,但我只能在页脚中插入文本:$requests = array (new \Google_Service_Docs_Request(array( 'insertText' => array( 'location' => array( 'segmentId' => $segmentId, 'index' => 0 ), "text" => 'My Text' ))),我试图像这样实现新的页脚:$footers = array( new \Google_Service_Docs_Footer(array( 'footerId' => $segmentId, 'content' => [ 'paragraph' => [ 'element' => [ 'textRun' => [ 'content' => 'My Text - ' ] ] ] ] )), new \Google_Service_Docs_Footer(array( 'footerId' => $segmentId, 'content' => [ 'paragraph' => [ 'element' => [ 'AutoText' => [ 'type' => 'PAGE_NUMBER' ] ] ] ] )), new \Google_Service_Docs_Footer(array( 'footerId' => $segmentId, 'content' => [ 'paragraph' => [ 'element' => [ 'AutoText' => [ 'type' => 'PAGE_COUNT' ] ] ] ] )) ); $document->setFooters($footers);我们可以管理页脚的段落吗?
- 2 回答
- 0 关注
- 87 浏览
添加回答
举报
0/150
提交
取消