1

This is not just merging two pdf files using pdflatex.

final document need have a structure:

  • odd pages are from first.pdf
  • even pages are from second.pdf

is this possible?

p.s. I'm trying to have 4 column parallel text spread on 2 pages. follow this Four Language Parallel Column Book have 2 documents one for odd another for even pages... can there be a better solution ?

levan
  • 11
  • 1
    Please this blog post about using pdftk (not latex) for Interleaving two PDF files – hakaze Aug 14 '12 at 15:33
  • 1
    Does first.pdf have the same number of pages as second.pdf? Are the pages in first.pdf odd-numbered and second.pdf even-numbered? Should this be a pure LaTeX solution? – Werner Aug 14 '12 at 16:06
  • You can recycle code from my answer to http://tex.stackexchange.com/questions/65961/independent-columns-environment/65978#65978 – JLDiaz Aug 14 '12 at 17:27
  • "Should this be a pure LaTeX solution?" If I can spread 4 columns on 2 pages--this can be pure latex. If pdflatex can split and rearrange 2 pdf files this also be nice... but it seems pdftk way is a solution. – levan Aug 15 '12 at 04:53
  • Today instead of pdftk this can also be done with pdfunite and pdfseparate from poppler utils. – ShreevatsaR Nov 10 '17 at 01:25

1 Answers1

1

I faced a similar task in the past. My solution was to write a script heavily using pdftk toolkit, in my case on Linux (pdftk is included in most full-fledged distributions).

The solution in your case would be to first split the two documents into separate pdfs one per page and subsequently merge them into a single one.

I guess, with some command line literacy, looking at the examples should be enough to come up with your solution. Alternatively, if this is a one-time job and you really are after a GUI-based solution, you can split the document into separate pages using your favorite PDF viewer and simply print each page into a separate pdf file on your disk. Subsequently you could concatenate the files back again using a tool such as e.g., PDFedit.

walkmanyi
  • 710
  • Thanks to all...Actual problem is as mentioned in other thread spreading 4 column sincronized text on 2 pages... it seems only with 2 separate pdf's can help with pdftk or directly editing pdf with pdfedit – levan Aug 15 '12 at 05:26