Skip to main content

Notifications

Community site session details

Community site session details

Session Id : UYZSC+ntmm9eU9OXUXXEZ5
Power Automate - Building Flows
Answered

Automatically remove pages in a PDF and save new file

Like (1) ShareShare
ReportReport
Posted on 25 Oct 2024 16:13:18 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
 
  • MK-10101830-0 Profile Picture
    55 on 29 Oct 2024 at 18:44:46
    Automatically remove pages in a PDF and save new file
    Thank you all for the support.  I got it working.
     
     
  • Suggested answer
    trice602 Profile Picture
    13,768 Super User 2025 Season 1 on 25 Oct 2024 at 20:22:15
    Automatically remove pages in a PDF and save new file
    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 25 Oct 2024 at 19:46:51
    Automatically remove pages in a PDF and save new file
    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
    13,768 Super User 2025 Season 1 on 25 Oct 2024 at 16:28:37
    Automatically remove pages in a PDF and save new file
    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

     

     
     
     
  • Suggested answer
    takolota1 Profile Picture
    4,859 Super User 2025 Season 1 on 25 Oct 2024 at 16:24:57
    Automatically remove pages in a PDF and save new file
    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 105

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 84 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 62 Super User 2025 Season 1

Overall leaderboard