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.
Fatal error: Uncaught exception 'Exception' with message 'Image does not exist.' in C:\xampp\htdocs\phpdocx\classes\AutoLoader.inc(63) : eval()'d code:55 Stack trace: #0 C:\xampp\htdocs\phpdocx\classes\CreateDocx.inc(2168): PhpdocxLogger::logger('Image does not ...', 'fatal') #1 C:\xampp\htdocs\phpdocx\img.php(18): CreateDocx->addImage(Array) #2 {main} thrown in C:\xampp\htdocs\phpdocx\classes\AutoLoader.inc(63) : eval()'d code on line 55
I am using Public url only...but i got error like above mention one
my script is:
addText('In this first example we just add an image with a dashed border:');
$options = array(
'src' => 'http://wallpapersadda.com/wp-content/uploads/2014/12/wildlife-wallpapers-animals-nature-images-array-wallwuzz-hd-wallpaper-3194-animal.jpg',
'imageAlign' => 'center',
'scaling' => 50,
'spacingTop' => 10,
'spacingBottom' => 0,
'spacingLeft' => 0,
'spacingRight' => 20,
'textWrap' => 0,
'borderStyle' => 'lgDash',
'borderWidth' => 6,
'borderColor' => 'FF0000',
);
$docx->addImage($options);
$docx->addText('This is a closing paragraph.');
$docx->createDocx('example_addImage_1');
?>