'How can we align an image and texts in same single line using google docs api with PHP?
I am working on google docs api with PHP code. I want to insert an image and texts in same line.Is it possible to do this with google docs api?
I can insert image and texts but not in single line.Is there any way to do so?
For inserting texts-
'insertText' => [
'text' => "hello",
'location' => [
'index' => 1,
]
]
and for inserting images-
"insertInlineImage" => [
"location" => [
"index" => 1
],
"uri" => "https://www.gstatic.com/images/branding/product/1x/docs_64dp.png",
"objectSize" => [
"height"=> [
"magnitude"=> 10,
"unit" => "PT"
],
"width"=> [
"magnitude"=> 10,
"unit"=> "PT"
]
]
]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
