Can I remove the page breaks (or re-flow postscript documents) in PDF files? I have a piece of software that formats source material and produces PDF files.  These resulting files may be any length and are broken into pages according to a selected page size.  (In other words, very standard paged output.)

Since these files are not intended for printing, what I would like is to have them converted to take up one page only with a length that matches the total length of the content.

Does anyone know of a method for reformatting PDF this way on a Mac, or of an "editor" that can perform this one function?

Alternatively, if there's a program that can convert a PostScript file into a single-page PDF by calculating the necessary page size, that would work too.
Alternatively, if there's a program that can convert a PostScript file into a single-page PDF by calculating the necessary page size, that would work for me too.


Any PostScript to PDF converter would convert a valid one-page postscript file into a one-page PDF file. You can for example use OS X’s own pstopdf or Ghostscript’s ps2pdf script. If you need to tighten the bounding box, pdfcrop will do the trick.