PDF - Getting odd pages only

Hi,

I’m currently trying to get only odd pages from a PDF and having 0 luck, but I can’t imagine I’m the only one in this boat, so any help/ideas would be appreciated. I need the file to save over itself essentially, not create new file.

Options I’ve tried/Result:

  1. UiPath activity - Extract PDF Page Range
    Struggling to select range as page numbers vary and regex doesn’t seem to be appreciated, also on a test of getting only 5 pages out of a 43 page document I used for testing the file size was 1MB for 5 pages, despite the 43 page version being 2.7MB so clearly not being compressed properly, unsure if UiPath/Adobe’s fault. Also can’t use the same file name.

  2. Automating option 1, Print PDF>Adobe PDF>Not as image
    The output file size is massive, from page 2 onwards the text is completely jumbled and the output file is now portrait. I have opened Adobe Distiller and saved settings as “Smallest File Size”, turned autorotate off and embedded all fonts, the result when printing using this profile though is that despite it being a smaller file size, it is still portrait and jumbled text.

  3. Automating option 2, Print PDF>Adobe PDF>As image
    File size is huge and quality is very poor.

  4. Automating option 3, Print PDF>Microsoft Print to PDF
    The output file size is massive and the output file is now portrait.

  5. Automating option 4, Print PDF>PDF Creator
    A free tool (purchase optional to remove ads/upgrades etc) which works fine when it works, but sometimes breaks when it congratulates you on the xth PDF you’ve created, or tries to upgrade etc, so not idea.

I can’t believe that in 2019 there’s not a way to just remove odd/even pages of a document, this isn’t rocket science Adobe…anyone have any experience here please?

Many thanks,

Alex

I’m currently working on this process (which seems clunky), but it’s what I’m resorting to:

Count the number pages in PDF, create a counter up to number of pages, attach PDF window, for each count it iterates through (representing each page), ctrl+click on each page in the “page thumbnail” window, then when all even pages are selected, delete, save.

Surely there has to be a better way!?

I know it’s rude to bump, apologies, but has anyone here worked with splitting PDFs in UiPath and made it out alive? I feel about as safe as Chris Pratt in the raptor den…