Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 02 08:33
    Jack-ST94 edited #1978
  • Dec 02 08:31
    Jack-ST94 labeled #1978
  • Dec 02 08:31
    Jack-ST94 opened #1978
  • Dec 01 16:03
    matthewrnance opened #1977
  • Nov 30 05:51
    bhavink21 commented #860
  • Nov 30 05:51
    bhavink21 commented #860
  • Nov 30 05:50
    bhavink21 commented #860
  • Nov 30 05:50
    bhavink21 commented #860
  • Nov 28 14:35
    Synida edited #1976
  • Nov 28 14:35
    Synida opened #1976
  • Nov 28 14:35
    Synida labeled #1976
  • Nov 27 20:52
    psohm closed #1975
  • Nov 27 13:21
    liborm85 commented #1975
  • Nov 27 11:39
    psohm opened #1975
  • Nov 26 16:03
    AlexGnatko commented #1260
  • Nov 26 15:44
    AlexGnatko commented #1260
  • Nov 26 15:37
    AlexGnatko commented #1260
  • Nov 26 15:25
    AlexGnatko commented #1260
  • Nov 26 15:24
    AlexGnatko commented #1260
  • Nov 26 15:19
    AlexGnatko commented #1260
Progi1984
@Progi1984
You're welcome 😀
Roman Syroeshko
@syroeshko
@Progi1984, how do you manage build process on Travis CI? Do you have some special account for that, or you do this using your Github profile? I can only start and stop builds. Is that all we can do with Travis? How to update Composer there, for example? Thanks.
Progi1984
@Progi1984
@RomanSyroeshko With Travis-CI, I use my Github account. The config is done with .travis.yml at the root of the repository. Composer is automatically updated when a branch/a tag (or release) is added.
Progi1984
@Progi1984
another question ? :)
Roman Syroeshko
@syroeshko
That's all for now. :)
Progi1984
@Progi1984
You're welcome
Roman Syroeshko
@syroeshko
v0.12.1 is out now! All users are encouraged to upgrade to this version.
Adam McDonald
@Nublust
Is there like a list of rules anywhere for how a .docx document needs to be structured in order for PhpWord to read it? On a particular file I'm trying to read I'm getting the error, "BadMethodCallException in AbstractContainer.php line 228: Cannot add Title in Cell."
Roman Syroeshko
@syroeshko
We have some staff like that http://phpword.readthedocs.org/en/latest/elements.html. Question mark there means that the case is supported, but not tested enough.
Geoff Maddock
@geoff-maddock
Is there any known issue with: $section->addTOC(); It generates the table of contents based on Titles, but it doesn't display any page numbers for me.
Roman Syroeshko
@syroeshko
Did you try searching for issues in our GitHub repo?
Geoff Maddock
@geoff-maddock
Yes, I did. I see issues that both seem to indicate that numbering already works, but also one issue reporting a bug that hasn't yet been touched and is nearly a year old. I'm just looking to try to find out if there's something i'm doing wrong, or if there is a bug.
Roman Syroeshko
@syroeshko
Could you please provide link to that issue? I have very limited spare time, so, yes, some issues may wait longer than others.
Geoff Maddock
@geoff-maddock
PHPOffice/PHPWord#430
Is there anything documented about the feature "Insert binary OLE Objects such as Excel or Visio"? I'd like to do this, but I don't see anything that mentions how.
Progi1984
@Progi1984
@geoff-maddock you can see the sample 16
Geoff Maddock
@geoff-maddock
Thanks for the pointer. Looks like it is not set up to work with visio, even though the documentation mentions it.
Travel
@xuezhileikaku
blob
Hello, everyone there is something wrong on line 144 $this->_DocumentSummaryInformation = $ole->getStream($ole->documentSummaryInformation);
according to PHPWord/src/PhpWord/Shared/OLERead.php online 285 $this->docSummaryInfos = count($this->props) - 1;
Marcel
@tlkshadow
Hi everyone. Is there currently a workaround for adding images to the TemplateProcessor?
jamienay
@jamienay
Hi, just wondering if PHPWord is still being actively developed? Also wondering if PHPWord has support for cross-references.
Angel Guevara
@Faryshta
hi, is it possible to use arrays or objects in a word template?

something like having in your word

Name: {$user->fullName} Age: {$user->age}

then on PHP

$templateProcessor->setValue('user', User::findOne($id));
Martin Zajíc
@zajca
Hi guys, it's possible to make table without any border? I want to make two signs on same line and didn't find better way.
ale rimoldi
@aoloe
Hi, not much going on in here...
But I'll try to ask...
In modern versions of Word Table are by default automatically resized to fit the page width... except if <w:tblLayout w:type="fixed"/> is set in <w:tblPr> ...
I'm still a beginner with PhpWord, but I went through the code and the right thing to do seems to add a writeLayout() after writeWidth() in https://github.com/PHPOffice/PHPWord/blob/develop/src/PhpWord/Writer/Word2007/Style/Table.php#L82
That seems to be easy... the only missing bit: how to use on of the properties in https://github.com/PHPOffice/PHPWord/blob/develop/src/PhpWord/Style/Table.php to set it (or which setting to add)
ynsmtkl
@ynsmtkl
Hi everybody
Please, How can i fix Fatal error: Class 'Zend\Validator\InArray' not found ?
Misha
@msphn
cheers mates, is there any way for me to workaround broken pagebreaks for odt export?
Johann Lucas
@JohannLucas
Hey, im trying to read a .docx, modify some value and transform into a .docx again with wordphp, that's possible?
phpword*
Wogan May
@woganmay
How the heck do you center text inside a table cell?
phpdave
@phpdave
@woganmay
$cellHCentered = array('align' => 'center');
$table->addCell(2000, array())->addText('Hello', null, $cellHCentered);
phpdave
@phpdave
Is there any way to set a tables width by twips instead of percent?

I see in the docs

width. Table width in percent.

but I'd rather do

 $table->setWidth(Converter::inchToTwip(7));

then

$table->setWidth(5200);
yea 5000 is my 100%... and 5200 is 104% which doesn't make sense to me
phpdave
@phpdave
Any recommendations on how best to get issues looked at or help? I know what needs to get changed but not sure how the classes are structured so its hard to figure out what classes to modify.
Looking to solve this issue PHPOffice/PHPWord#957 and this issue PHPOffice/PHPWord#956 currenty
kunjan21
@kunjan21
hi, I have a PDF file. Is it posible to convert it into word or docx file by PHPWord??
José Luis Duque Gordillo
@Dapsang

@Progi1984 Hey, we are trying to use PHPWord in a new project but we aren't having much success. The sample is currently not working as expected. Do you have any pointers or are you already working in a hot fix? issue in question: PHPOffice/PHPWord#970

We also noticed that the columns are not working and a lot of styles aren't recognized

Robert Burnham
@burnhamrobertp
Does PHPOffice (specifically PHPWord and PHPExcel) support PHP 7+ ?
sahil
@sahil-github
Does PHPWord support inline css and style using addHtml() function. i am fetching the data from database and making html template and then trying to write word docx by using addHtml but some elements are not write properly. is there any solution for this issue? Please reply.
phpdave
@phpdave
@sahil-github probably not, you'll most likely have to inject it by modifying https://github.com/PHPOffice/PHPWord/blob/c71069022e07d768ec69a5e43e3b6f1fa4a95e84/src/PhpWord/Shared/Html.php