O código LaTeX abaixo produz duas páginas. A segunda é como eu pretendia: a imagem preenchendo toda a página. Mas ao usar overpic (para sobrepor algum texto), não consegui obter o mesmo resultado.
\documentclass[12pt]{article}
\usepackage[percent]{overpic}
\usepackage{graphicx}
\usepackage[paperwidth=38.205cm, paperheight=19.367cm,
margin=0cm]{geometry}
\setlength{\parindent}{0cm}
\begin{document}
\pagestyle{empty}
\begin{overpic}[width=\textwidth,height=\textheight]{picture}
\put (55,10) {This is some text}
\end{overpic}
\newpage
\includegraphics[width=\textwidth, height=\textheight]{picture}
\end{document}
Quando compilo isso com o pdflatex, recebo uma segunda página com a imagem preenchendo a página, mas para a primeira, recebo uma linha vazia (while) de cerca de 0,5 cm na parte inferior, que não é preenchida pela imagem (que caso contrário, estará preenchendo o resto da página).
Eu tentei confundir com margings, indents, parskips e muitos outros truques, mas parece que estou bloqueado... :-( Alguma ideia
Caso isso importe, a imagem que estou usando é JPEG, 2811x1374 (em pixels), e a saída que recebo do pdflatex é a seguinte:
jgb@parato:/tmp$ pdflatex \\nonstopmode\\input test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 7 languages loaded.
(./test.tex (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/overpic/overpic.sty
Package: overpic v0.53 <2010/09/13> (RN)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/share/texlive/texmf-dist/tex/latex/eepic/epic.sty
Enhancements to Picture Environment. Version 1.2 - Released June 1, 1986
)
overpic: relative positioning in percent
) (/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)) (./test.aux)
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
<picture.jpg, id=1, 2821.54124pt x 1379.1525pt> <use picture.jpg> [1{/var/lib/t
exmf/fonts/map/pdftex/updmap/pdftex.map} <./picture.jpg>] <use picture.jpg>
[2] (./test.aux) )</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm
/cmr12.pfb>
Output written on test.pdf (2 pages, 1181833 bytes).
Transcript written on test.log.
Responder1
Isto é facilmente conseguido usandoeso-pic
como uma alternativa:
\documentclass{article}
\usepackage{eso-pic,graphicx}
\usepackage[
paperwidth=38.205cm,
paperheight=19.367cm,
margin=0cm]{geometry}
\setlength{\parindent}{0cm}
\pagestyle{empty}
\begin{document}
\AddToShipoutPictureBG*{%
\AtPageLowerLeft{%
\includegraphics[width=\textwidth,height=\textheight]{example-image-a}%
}%
\AtPageLowerLeft{%
\hspace*{.55\textwidth}% 55% in from the left
\raisebox{.1\textheight}{This is some text}% baseline will be 10% up from the bottom edge
}
}
\mbox{}% Just to place something on the page.
\clearpage
\AddToShipoutPictureBG*{%
\AtPageLowerLeft{%
\includegraphics[width=\textwidth,height=\textheight]{example-image-b}%
}
}
\mbox{}% Just to place something on the page.
\end{document}
Responder2
A resposta de @Werner funciona muito bem. Apenas para mostrar algum código que corresponda mais exatamente à pergunta:
\documentclass{article}
\usepackage{eso-pic,graphicx}
\usepackage[paperwidth=38.205cm, paperheight=19.367cm,
margin=0cm]{geometry}
\setlength{\parindent}{0cm}
\pagestyle{empty}
\begin{document}
\AddToShipoutPictureBG*{%
\AtPageLowerLeft{%
\includegraphics[width=\textwidth,height=\textheight]{picture}%
}%
\AtPageLowerLeft{%
\hspace*{.55\textwidth}% 55% in from the left
\raisebox{.1\textheight}{This is some text}% baseline will be 10% up from the bottom edge
}
}
\mbox{}% Just to place something on the page.
\newpage
\includegraphics[width=\textwidth, height=\textheight]{picture}
\end{document}
Agora recebo, como pretendido, duas páginas preenchidas com a imagem.