问题标签 [phppowerpoint]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 在 PHP Codeigniter 中生成 Powerpoint 文件或将生成的 Excel 文件转换为 Power Point
我已经使用 PHPExcel 生成了一个 Excel 文件,我想将文件转换为 power point。有没有直接生成power point文件的替代方法,或者如何将生成的excel文件转换为power point。
php - 在 Linux 服务器上运行 PHPPowerpoint
我试图在 linux 服务器上运行一个使用 phppowerpoint 的项目。它在 Windows 上工作正常。但是当我把我的项目放到网上时,就像在我的 wamp 服务器上一样,它不起作用。似乎它在区分大小写方面存在问题。问题是我没有更改这个库的任何原始文件。我正确地调用了文件的名称,但是每次我运行它时,它都会给我带来要求、包含、路径等方面的问题。我是否需要更改某些内容才能使其在 linux 服务器上工作?这是它显示的第一个错误:
致命错误:require_once():在 /storage/.../phppowerpoint/PHPPowerpoint 中打开所需的 'PHPPowerPoint/Slide.php' (include_path='.:/usr/share/php:/usr/share/pear') 失败。第 30 行的 php
我认为问题出在这条线上
set_include_path(get_include_path() . PATH_SEPARATOR . 'Classes/');
这是这样set_include_path
的,它不会在linux服务器上工作?
php - PHPPresentation - 问题加载然后保存 PP07 文件
我在加载 PowerPoint 2007 (.pptx) 文件然后再次保存时遇到问题。即使不对其进行任何更改,原始文件中的图像最终也会丢失。
在这个片段中,例如在我执行它之后,输出文件只有 25321 字节,而原始文件的长度为 109363 字节 - 由于图像。
不会产生错误。我已经尝试过开发和 0.7.0 分支。
有任何想法吗?
php - 使用 PhpPowerpoint API 作为 powerpoint 阅读器
我正在尝试使用 PhpPowerpoint API 将 powerpoint 动态嵌入到我的网页中,但没有成功。
这是我的代码:
出现的错误是:
'无法打开http://webitcloud.net/PW/1617/weduc/Teste.pptx进行阅读!文件不存在。' 在 /home/webitcloud/public_html/PW/1617/weduc/PhpPresentation/src/PhpPresentation/Reader/PowerPoint2007.php:97
有什么建议么?
php - 使用 PHPPowerPoint 调整幻灯片内的图像大小
我正在使用 PHPPowerPoint 库来生成一些 powerpoint 文件。问题是来自服务器的图像太大,并且打破了幻灯片的限制。这是我用于图像的一些代码:
请注意,我已经设置了宽度和高度,但图像不尊重这些配置。我可以做些什么来使图像尊重我需要的大小或获得响应行为?
编辑:这是函数 createTemplateSlide 的代码:
php - 如何在 PHPPowerpoint 中加载模板
我正在使用手动安装的 PHPPowerpoint(没有作曲家)。该库有效,但在使用模板时无效。
我试过这段代码:
但浏览器显示:
我也试过这个:
这两个都是必需的文件,并且在不使用模板时都可以正常工作:
但是当我尝试加载模板时它不起作用。
我需要为 PHPPowerpoint 使用模板(pptx 文件)。请帮忙。谢谢。
php - How to add two images per slide from mysql (PHP Presentation)?
I am trying to make simple presentation with two images per slide but I don't know how to put 2 images per slide. All images goes to one slide.
Could you please help me with this. This is my code: (THIS CODE IS NOW FIXED)
You can see full code ON THIS LINK
php - 无法更改 PHPPowerpoint 幻灯片的宽度和高度
嗨,我使用 PHPpowerpoint 库通过 PHP 生成 Power Point 演示文稿,我生成成功但我的问题是生成的 PPT 的页面设置是宽度:10 英寸和高度 7.5 英寸。我需要更改页面的宽度和高度。我在哪里更改库中的宽度和高度。提前致谢
我添加了我的代码并从https://php-download.com/package/phpoffice/phppowerpoint下载了库