Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am creating a PDF that is designed for viewing on Screens/Tablets, and uses white Text on black background. Since some readers might want to print it, and I want to avoid to create a second PDF, I would like to include a Print View as Layer in the PDF.

How can I make (xe)latex to render the same Text twice above each other, with a background image in between, so I can use the upper text layer and image as one PDF-Layer to disable it?

So in the PDF, it would be the following order of layers (read it bottom-to-top):

WHITE TEXT       \
                  > OCG Layer #1

BLACK TEXT       \
                  > regular PDF

Now if the reader hides Layer #1 in the PDF Reader, the printerfriendly Version below it becomes visible.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.