Watermark in everypage for pdf

i make a print format for PO i want add document status as watermark in my print format i use this below code. The Problem is when i click Print then watermark show every page but when i click Pdf then watermark only show on first page . i want that it show every page when click Pdf or Print for printing.

<style>
  .watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 100px;
    color: rgba(0, 0, 0, 0.3); 
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none; 
  }

  @media print {
    .watermark {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1;
    }
  }
</style>

<div class="watermark">
   {{ doc.status }}
</div>

<!-- My Other code existing print format for content below -->
1 Like

Add it in the letter head.

But my letter head print in first page only.
I want to show watermark in center of every page if my content print in multipage. It is working for Print but not for Pdf. Is there any css issue in making pdf

check this: Issue with “Repeat Header and Footer” in ERPNext Version 15 - #2 by NCP