Page 1 of 2

Page Orientation

Posted: Fri Apr 05, 2019 2:59 pm
by Robbie
Im trying to make a action flow with page orientation.
I got a PDF file with Landscape and portrait pages. I want to select the landscape pages in the pdf and ad a extra borden with tekst on the left and right of the page. and on the portrait pages the extra border with text should go on top and bottom of the page.
Im trying with a select all and page orientation but i can not make it to work. it still does not select the right page it just does every page.

Re: Page Orientation

Posted: Sat Apr 06, 2019 11:36 am
by abailescollins
You don't say how you are selecting pages, but you need 'Select by Page Orientation' > Landscape
Attach your Action List if you get stuck

Re: Page Orientation

Posted: Mon Apr 08, 2019 3:27 pm
by Robbie
Pagina orientatie.eal.zip
(220.68 KiB) Downloaded 609 times
Oh ok here is my action list. it does not matter what i select in the "Select by page orientation" it just does alle the pages

Re: Page Orientation

Posted: Mon Apr 08, 2019 8:07 pm
by LasseThid
Robbie: I took the liberty to look at your action list and I think I understand what's going wrong for you.
Basically first you Select all and then Select pages by orientation, then in 01 Afmaskeren you again Select all. This means that everything in the pdf is selected, not just on the pages you selected in the beginning of the action list. The same thing happens in 02, 03, 04 and 05.
I modified your action list to be Select all, Select by page orientation Landscape and the added a NOT to deselect the landscape pages, then I added these two after every Select all in 01, 02, 03, 04 and 05. I then changed the second Select pages by orientation to Portrait and again added a NOT and inserted these two after every Select all in the second 01, 02, 03, 04 and 05.
I think this gives you the result you're looking for with one exception. The text on the landscape pages is not rotated correctly.
Perhaps Andrew can find something I missed? :lol:

By the way... I think you can delete the Select all, Select pages by orientation and NOT outside of the 01, 02, 03, 04 and 05 parts and still get the same result...

Skärmavbild 2019-04-08 kl. 20.05.25.png
Skärmavbild 2019-04-08 kl. 20.05.25.png (27.14 KiB) Viewed 15945 times
Pagina orientatie fixed.eal.zip
(222.11 KiB) Downloaded 551 times

Re: Page Orientation

Posted: Tue Apr 09, 2019 8:37 am
by Robbie
Thanks guys i just staring with pitstop so this is a great help. Im using pitstop pro 2017 and iff i import the fixed action im getting a warning that the action is made by a newer version and some items of the action wil be deleted. Mayby you can save the action in older 2017 version.

Re: Page Orientation

Posted: Tue Apr 09, 2019 4:10 pm
by LasseThid
Unfortunately I cant save it as an older version, but what I did was to change the orientation in your Select pages by orientation from Portrait to Landscape and then add a NOT after that selection. i.e. the action list looks like this.

Select all (This selects all pages)
Select pages by orientation (Landscape instead of Portrait) (This selects all Landscape pages)
NOT (Removes Landscape pages from selection)

I did this everywhere where you have a Select all.

In the second repetition you select Portrait instead of Landscpe and do the same.

I hope it's ok I post a screenshot of the action list.
Skärmavbild 2019-04-09 kl. 16.02.01.png
Skärmavbild 2019-04-09 kl. 16.02.01.png (70.07 KiB) Viewed 15926 times

Re: Page Orientation

Posted: Wed Apr 10, 2019 11:41 am
by Robbie
Thanks it works nice. i made some small changes to make it work for me. But if i have just a landscape page the text is not there. with a portrait page is fine and if i have a mixed PDF its fine.
Pagina orientatie 10042019.eal.zip
(226 KiB) Downloaded 611 times
Schermafbeelding 2019-04-10 om 11.40.17.png
Schermafbeelding 2019-04-10 om 11.40.17.png (126.55 KiB) Viewed 15895 times

Re: Page Orientation

Posted: Fri Apr 12, 2019 11:53 am
by LasseThid
Hi Robbie.
It's funny it works with portrait and mixed pages, but not with landscape only.
I did however find a couple of things that I changed to make it work better.
In the second of the 05 text invoegen the first Select by page orientation it's set to Landscape, but should be Portrait.
In the Add object the offset is set to X=40 and Y=60, which means it's places outside of the page, hence not showing...
Then you Select last added object and follow that by a Rotate object which means the text is rotated as well.
Changing the Y offset to -3 and removing the Select last added object and Rotate object made the text appear.

Re: Page Orientation

Posted: Wed Apr 17, 2019 3:32 pm
by Robbie
Hi LasseThid,

Thanks for the support but still can not get it to work. I want to have the text (file information) on the short end's of the page (so with a portraid page it schould be on top and bottom, and with a landscape page on left and right side. there was a reason of putting the text outside the mediabox al together so it was there to copy it to the clipboard.
But still i can not get it to work.

Re: Page Orientation

Posted: Thu Apr 18, 2019 10:34 am
by abailescollins
Hi Robbie
Ok, let's take this stage by stage.
Can you try the attached Action List and Test file.
This increases the Media Box size by 20 mm as requested.
Can you test this and see if it does what you want.
You'll need to look at the Media and Trim Boxes.
The other boxes are not needed at the moment (if at all).

Once we get this part ok we can move onto the next part of the story.

Re: Page Orientation

Posted: Thu Apr 18, 2019 4:11 pm
by Robbie
abailescollins wrote: Thu Apr 18, 2019 10:34 am Hi Robbie
Ok, let's take this stage by stage.
Can you try the attached Action List and Test file.
This increases the Media Box size by 20 mm as requested.
Can you test this and see if it does what you want.
You'll need to look at the Media and Trim Boxes.
The other boxes are not needed at the moment (if at all).

Once we get this part ok we can move onto the next part of the story.
Good idea mayby im just stuck somewhere in the actions. this works fine for diferent pages inside 1 PDF but if i have 1 pdf file with 1 page landchape then its not working.

Re: Page Orientation

Posted: Thu Apr 18, 2019 7:50 pm
by abailescollins
Can you send me that file. It may not be 'landscape'. It maybe Portrait with a rotation

Re: Page Orientation

Posted: Fri Apr 19, 2019 8:49 am
by Robbie
Here is my action until now. It does not matter if i make a portrait page and rotate that ore a landshape page

Re: Page Orientation

Posted: Fri Apr 19, 2019 12:11 pm
by abailescollins
Can you send me the actual PDF file that my Action List does not work on.
Then I can investigate the problem.
You can mail it to me at Andrewb@enfocus.com or maybe contact our support team if you have a maintenance contract. support@enfocus.com

Re: Page Orientation

Posted: Fri Apr 19, 2019 1:06 pm
by Robbie
I send the files to your email. hope you can find out what is happening for what i see now its some sort off bug somewhere.. :? :?