Pdf page sort out

Hi all, it’s my first post here and started to uipath. In one of my interview, how to sort out odd and even pages in pdf ? I tried and I couldn’t. Please help

Hi @Sundaravalli

Welcome to the community!

Maybe you can try to elaborate the question to address the issue like pasting the screenshots here or adding more info to the question !

cheers :smiley:

Happy learning :smiley:

1 Like

Hi @Sundaravalli, you could something like this: Create a variable “PageNumber” to hold the page number from PDF file. In Read PDF Text activity where we give Range, use this variable PageNumber.

Use a IF-ElSE condition to check if variable is divisible by 2 or not (PageNumber mod 2 = 0) and then perform the necessary action.

Hope this helps

1 Like