Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PDF separate pages with (3 digit) page number prefix...? (Like PDF Bee!)

Contributor ,
Dec 13, 2018 Dec 13, 2018

I updated OS X to 10.13.6 and was quit shocked to discover I can't use PDF Bee anymore... I use PDF Bee to make separate PDF's of all the pages in my InDesign documents with the page number as a prefix in THREE numbers.

Now I know that InDesign can export pdf's as separate pages but it can only add the page number at the end... not good for my use. Another problem is that it adds the numbers like (for instance) 1, 43, 121 and not 001, 043 and 121 (so always with three digits).

I also know Acrobat can split pdf's and add a number in front of the PDF file but 1. it does not use the actual page number (it just numbers the PDF's chronologically) and 2. it also simply adds 1, 43, 121 and not 001, 034, 121.

So... I'm screwed! I have to create hundreds of PDF's every week with the EXACT page number in three digits in front of the file name but I can't find any way to get that done right now. HELP!

Anyone knows about a script that can do this? (PDF Bee is a fancy script, after all.)

8.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Dec 19, 2018 Dec 19, 2018
Translate
Community Expert ,
Dec 13, 2018 Dec 13, 2018

Hi,

I do know nothing about PDF Bee.

I'd ask the developer of that script to make it compatible with OS X 10.13.6 if that is the real source of problems.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

Thanks, but obviously that's the first thing I tried. However, PDF Bee isn't being worked on anymore, the project has been abandoned, so it won't be made compatible with anything at all anymore.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

What was the last system configuration of OS and InDesign PDF Bee ran successfully?

Maybe you can do a second partition with your old OSX and make your machine a dual-boot system?

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

OS 10.11.#. But this is a company computer so I am not allowed to do funny things like dual-boots... Besides, the new InDesign version doesn't work on 10.11.#.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

Aha! So it's more likely that InDesign CC 2019 cannot run PDF Bee where perhaps an earlier version did?

You can try two things:

1. Install that earlier version of InDesign where PDF Bee is able to run and use the earlier version of InDesign.

2. You can try to run PDF Bee from a special folder that uses an older ExtendScript version from the newer InDesign.

To do concrete suggestions I have to know:

A. What's the version of InDesgn you can run PDF Bee successfully.

B. Do we talk about an AppleScript or an ExtendScript (JavaScript) with PDF Bee?

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

Thanks for al the help, Uwe! But no, it's the OS that is causing the problems. As soon as I try to run PDF Bee I get a message it can't be run with my current OS.

BTW PDF Bee is (afaik) a standalone script. It's run as a program and when you let it do its job it automatically opens documents in InDesign and creates separate pdf's of it with the current page number as a prefix (in 3 digits).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

Ok. Then we have to look after a different product.

Don't know if it will exactly fit your needs:

Automate InDesign printing and exporting | Output Factory

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

Wow, that looks very interesting! Thanks! I see it has a trial version: I will give that one a try!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

You could also script renaming from the finder. The AppleScript below will add zeros to any files selected in the Finder that start with numbers 1-99. Test on a small number of files in Mojave—I'm using HS

tell application "Finder"

    try

        set the s to the selection

    end try

    set p to {"1", "2", "3", "4", "5", "6", "7", "8", "9"}

    repeat with x in s

        set n to name of x

        set n2 to characters 1 thru 2 of n

        if item 1 of n2 is in p and item 2 of n2 is in p then

            set name of x to "0" & n

        else if item 1 of n2 is in p then

            set name of x to "0" & n

        end if

    end repeat

end tell

Screen Shot 1.png

Screen Shot 5.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

In complement with Laubender answer, you could have a look to this product: One-click manual export and print [axaio]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

Thanks for the script, rob! Might be a basic solution but it would need a few more steps to get the job done.

And thanks for the tip, jmlevy, however that product looks a lot more simple and basic than Output Factory while it costs more than twice as much. I'll keep it in mind though.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

Thanks for the script, rob! Might be a basic solution but it would need a few more steps to get the job done.

I was assuming you would run the script I posted after you scripted the single page PDFs with page numbers as the prefix, and all you needed was the leading zeros? What other steps do you need? A leading zero script could also target a folder of files rather than a selection of files. It is a Finder script, but could be run from the ID Scripts panel

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

