Combine Single Page PDFs into One File
Posted: 2006-03-28T20:34:05-07:00
I am trying to combine a large number of sets of single page PDF files into multi page PDF files.
I can create a MSAccess routine to cycle through a database, get the name of a PDF file and combine it into another PDF using ImageMagick but the resulting file has two problems.
First: The resulting file is much larger than the combine sum of its parts (36KB+38KB+73KB+80KB+62KB=8,110KB!)
Second: The original pages are of different sizes and as a result each page in the resulting file are resized to a combined maximum area on all pages. (eg If I combined two A4 pages where one is landscape and one is portraite then both pages in the final file would be 297mm x 297mm). this does not deform the picture but does leave a lot of white space to one side of the image.
Any ideas on how to do this?
I can create a MSAccess routine to cycle through a database, get the name of a PDF file and combine it into another PDF using ImageMagick but the resulting file has two problems.
First: The resulting file is much larger than the combine sum of its parts (36KB+38KB+73KB+80KB+62KB=8,110KB!)
Second: The original pages are of different sizes and as a result each page in the resulting file are resized to a combined maximum area on all pages. (eg If I combined two A4 pages where one is landscape and one is portraite then both pages in the final file would be 297mm x 297mm). this does not deform the picture but does leave a lot of white space to one side of the image.
Any ideas on how to do this?