Select and delete an object on last page

Post Reply
SBLESS
Newbie
Posts: 10
Joined: Wed Nov 22, 2023 2:24 pm

Select and delete an object on last page

Post by SBLESS »

Hi Everyone

I have tried to delete objects from page 2 of a 2page pdf.
The action deletes the same objects from Page 1. I want to delete only from page 2.

Tried to attach the action but I get the message - Invalid file extension

Any help will be really appreciated
KalamazooDLM
Newbie
Posts: 1
Joined: Tue Mar 26, 2024 10:41 am

Re: Select and delete an object on last page

Post by KalamazooDLM »

This might sound obvious, but have you chosen the action to run on Page 2 using the Action List palette > Run On:

Options are - User Selection / Current Page / Pages / Complete Document
SBLESS
Newbie
Posts: 10
Joined: Wed Nov 22, 2023 2:24 pm

Re: Select and delete an object on last page

Post by SBLESS »

No I don't think so. I can't seem to find that one.
I have attached a list of my actions
loicaigon
Advanced member
Posts: 631
Joined: Wed Jul 10, 2013 10:22 am

Re: Select and delete an object on last page

Post by loicaigon »

Here is how i would do:
- select page range: 2
- select objects if page is selected
- use whatever selector that would target the objects (ex: select color, stroked with spot — Select Line Art — AND)
- AND
- Log Selection: "Found objects:"

Then you get a count of objets in the navigator.

HTH
Loic
Loïc Aigon
Enfocus PitStop Manager
SBLESS
Newbie
Posts: 10
Joined: Wed Nov 22, 2023 2:24 pm

Re: Select and delete an object on last page

Post by SBLESS »

Found objects works ok but it finds them on page 1 and 2
I only want to delete the objects on page 2
loicaigon
Advanced member
Posts: 631
Joined: Wed Jul 10, 2013 10:22 am

Re: Select and delete an object on last page

Post by loicaigon »

Did you use the "Select pages, range:2" then followed by the select objects if page is selected?
It's the real starting point. Then you want to combine those objects on page 2 with your more generic search.

Have a look at this zip, it includes a pdf with objects on page 1 and 2 but the selection is only for those on page 2
https://fromsmash.com/z29sCh.PMt-ct
Loïc Aigon
Enfocus PitStop Manager
SBLESS
Newbie
Posts: 10
Joined: Wed Nov 22, 2023 2:24 pm

Re: Select and delete an object on last page

Post by SBLESS »

ERROR
Sorry, the board attachment quota has been reached.

This is the message I get when I try and upload the action. Its a .zip file and only 66KB

I am selecting Page 2 then the items I need to delete. See below

Select Page Range (I select Page 2)
Select Objects with width = 6mm
Select Objects with Height = 6mm
Remove selection
SBLESS
Newbie
Posts: 10
Joined: Wed Nov 22, 2023 2:24 pm

Re: Select and delete an object on last page

Post by SBLESS »

https://we.tl/t-Kvj4V967JM

Click above to see my action list
loicaigon
Advanced member
Posts: 631
Joined: Wed Jul 10, 2013 10:22 am

Re: Select and delete an object on last page

Post by loicaigon »

You are missing an important part…associating your selection. Otherwise any selection discards the preceeding one!

Image

The "OR" depends if you need that the width and height MUST be respected for the object (the it would be a AND) or if only one of the two is sufficient (then it's a OR)

The last AND is necessary to condition your search only to the objects found in page 2

The beginning of your action list probably need some logical operators too.
Loïc Aigon
Enfocus PitStop Manager
SBLESS
Newbie
Posts: 10
Joined: Wed Nov 22, 2023 2:24 pm

Re: Select and delete an object on last page

Post by SBLESS »

Yes I agree about the logical part of the beginning. The reason it's like it is, is because it worked. The last bit doesn't though, if that makes sense.
I will give this a go and post if it works.
I am on leave next week so it will be the week after that I have a look at it.
Thank you for all your advice.
SBLESS
Newbie
Posts: 10
Joined: Wed Nov 22, 2023 2:24 pm

Re: Select and delete an object on last page

Post by SBLESS »

All working now.
I had the last set of actions in the wrong order.
Here is a link for the action list

https://we.tl/t-1QQpGWk2ud
Post Reply