After Extracting as separate pages in Acrobat Pro, you can rename/renumber in Bridge. If you save the preset (and have Bridge open), it should only add an extra minute to the process.

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

I can't find any information on how to add the actual page number to the name of a pdf file with Bridge...? You can rename files indeed but I don't just want to rename them with a random or sequential number. It has to be the exact number of the page.

And btw it's not necessary to use Acrobat to extract separate pages because InDesign can do that by itself already. The option to do that is GREAT but it's a shame it only let's you add a number at the end of the filename and that you can't set the amount of digits.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

The files will be sequentially numbered coming from Acrobat. View them by file name in order in Bridge and Bridge will follow the same numbering.

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

IDEAS-Training​ That three digit option is interesting but the sequential numbering isn’t. I need the number to be the same as the actual page number. Suppose I made a pdf of pages 25 to 35: this option will renumber them to 1 to 10. This option might be interesting if I made a pdf of ALL pages in one go, but that won’t happen too often.

@Stephen_A_Marsh Sounds interesting!

@rob day Understood but I still don’t know how to script the prefixes. I didn’t only need the zero’s.

(Why don’t Stephen en rob show up as selectable option when I type @...?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

You can choose what the starting number is, so if you made a PDF of pages 25-35, you would simply start the numbering at 25.

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

Can you provide some example filenames with the page number exported from InDesign?

Such as:

my great filename 1.pdf

another_file-10.pdf

yet_another_one_156.pdf

And how they should look after renaming...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

@Stephen: who are you asking?

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

My reply was to “J van E”… This is visible from a desktop browser, however a mobile browser does not indicate who the reply is directed to (I have been caught before with the lack of info provided by mobile browsers, I am guessing that this is how the Jive forum is designed to serve up the view to mobile browsers).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

IDEAS-Training​ Ah, that helps but I also usually skip quite a few pages when creating pdf’s so what if I made pdf’s of pages 52, 58, 64 And so on? In that case I might as well renumber them manually. But okay, the option has become more interesting.

@Stephen_A_Marsh Filenames would be (exact real world examples after creating them with InDesign):

Visie 01-2019_1.pdf

Visie 01-2019_42.pdf

Visie 01_2019_112.pdf

And they would have to become:

001_Visie 01-2019.pdf

042_Visie 01-2019.pdf

112_Visie 01-2019.pdf

And as I explained above I won’t always have ALL pages available as pdf. Out of for instance 128 pages I probably will have to pdf 75 pages.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

>but I also usually skip quite a few pages when creating pdf’s ...

OK--that would be important to know. Did I miss that in a previous post?

Depending on quantity, it might be better to output the entire file, renumber, and keep page pages you want.

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 13, 2018 Dec 13, 2018

@rob day Thanks, I will check it out!

@IDEAS-Training No, sorry, my bad, I didn’t made this clear before. If nothing else works outputting the entire file might be an option indeed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2018 Dec 13, 2018

First off, I think Rob’s approach is best to have the export create the names as required. The caveat being that this is Mac OS only for Rob’s script. This could likely be scripted for MS Win OS or in a cross platform InDesign JavaScript.

OK, I believe that I have a workable solution in Bridge. Pro – it is cross platform, Con – It requires a second workflow step. The batch rename settings can be saved for future use:

batch-rename-regex.png

To save you work reproducing the regex from the screenshot (not to mention that it is truncated), here it is ready for copy paste:

Original Filename

Find: (^.+)(?:_)(\d{1,3})

Replace: $2_$1

Intermediate Filename

Find: (^0)(0\d{2}_.+)|(^00)(\d{3}_.+)

Replace: $2$4

________________________

Note: Here is a slightly refined alteration, moving the addition of the double zero padding into the regex replace and removing it as a separate text string entry from the GUI:

batch-rename-regex2.png

Original Filename

Find: (^.+)(?:_)(\d{1,3})

Replace: 00$2_$1

There are likely minor refinements that can be made to the regex, I’ll probably let that go for now.

________________________

P.S. My grey matter is somewhat challenged today, so I may come up with a better or simpler method once I am running on all cylinders!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines