Skip navigation
AndrewGray
Currently Being Moderated

How can I rearrange the pages in a PDF without changing the assigned paged numbers.

Oct 25, 2013 5:04 PM

Tags: #acrobat_xi_pro

How can I rearrange the pages in a PDF without changing the assigned paged numbers? These correspond to the original document folio numbers.

 
Replies
  • Currently Being Moderated
    Oct 25, 2013 8:44 PM   in reply to AndrewGray

    Can't. Moving a page moves the page content of which the page numbers from the original document folio numbers are a part.

     

    Be well...

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 26, 2013 1:50 AM   in reply to CtDave

    It is possible, though, to manually re-number them after moving them to reflect their old page numbers.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 26, 2013 2:14 AM   in reply to Gilad D (try67)

    In theory it would be possible to 'record and play back' the page numbers using a folder-level script, but it's far from trivial. You would have to use the doc.movePage() function - presumably driven by a dialog box - to do the page shuffling so there was a way to track what was being done, then swap the page 'labels' of the two affected pages. That's where it gets messy.

     

    We have functions in the JSAPI which can read and write the page label, but they don't do things in a logical way. The 'getPageLabel()' function simply returns a string, but the 'setPageLabel()' method expects to be told the numbering scheme, prefix, etc. You'd have to parse the string and work out what scheme it was implementing.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 26, 2013 2:19 AM   in reply to Dave Merchant

    Plus, when you use the setPageLabels (not *setPageLabel, by the way) method it automatically applies the scheme you've selected to all the proceeding pages as well, until it encounters a new attached label, which makes it very annoying to work with... In short, this is probably much more trouble than it's worth.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 26, 2013 3:25 AM   in reply to Gilad D (try67)

    Anyone'd think the API was intentionally obscure

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 26, 2013 3:38 AM   in reply to Dave Merchant

    Heavens forbid! ...

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points