【AI辅助办公】PDF转PPT,移除水印

PDF转PPT将PDF上传链接即可转换成PPT。 https://www.camscanner.com/pdftoppthttps://www.camscanner.com/pdftoppt​​​​​​​​​​​​​​移除水印

第一步:打开视图-宏

第二步:输入宏名(可以是人以文字、字母或数字加字母,但不能是纯数字)

第三步:点击创建

第四步:复制以下代码

代码用ChatGPT生成,告诉它,你要实现的功能,生成相应的宏代码,宏代码是VB语言

以下是用于删除所有页面中包含特定文本内容的 PowerPoint VBA 宏代码:

vbscript 复制代码
Sub DeleteTextContainingChinaUniversity()
    Dim oSlide As Slide
    Dim oShape As Shape
    Dim searchText As String
    
    searchText = "中国大学"
    
    For Each oSlide In ActivePresentation.Slides
        For Each oShape In oSlide.Shapes
            If oShape.HasTextFrame Then
                If InStr(1, oShape.TextFrame.TextRange.Text, searchText, vbTextCompare) > 0 Then
                    oShape.Delete
                End If
            End If
        Next oShape
    Next oSlide
End Sub

如果您想要删除所有页中相同位置的文稿(图片、文字等),可以使用以下修改后的宏代码:

vbscript 复制代码
Sub DeleteSamePositionShapesOnAllSlides()
    Dim oSlide As Slide, oShape As Shape
    Dim shapeToDelete As Collection
    Dim shape As Shape
    
    On Error Resume Next

    ' Collect shapes with the same position as the first selected shape
    Set shapeToDelete = New Collection
    If ActiveWindow.Selection.ShapeRange.Count > 0 Then
        Dim firstShape As Shape
        Set firstShape = ActiveWindow.Selection.ShapeRange(1)
        
        For Each oSlide In ActivePresentation.Slides
            For Each oShape In oSlide.Shapes
                If oShape.Top = firstShape.Top And oShape.Left = firstShape.Left _
                    And oShape.Height = firstShape.Height And oShape.Width = firstShape.Width Then
                    shapeToDelete.Add oShape
                End If
            Next oShape
        Next oSlide
    End If

    ' Delete collected shapes
    For Each shape In shapeToDelete
        shape.Delete
    Next shape
End Sub

第五步:删除原来的"宏代码"

第六步:将复制的文字粘贴到打开的"宏代码"空白处

第七步:关闭或最小化"宏代码"文档

第八步:在原文档中点击选中要删除的图片或其他对象

第九步:点击宏-运行

至此,所有相同位置的文搞对象都已经删除,点击"保存"就可以了

这样,你就可以把PDF变成自己的原创PPT,做任意修改了。

相关推荐
AI大模型-小华19 小时前
ChatGPT充值后Codex还是反复读取项目?用上下文复用率判断Plus还是Pro
chatgpt·ai编程·codex·chatgpt plus·chatgpt pro·chatgpt充值
仙逆GPT20 小时前
ChatGPT、Codex实战:离开电脑后,怎么用手机继续控制任务?
chatgpt·ai编程·codex·手机控制·remote
xcLeigh20 小时前
中英文提示词对比:中文提示词与英文提示词的选择策略
人工智能·chatgpt
yuhulkjv33521 小时前
ChatGPT 复制有星号导出文档杂乱?AI 导出鸭一站式清理格式解决导出难题
人工智能·ai·chatgpt·ai导出鸭
AI导出鸭PC端1 天前
AI 导出鸭一站式转换工具,ChatGPT 内容怎么生成 word 无需手动复制排版
人工智能·chatgpt·word·豆包·ai导出鸭
孤狼GPT1 天前
GPT-5.6降价之后,ChatGPT与Codex开发成本下降,工程复杂度为什么反而上升?
chatgpt·codex·ai工程·多agent·gpt-5.6
仙逆GPT1 天前
ChatGPT、Codex教程:Record & Replay怎么把重复操作变成可复用Skill?
chatgpt·自动化·codex·skills
AI大模型-小雄1 天前
ChatGPT充值后Codex总改无关文件?用AGENTS.md限制项目修改范围
chatgpt·ai编程·codex·chatgpt plus·chatgpt pro·chatgpt充值
starzy19901 天前
LangChain深度解析:模型、链、Agent三大核心,解锁大模型落地的正确姿势
chatgpt·langchain
AI大模型-小华1 天前
Codex 三方充值快速入门指南
java·前端·数据库·chatgpt·ai编程·codex·chatgpt pro