Background Color First Page Only

I am trying to set the background color of only the first page in a multi page document by using:
builder.getDocument().setPageColor(“color here”));

When a document is then generated using this, the color spans across all pages. How can I limit this to the first page?

Thank you.

@EthanEttema,

This is the expected behavior. The Document.PageColor property mimics the behavior of MS Word’s “Design > Page Color” option.

How would you get the desired output by using MS Word? Please ZIP and attach your expected DOCX Word document showing the desired output here for our reference. We will then investigate the structure of your expected document as to how you want your final output be generated like. You can create expected document by using MS Word. Please also list the complete steps that you performed in MS Word to create the expected document. Thanks for your cooperation.