RE: merging pdf's

Subject: RE: merging pdf's
From: Chris <cud -at- telecable -dot- es>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 27 Nov 2001 10:47:08 +0100

If you look in the Acrobat Distiller Extras folder, you should find a file named Rundirex.txt. If you distill this file, it actually distills all the PS files in a directory as a single PDF. You need to save each individual document as a PS file in that directory. It uses some rule to determine the order of the files - I think the rules are different for different platforms. (I include that file below just to give you an idea.)

You can also use Runfilex.ps, and in that file you can specify absolute paths to each PS file you want to distill. More control, more tedious to use. Depends on what you need.

Cheers cud

************************ Rundirex.txt contents ************************

%!
% PostScript program for distilling and combining an entire folder or
% directory of PostScript files.
% When embedding font subsets, it is highly recommended you use this technique
% to distill multiple PS files so only one font subset is used for each font.

/PathName (Macintosh HD:Test:*.ps) def % Edit this to point to the folder
% containing the PS files.

/RunDir { % Uses PathName variable on the operand stack
{ /mysave save def % Performs a save before running the PS file
dup = flush % Shows name of PS file being run
RunFile % Calls built in Distiller procedure
clear cleardictstack % Cleans up after PS file
mysave restore % Restores save level
}
255 string
filenameforall
} def

PathName RunDir

% INSTRUCTIONS
%
% 1. Place all PostScript files to be distilled and concatenated in a single
% directory. For example, here are example names of PS files that might
% be used to distill a book:
%
% ac001.ps Cover
% bt001.ps Table of Contents
% ch001.ps Chapter 1
% ch002.ps Chapter 2
% ch003.ps Chapter 3
% in001.ps Index
%
% 2. Make a copy of this file and give it the name you want to have as the prefix
% for the resulting file. For example, you could name this file MyBook.txt.
%
% IMPORTANT: Don't use the .ps suffix if this file is in the same folder as the
% rest of your .ps files. The RunDir command will execute all files that end in
% .ps and this file will be distilled twice!
%
% 3. Redefine the variable "PathName" above to point to the folder/directory which
% contains your PS files.
%
% Macintosh pathname syntax: /PathName (Macintosh HD:Folder:*.ps) def
% Windows pathname syntax: /PathName (c:/mydir/*.ps) def
% UNIX pathname syntax: /PathName (.\\/mydir\\/*.ps) def
%
% Note: The syntax for Windows may look strange, but double escaping the
% backslash character is required when using filenameforall.
%
% 4. Distill the file on the machine running Acrobat Distiller.





^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Collect Royalties, Not Rejection Letters! Tell us your rejection story when you submit your manuscript to iUniverse Nov. 6 -Dec. 15 and get five free copies of your book. What are you waiting for? http://www.iuniverse.com/media/techwr

Have you looked at the new content on TECHWR-L lately?
See http://www.raycomm.com/techwhirl/ and check it out.

---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.


Previous by Author: Re: Work harder not smarter
Next by Author: Re: Framemaker Variables in Variables?
Previous by Thread: RE: merging pdf's
Next by Thread: Access / Frame / MSIE interface problem


What this post helpful? Share it with friends and colleagues:


Sponsored Ads