pageSize

Jun 13, 2014 at 11:05 AM
Edited Jun 13, 2014 at 11:05 AM
I'd like change default width "word cards" ( I want little "word cards")

I do
$sectionSettings = array(
//'orientation' => 'landscape',
'pageSizeW'=>308.4,
'pageSizeH'=>487.04
);
$section = $phpWord->createSection($sectionSettings);
but this code not working. The "word card" is default size, still. (dimesion of "word card" not change. ) How to do it?
Please help

best regards
bogdan
Jun 13, 2014 at 12:09 PM
Hi,

The development of PHPWord is continued on GitHub. The ability to set custom page size has just added in the current development branch of PHPWord (0.12): https://github.com/PHPOffice/PHPWord/tree/develop
Jun 13, 2014 at 5:04 PM
thanks for your reply. Couldn'nt give me example $sectionSettings?

I've tried in development version
$sectionSettings = array(
//'orientation' => 'landscape',
//'pageSizeW'=>308.4,
//'pageSizeH'=>487.04,
'paper'=>'A5'
);
$section = $phpWord->createSection($sectionSettings);
but width page is not change. : ( I'd like 5,5x5,5 "word unit" please see http://webweave.pl/other/5i5.jpg

best regards
bogdan
Jun 14, 2014 at 1:42 AM
I've found solve. This script http://sigma-scripts.de/phprtflite/docs/ is perfect for me. Thanks a lot, bogdan
Jun 17, 2014 at 9:34 AM
Ok. Glad that RTF is working for you.