简体   繁体   English

在 officer 中编辑现有 pptx 的文本 R package

[英]Editing text of an existing pptx in officer R package

I just want to know if there is a way to EDIT TEXT of an existing powerpoint presentation with officer package in R.我只是想知道是否有一种方法可以在 R 中使用 package 官员编辑现有 powerpoint 演示文稿的文本。

The base presentation must be edited with updated values monthly, while the images inside remains the same.基本演示文稿必须每月使用更新值进行编辑,而内部图像保持不变。 I know I can locate the attributes of that text values with functions like layout_summary(), layout_properties(), slide_summary(), etc., but can't get a way to edit its values.我知道我可以使用 layout_summary()、layout_properties()、slide_summary() 等函数找到该文本值的属性,但无法找到编辑其值的方法。

Thanks in advance,提前致谢,

I solved this problem by creating a version of the powerpoint slides that contains the images and layout that I want, and any text that stays the same between each version (but does not include any of the text that needs to be edited).我通过创建一个版本的 powerpoint 幻灯片解决了这个问题,其中包含我想要的图像和布局,以及在每个版本之间保持相同的任何文本(但不包括任何需要编辑的文本)。 Then read that template version in and add text to it using any of the ph_with functions.然后读取该模板版本并使用任何 ph_with 函数向其中添加文本。 This allows you to keep images an formatting, and control text.这使您可以保持图像的格式并控制文本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM