I am trying to put the word "hello" on every page of a pdf file using pdfpages. The following code works, but the frame around "hello" disappears. I tried it on a one blank page pdf file (called "letter.pdf" in the same directory). The first page has an unboxed "hello", but the next page (output in an ordinary way, without the pdfpages callback) works just fine.

  % page 1 (no frame around hello)
  % page 2 (frame works)

The package pdfpages always draws a frame around the included page; but the default is not showing it, which is obtained by setting \fboxrule to zero. Since the addition of pagecommands happens during PDF inclusion, a \framebox will inherit this setting. Note that pdfpages also sets \fboxsep to zero.


\AtBeginDocument{% Remember the values


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.