Page 1 of 1

Select and delete an object on last page

Posted: Thu May 16, 2024 1:04 pm
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

Re: Select and delete an object on last page

Posted: Thu May 16, 2024 2:14 pm
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

Re: Select and delete an object on last page

Posted: Thu May 16, 2024 4:31 pm
by SBLESS
No I don't think so. I can't seem to find that one.
I have attached a list of my actions

Re: Select and delete an object on last page

Posted: Thu May 16, 2024 4:51 pm
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

Re: Select and delete an object on last page

Posted: Thu May 16, 2024 5:32 pm
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

Re: Select and delete an object on last page

Posted: Thu May 16, 2024 5:45 pm
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

Re: Select and delete an object on last page

Posted: Fri May 17, 2024 10:05 am
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

Re: Select and delete an object on last page

Posted: Fri May 17, 2024 10:13 am
by SBLESS
https://we.tl/t-Kvj4V967JM

Click above to see my action list

Re: Select and delete an object on last page

Posted: Fri May 17, 2024 12:48 pm
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.

Re: Select and delete an object on last page

Posted: Fri May 17, 2024 3:04 pm
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.

Re: Select and delete an object on last page

Posted: Fri May 17, 2024 5:03 pm
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