joining multiple PDFs into one

Russell Reiter rreiter91-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Nov 15 21:03:02 UTC 2011


Someone else had posted that: cat file1.pdf > out.pdf cat file2.pdf
>>out.pdf cat file3.pdf>>out.pdf worked and they were able to see all
three PDF pages. Before anyone jumps on this I know this is not the
same as the following.

cat file1.pdf file2.pdf file3.pdf>out.pdf did not work, even though
the man page says it should. I see only two possibilities, your
environment changed the way cat works or your pdf parser couldn't do
what the parser of the person who had success viewing the document
could do, and that is deal with the multiple headers and eof
characters in the resulting single document.


On Tue, Nov 15, 2011 at 3:39 PM, Thomas Milne
<thomas.bruce.milne-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> In this case, no. Using >> made no difference at all.
>
> On Tue, Nov 15, 2011 at 11:28 AM, Russ <rreiter91-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>> The command is cat. It is the operator > or >> which controls whether or not existing data is preserved. Thats why he could only see the last page when he used >
>> Each new page overwrote the previous one.
>>
>> Andrej Marjan <andrej-igvx78u1SeH3fQ9qLvQP4Q at public.gmane.org> wrote:
>>
>>>On Tue, Nov 15, 2011 at 11:10 AM, Russ <rreiter91-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>>>
>>>> Actually the original poster used > which overwites existing data, >>
>>>> appends new data to the old. I'm surprised that having multiple pdf headers
>>>> in the body of the document doesn't cause some confusion, but perhaps
>>>> modern parsing software can deal with this.
>>>>
>>>
>> >From the cat(1) manpage:
>>>
>>>-------------------------------------------------------
>>>SYNOPSIS
>>>       cat [OPTION]... [FILE]...
>>>
>>>DESCRIPTION
>>>       Concatenate FILE(s), or standard input, to standard output.
>>>-------------------------------------------------------
>>>
>>>The two commandlines are equivalent.
>>
>
>
>
> --
> Thomas Milne
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list