I have some appendices in my report and I want to add a border around the document to make it more clear it's not a part of the document.

I am using the pdfpages package to include the pdf files.

Currently I am using this to include the pdf:


I'm using the frame option which draws a border around, it gives me this result: framed document

As you can see the page number and the header of the "base document" is showing up inside the frame, and I do want them to show up. But what I actually want is the border to be smaller, somewhat like this:

border as I want it

I've tried doing it with


But that doesn't work because the pdf is multiple pages and it tries to put everything one the same place. (it might work with only one page, but I didn't test it)


1 Answer 1


With the comment of samcarter I manage to solve it somewhat:

enter image description here

With these options:

    clip=0mm 0mm 0mm 0mm,
    trim=20mm 40mm 20mm 15mm,

It is a bit small, so I have to fine tune these values some more.

  • 1
    Please always post complete code people can compile i.e. minimal but working.
    – cfr
    Feb 28, 2017 at 0:45

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.