Open Kieryn19 opened 7 years ago
Hi, I am trying to add a PDF image into powerpoint. It works in PowerPoint for Mac, but not in Windows versions of PowerPoint.
$shape = $currentSlide->createDrawingShape(); $shape->setName('pdfimage') ->setDescription('pdfimage') ->setPath(dirname(__DIR__).'/PDFs/pdfImage.pdf') ->setResizeProportional(false) ->setWidth(200) ->setHeight(200) ->setOffsetX(10) ->setOffsetY(10); $oWriterPPTX = IOFactory::createWriter($objPHPPowerPoint, 'PowerPoint2007'); $oWriterPPTX->save(dirname(__DIR__).'/PDFs/output.pptx');
@Lews19 PDF file are not supported. I need to make some tests.
@Kieryn19 Hi, Have you got a sample file with an embed PDF file ?
Hi, I am trying to add a PDF image into powerpoint. It works in PowerPoint for Mac, but not in Windows versions of PowerPoint.