web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automatically remove p...
Power Automate
Suggested Answer

Automatically remove pages in a PDF and save new file

(1) ShareShare
ReportReport
Posted on by 55
Greetings All!!
 
I'm struggling a bit with this flow, use case below:
 
1.  Trigger event: a new PDF is placed in a folder(Onedrive or SharePoint).
2.  A few of the pages are removed.
3.  A new PDF is saved (Onedrive or SharePoint).
 
I'm open to either Cloud or Desktop versions, but not quite getting how to do this.
 
Kindly,
 
Mike
 
Categories:
I have the same question (0)
  • Suggested answer
    takolota1 Profile Picture
    4,980 Moderator on at
    If you don’t want to use 3rd party actions like Adobe or Encodian, then there is this Azure template that lets you split by page number or by pages where a text is found
  • Suggested answer
    trice602 Profile Picture
    16,034 Super User 2026 Season 1 on at
    Hi,
     
    I like Power Automate for Desktop because it is pretty easy to use and effective for this task.
     
     
    So you can have a manually trigger flow (in cloud or desktop) or automate it with a cloud flow.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
     
     
  • MK-10101830-0 Profile Picture
    55 on at
    Thomas,
    Thank you, I really appreciate it.
     
    I did see that action(Extract pages in a PDF) in PA Desktop, but how do I get it to reference a new file that comes in?  It keeps asking for a specific file.
     
     
  • Suggested answer
    trice602 Profile Picture
    16,034 Super User 2026 Season 1 on at
    Hi,
     
    You can specific the dynamic file by turning the file name into a variable in your cloud flow.  So if you are automating this with the trigger, when a new file is created, you need to pass the file name (or path) to your desktop flow.
     
    To pass the value from Cloud to Desktop, the first step in your Desktop flow is to creating an input variable.  T
     
     
     
    Next in your cloud flow, if your Power Automate for Desktop flow has an input variable, you can pass the variable from cloud to desktop, shown below.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
     
     
  • MK-10101830-0 Profile Picture
    55 on at
    Thank you all for the support.  I got it working.
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard