我正在尋找頁腳中的段落和元素段落的示例。我試過了,但我只能在頁腳中插入文本:$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 關注
- 108 瀏覽
添加回答
舉報
0/150
提交
取消