Я добавил TextBox, чтобы я мог переместить его в нужное место.Но когда я пытаюсь удалить его фон (в MS Word это эквивалентно Format-> Shape Fill-> No Fill), он не работает.Как сделать TextBox прозрачным?
Ниже представлен мой код
$textBoxStyle = [
'marginLeft' => Converter::cmToPixel(5.5),
'positioning' => 'relative',
'marginTop' => round(Converter::cmToPixel(14.55)),
'width' => Converter::cmToPixel(6),
'height' => Converter::cmToPixel(1),
'borderColor' => '#fff',
'borderSize' => 0,
'posHorizontal' => 'absolute', 'posVertical' => 'absolute',
'bgColor' => '#0000cccc',
'fill' => ['color' => '#33CC99', 'bgColor' => '#33CC99'],
'shading' => ['fill' => '#0000ffff'],
'bgColor' => ['fill' => '#0000ffff']
];
$textReport = $section->addTextBox($textBoxStyle);
$textReport->addText("Report", [
'name' => 'Arial',
'size' => 15,
'color' => '#ccc',
'bold' => true,
'italic' => true
]);
bgColor,shading & fill
в стилях для тестирования.Это не работает.