Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Hello,
Impossible because of a bug in CreateDocx.inc:
----
public function transformDocument($docSource, $docDestination, $tempDir = null, $options = array(), $version = null)
{
if (file_exists(dirname(__FILE__) . '/TransformDocAdv.inc')) {
...
}
}
-----
=> the TransformDocAdv.inc is not in the same directory as CreateDocx.inc
And even by deactivating this useless test (thanks to namespaces/autoloader), the TransformDocAdv.inc bugs because of useless require_once, include_once
and even by deleting those useless includes (thanks to namespaces/autoloader), it bugs later on with commands like:
passthru('php ' . dirname(__FILE__) . '/../lib/convert.php -s ' . $newDocx . ' -t ' . $tempDoc . ' -d ' . $docDestination . ' -o ' . $options['odfconverter'] . ' -p ' . $odfconverterPath . $outputDebug);
all paths /../lib are wrong because of new tree hierarchy, it sould be more something like /../../../lib
Maybe the namespace version of phpdocx is in beta ?
We use phpdocx in a symfony2 project indeed, we must fallback to the strandard version of phpdocx (no namespace) I guess, waiting for full unit tests to be covered
We use 4.1 business edition
Thanks for your feedback
Hello,
Thanks, we're checking the issue. It's not beta but the first version that includes NS support; we're going to send you a new class by email and if eveything is fine we'll upload a new package.
Regards.
ok thanks
Don't forget the other patch for RepairPDF.inc please :)
Everything is working fine with the classic version of phpdocx 4.1 for the pdf convertion