Results 1 to 4 of 4
I need to write a script in PHP that combines a list of PDF files into a single PDF.
I've had a look at pdftk (it wouldn't compile on our ...
- 03-06-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
How do you merge protected PDF files?
I need to write a script in PHP that combines a list of PDF files into a single PDF.
I've had a look at pdftk (it wouldn't compile on our centos web server so I tried the windows version) and whilst it generally works well, it wouldn't merge password secured pdfs without the password (which we don't have).
If I was doing it on Windows, there are programs that install themselves to look like a printer driver to the OS and create PDFs of documents that are "printed" to it. So I'd write a script that would print all the PDFs in a single print job, and it would generate a single pdf.
I'm sure there is a much more ellegant way to do it in Linux, but how? I've been searching all morning and not found anything suitable.
btw go easy please
I don't have much experience with linux (though I like what I see).
- 03-06-2009 #2
if this is a one time use you might want to check this out, there is a trial version but the real version costs $20. I can't seem to find much else to use
Combine/Merge PDF and Image Files into a Single PDF Document. [A-PDF.com]
Just to be clear, you need to merge pdf's with different passwords into one document and then...have that document password protected or no?Bodhi 1.3 & Bodhi 1.4 using E17
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17
"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"
- 03-06-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
Hi, Thanks for the reply
I should have mentioned that it needs to work in a web application, i.e. user uploads PDF files, php script merges uploaded files to a single pdf.
- 08-25-2009 #4Just Joined!
- Join Date
- Aug 2009
- Posts
- 1
I encountered a similar problem. I wanted to merge some IBM DB2 Certificates with my application papers. This failed due the password protection of these certificates. After playing around with a lot of (commercial) tools I solved the problem with:
It seems thatCode:gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf
removes the encryption in some way...Code:gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf in.pdf


Reply With Quote
