Select variable range of pages

Post Reply
User avatar
JimmyHartington
Advanced member
Posts: 311
Joined: Tue Mar 22, 2011 7:38 am

Select variable range of pages

Post by JimmyHartington »

I am a bit stumped with an action list I am trying to make.
Maybe I am missing something obvious.

I use a tool to create a table of contents based on bookmarks in a pdf.
It is added as the first pages of the pdf.
It could be 1, 2, 3 etc number of pages. It is determined automatically by the program.
Afterwards I would like to process the pdf with Pitstop.

On the pages with the TOC I will need add graphics at the top and set page labels.
On all the other pages I need to add pagenumber and set another version of page labels.

The TOC is set with Courier-Bold. Which should not be used anywhere else in the pdf.

I tried to
select page range 1-10
select font by name Courier-Bold
AND
Add copied graphics.

But that did not work.

What am I missing?
loicaigon
Advanced member
Posts: 384
Joined: Wed Jul 10, 2013 10:22 am

Re: Select variable range of pages

Post by loicaigon »

Hi Jimmy,

I think you problem comes with the mistype of selection.

When you do:
select page range 1-10
select font by name Courier-Bold
AND

You try to combine two different kind of objects: a page AND a font so it doesn't work.
Here is what you can do:

You may want to…
select page range 1-10
select objects if page is selected
select font by name Courier-Bold
AND
select page if content is selected
Add copied graphics

In short:
  • Get pages
  • Get objects
  • Find font among selected objects
  • Get pages where those object reside
  • Add graphics
HTH
Loic
User avatar
JimmyHartington
Advanced member
Posts: 311
Joined: Tue Mar 22, 2011 7:38 am

Re: Select variable range of pages

Post by JimmyHartington »

Ahh. It was something I missed.
Of course I can not add graphics when I end up not having at page selected.
I will try this.
User avatar
JimmyHartington
Advanced member
Posts: 311
Joined: Tue Mar 22, 2011 7:38 am

Re: Select variable range of pages

Post by JimmyHartington »

Hi Loic

That work with selecting the pages with the TOC.
Now I have trouble selecting all pages EXCEPT the TOC.
I probably need to place a NOT the correct place.

Now I have:
Select all pages
Select objects if page is selected
Select font Courier-Bold
NOT
Select page if content is selected
- Do changes -

But it seems to select all the pages.
User avatar
JimmyHartington
Advanced member
Posts: 311
Joined: Tue Mar 22, 2011 7:38 am

Re: Select variable range of pages

Post by JimmyHartington »

I have ended up splitting it into 2 actions lists.

In the first Action List I fix the TOC.
I also set page labels on the TOC pages.

In the other action, my selection is then
Select All Pages
Select Pages with Page Label (to select the TOC pages)
NOT
- Do changes -

And since this process is running in Switch I just add the 2 action lists in the configurator.
loicaigon
Advanced member
Posts: 384
Joined: Wed Jul 10, 2013 10:22 am

Re: Select variable range of pages

Post by loicaigon »

Hi Jimmy,

I think you need to AND all pages and NOT pages with page label
  • select pages - all
  • select pages with page label
  • NOT
  • AND
  • Do something
The AND is necessary because NOT will select "everything" but the pages with page labels (including Document and objects).
So AND makes sure that you still refer to the all pages selection and that you only process pages eventually.

HTH
Loic
User avatar
JimmyHartington
Advanced member
Posts: 311
Joined: Tue Mar 22, 2011 7:38 am

Re: Select variable range of pages

Post by JimmyHartington »

loicaigon wrote: Fri Apr 19, 2024 10:23 am I think you need to AND all pages and NOT pages with page label
It works with just the NOT.
Maybe because both actions are selecting pages?
loicaigon
Advanced member
Posts: 384
Joined: Wed Jul 10, 2013 10:22 am

Re: Select variable range of pages

Post by loicaigon »

Oh my bad then.

NOT is a bit tricky because it selects everything but the selection concerned by the NOT.
I believed it would explain your issues.

Loic
Post Reply