PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

Insert PDF image

Open Kieryn19 opened this issue 8 years ago • 2 comments

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');

Kieryn19 avatar Jan 24 '17 22:01 Kieryn19

@Lews19 PDF file are not supported. I need to make some tests.

Progi1984 avatar Mar 13 '17 13:03 Progi1984

@Kieryn19 Hi, Have you got a sample file with an embed PDF file ?

Progi1984 avatar Sep 02 '24 09:09 Progi1984