Forum > Packages and Libraries

Join pdf files

<< < (2/3) > >>

marcov:

--- Quote from: neodarkman on April 02, 2013, 12:09:28 am ---
--- Quote from: marcov on April 02, 2013, 12:03:16 am ---pdftk apparently assumes that the shell always expands wildcards. That is what Typo means with iterating, namely expanding it yourself.

--- End quote ---

But on command line
pdftk *.pdf cat output junta.pdf
functions normally.

--- End quote ---

(my bold)

Shell=commandline. Shell does own processing before executing programs. Programming interfaces don't.

There are ways to execute a shell first, let it do processing, and then call the program . See wiki tprocess article.
 

neodarkman:

--- Quote from: marcov on April 02, 2013, 12:14:38 am ---
--- Quote from: neodarkman on April 02, 2013, 12:09:28 am ---
--- Quote from: marcov on April 02, 2013, 12:03:16 am ---pdftk apparently assumes that the shell always expands wildcards. That is what Typo means with iterating, namely expanding it yourself.

--- End quote ---

But on command line
pdftk *.pdf cat output junta.pdf
functions normally.

--- End quote ---

I saw ... including'm basing this article.
http://wiki.lazarus.freepascal.org/Executing_External_Programs



(my bold)

Shell=commandline. Shell does own processing before executing programs. Programming interfaces don't.

There are ways to execute a shell first, let it do processing, and then call the program . See wiki tprocess article.

--- End quote ---

jwdietrich:
You could try to use an embedded shell call with


--- Code: ---fpsystem('pdftk *.pdf cat output junta.pdf')
--- End code ---

neodarkman:

--- Quote from: jwdietrich on April 02, 2013, 12:21:28 am ---You could try to use an embedded shell call with


--- Code: ---fpsystem('pdftk *.pdf cat output junta.pdf')
--- End code ---

--- End quote ---

I can not use this command because it is unique Unit Unix, and the main application must run on Linux and Windows.

BigChimp:
Well, you can call cmd on Windows and sh on Linux with a compiler define. Or you might enumerate all pdfs yourself, then supply them to pdftk..

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version