PDF自動分割

目前有一個PDF檔,裡面每個分頁都有廠商名稱,請問有什麼方式可以讓相同的廠商名稱自動分割成一個PDF檔並存檔(檔名可以自動是廠商名稱),目前有使用OCR讀取PDF活動,但不知道後續該如何設定,請前輩們教導,謝謝.

@vicky_huang

Welcome to the community

First use a loop and read each page…and collate the page numbers of same suppliers…then use extract pdf activity to extract only the required pages as a separate pdf…

You can collate the information using a dictionary of string ,list …when key will be the supplier name and list will be the list of page numbers

And after collating just loop throughdict.keys and use extract pdf with String.Join(",",dict(currentitem).ToList) …this will join all page numbers with , and we can use in extract

Cheers

HELLO ,Anil_G,請問有類似的範例,可以供我參考嗎?謝謝