Split PDF with leading zeros

Discussion in 'Automator' started by TheLoneRoger, Aug 1, 2018.

  1. TheLoneRoger

    TheLoneRoger New Member

    Aug 1, 2018
    Likes Received:
    I'm working on an app which needs to be able to read pages from a pdf sequentially.
    The app cannot read pdfs, so I'm using an Automator to split the pdf and convert it to jpegs, but the pages are not sorting correctly because the SplitPDF Action numbers the pages without leading zeros.

    I'm totally new to Automator, in fact I just modified a script that i found online, by just adding the jpeg conversion stage, but from what I can see, there is no way to edit an Action, is that right?
    In which case how might I script a process that will split a pdf into pages that are numbered with leading zeros i.e Page001, Page002, NOT Page1, Page2 etc.?
    TheLoneRoger, Aug 1, 2018
    1. Advertisements

  2. TheLoneRoger

    Cory Cooper Moderator

    May 19, 2004
    Likes Received:
    Hello and welcome.

    I don't have much experience with Automator/AppleScript. Maybe the folks over at MacScripter could lend a hand.

    Let us know if they provide a solution,

    Cory Cooper, Aug 4, 2018
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.