[Tex/LaTex] How to merge two files : djvu and PDF

djvupdf

I have two files one f1.pdf and other is f2.djvu. I want to join them and the output file will be pdf. Already I have tried to do this by the following command. But these are not working. Is there any way to do so ?

\documentclass{article}
\usepackage{pdfpages}
\begin{document}

\includepdfmerge{f1.pdf,1}
\includepdfmerge{f2.djvu,1-553}

\end{document}

Best Answer

I'd suggest you do this outside of LaTeX proper. Use ImageMagick (or really any image manipulation library you can think of) and then simply include the resulting PDF.

Unless there's a particular reason to do this on the fly, as it were ... ?