3

This question is similar to this one, but apparently not similar enough to warrant a straight edit. Thus, I pose it as a new question.

When using envlab with pdflatex via MiKTeX and TeXstudio, I would like for the page size of the pdf to be the actual size of the envelope. The following prints both the letter and the envelope on letter-sized paper:

\documentclass{letter} 
\topmargin=-1in    
\textheight=5.5in 
\oddsidemargin=0pt 
\textwidth=6.5in 

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[businessenvelope]{envlab}
\makelabels

\begin{document}

\signature{Peter Schilling}     
\address{0000 0th St\\O, OH 00000}


\begin{letter}{1111 1st Ave\\1, IA 11111}

\opening{To whom it may concern:} 

23456789

\closing{Thank you,} 

\end{letter}


\end{document}

When then trying to print on the envelope, the printer (through Acrobat, in this case) either wants to shrink the entire page to fit, making the output too small:

env1

or only print what fits on the envelope from the upper left:

env2

1 Answer 1

2

I'm not exactly sure what's going on, but I'll suggest a workaround. Just change the page geometry before the labels are printed:

\documentclass{letter}
\topmargin=-1in
\textheight=5.5in
\oddsidemargin=0pt
\textwidth=6.5in
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[businessenvelope,leftenvelopes]{envlab}

\AtBeginLabels{%
    \eject \pdfpagewidth=\EnvelopeHeight \pdfpageheight=\EnvelopeWidth%
}
\makelabels

\begin{document}
\signature{Peter Schilling}     
\address{0000 0th St\\O, OH 00000}
\begin{letter}{1111 1st Ave\\1, IA 11111}
\opening{To whom it may concern:}
\closing{Thank you,}
\end{letter}
\end{document}

pic 1 pic 2

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .