You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to convert a word file to PDF in order to process it afterwards (it has to be processed as a PDF), but if I include an image to my word, the lib wil crash.
Steps to Reproduce
<?phprequire __DIR__ . '/vendor/autoload.php';
$reader = IOFactory::createReader();
//$document is a Symfony\Component\HttpFoundation\File\UploadedFile object.$word = $reader->load($document->getPathname());
$word->save($document->getPathname(), 'PDF');
### Expected BehaviorShould convert my word file into a pdf file of the same name, erasing the word file in the process.
### Current BehaviorWhenI execute this code snippet, i get the error `Warning: fopen(): Filename cannot be empty`, coming from PhpOffice\PhpWord\Element\Image line 377.### Context
- PHPVersion: 7.4
- PHPWordVersion: 0.17.0You'll find the docx file i use attached.
[test.docx](https://github.com/PHPOffice/PHPWord/files/5437779/test.docx)
The text was updated successfully, but these errors were encountered:
Describe the Bug
I am trying to convert a word file to PDF in order to process it afterwards (it has to be processed as a PDF), but if I include an image to my word, the lib wil crash.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: