How to Merging PDF Files?

This article below purposed for those who still doesn’t know how to combining & merge multiple Postscript files into single PDF file from old-fashioned way ~ Distiller product from Adobe. If you in high-needed situation to create PDF from many source of document but there is no 3rd party software except an existing Adobe Distiller, you may need this trick.

First of all, the very required thing is all the Postscript files you need to combine & Adobe Distiller installed properly in your machine. Locate all the .ps files into a specified folder (ex: file1.ps & file2.ps). Then, create a file contain the source below & named with any kind of name you want with .ps extension (ex: merge.ps). Store it in the same folder where the multiple source existed:

/prun { /mysave save def
dup = flush
RunFile
clear cleardictstack
mysave restore
} def

% Change the path/to/filex depend on OS platform you used by
(path/to/file1.ps) prun
(path/to/file2.ps) prun


Use the pathname syntax appropriate for the platform running Adobe Distiller just like example below:

Macintosh pathname syntax: (Macintosh HD:path:to:filex.ps) prun+
Windows pathname syntax: (x:/path/to/filex.ps) prun
UNIX pathname syntax: (./path/to/filex.ps) prun



Note that it will more easier when there is no space character in your current path & Postscript files name. The last thing to do is, distill the file on the machine running Acrobat Distiller by double-clicking the merge.ps file. If nothing goes wrong, there should be created a file named merge.pdf automatically in a moment. Have a try & good luck.

Labels:

Sincerelly,

Eko Wahyudiharto
PS: If you've benefit from this blog,
you can support it by making a small contribution.

Enter your email address:

Delivered by FeedBurner

Post a Comment Bookmark and Share

 

  1. Anonymous Anonymous said,

    Wednesday, November 28, 2007 4:44:00 PM

    Sori komentar iki nggak nyambung.
    Silakan delete kalau sudah dibaca.
    Ko, aku cuma mau usul,
    masa iya kita mau pake FC 4 terus? Mbok dibuatkan manual Instalasi Siscadu untuk distro alternatif yang lebih baru spt Fedora 7.
    Jangan bilang you're too lazy blablabla, soale aku wis nyoba sendiri dan nggak berhasil. Kayane memang ra nyandak. Kanggoku iki way too high lah pokoke.
    Nek perlu nggak sekedar petunjuk copy ini ke direktori itu dst, tp juga penjelasane.
    Iki sekedar usul, nek setuju yo alhmdlilLah, nek nggak jg nggak papa sih.
    Thnx.
    Nice article, btw. It's just hardly understandable for me...

    Bahrun.

  2. Blogger Eko Wahyudiharto said,

    Thursday, November 29, 2007 9:03:00 AM

    Mas Bahrun, kita kan sudah punya forum IT sendiri. Coba di posting disitu ben langsung tak jawab & biar bisa di-rembug rame2. Okay?

  3. Anonymous Anonymous said,

    Thursday, November 29, 2007 1:25:00 PM

    Ok trims.
    Cuma masalahnya kemarin aku coba login ternyata account-ku sdh tidak aktif lagi.

  4. Blogger Eko Wahyudiharto said,

    Thursday, November 29, 2007 3:43:00 PM

    Karena dari awal memang tidak diaktifkan. Tapi sekarang sudah saya aktifkan.

  5. Blogger Erkki said,

    Thursday, February 21, 2008 4:05:00 PM

    Hi Eko,

    I tried this with Distiller 8, but it seems not to work. Is there any change in Distiller 8 or can you guess what´s wrong?

    I am getting the following error:
    c:/PStest/P1.ps
    c:/PStest/P2.ps
    %%[ Warning: Empty job. No PDF file produced. ] %%

    My path is correct and those files do contain ps-data. I can produce pdf from both of them individually.

    my code is below:
    /prun { /mysave save def
    dup = flush
    RunFile
    clear cleardictstack
    mysave restore
    } def


    (c:/PStest/P1.ps) prun
    (c:/PStest/P2.ps) prun

    I would be very pleased if you can give any hint or idea what´s wrong.

    regards

    Erkki Pennanen

  6. Blogger Erkki said,

    Thursday, February 21, 2008 11:20:00 PM

    I found myself the solution, but like to share this with others.

    Acrobat Distiller restriction on directory access

    Beginning with Acrobat 8.1, Distiller® restricts the directories that PostScript® file operators can access. The new default behavior limits directory access to the temp and font cache directories. Earlier versions of Distiller allowed PostScript file operators to have unlimited directory access.

    The following Distiller settings enable unlimited directory access. Such unlimited access can pose security problems.

    Microsoft® Windows®: -F command line option
    UNIX®: -allowfileops command line option
    Apple Mac OS: AllowPSFileOps user preference

  7. Anonymous www.sampara.com said,

    Friday, April 11, 2008 10:36:00 AM

    Terima banyak, banyak komentar yang berguna
    Dari : www.sampara.com

  8. Blogger jackob said,

    Saturday, September 25, 2010 2:59:00 AM

    I recently came across your blog and have been reading along. I thought I would leave my first comment.
    I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
    Thank You
    PowerBuilder development company

  9. Blogger Eko Wahyudiharto said,

    Saturday, September 25, 2010 5:59:00 PM

    Jackob, it's glad to see your comment here. I'll do my best to share to anyone my very best experience & experiment. Please set bookmark for my blog address

    PS: Anyway, what is your favorite information (link) out from this blog?

Post a Comment

Leave comments here...