Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.   (*.pdf) { dup length string copy } 1000 string filenameforall
  3. ] % create array of filenames
  4. { lt } .sort % sort in increasing alphabetic order
  5. /PN 1 def
  6. { /FN exch def
  7.   /PN currentpagedevice /PageCount get 1 add def % get current page count done (next is one greater)
  8.   FN run [ /Page PN /Title FN /OUT pdfmark % do the file and bookmark it by filename
  9. } forall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement