跳到主要内容

1 篇博文 含有标签「base64ToBinary」

查看所有标签

在 Power Automate 中自动合并拖放到 Dropbox 文件夹中的每个 PDF 文件:6 步动态工作流程

· 阅读需 25 分钟
SEO and Content Writer

“合并这些PDF”工单最痛苦的部分不是合并本身,而是…… 知道运行时文件夹中包含什么内容名称会更改,文件会添加和删除,有人在下午 4:55 添加了第五个文档。本教程将构建出完全相同的模式。 动力自动化PDF4me 合并多个 PDF 文件Dropbox以及一个“应用到每个”循环。六个流程操作。零硬编码文件名。当有新文件到达时,监控文件夹中当前的所有 PDF 文件都会被拼接在一起,输出名称会包含文件计数,因此每次运行都具有唯一标识。

流程概览
1. When a file is created
Dropbox trigger on /blog data/merge files dropbox. Fires the moment any file lands.
2. List files in folder
Dropbox action on the same folder. Returns every current file as an array of metadata objects.
3. Initialize variable
Name Files, Type Array. Buffer for the binary content of every file.
4. Apply to each
Loop body(List_files_in_folder). Inside, Get file content by Id, then Append to array with base64ToBinary on $content.
5. Merge multiple PDFs
PDF4me action. Body/docContent the Files array, Output File Name Output.pdf. One consolidated PDF out.
6. Create file
Dropbox /blog data/merge blog template/output. File Name expression concat(merge-, length(List_files_in_folder), .pdf).