# How to change stroke color and fill color at a time

**URL:** <https://pdfjs.community/t/how-to-change-stroke-color-and-fill-color-at-a-time/344>\
**Category:** Technical Support\
**Created:** [October 19, 2020, 4:16am UTC](https://pdfjs.community/t/how-to-change-stroke-color-and-fill-color-at-a-time/344 "2020-10-19T04:16:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [October 21, 2020, 4:28pm UTC](https://pdfjs.community/t/how-to-change-stroke-color-and-fill-color-at-a-time/344/2 "2020-10-21T16:28:45Z")

</div>

Hi there,

Having a different opacity for fill and stroke is not supported in the PDF spec, so this is not possible to do.

Thanks!  
Logan

---

_[View the full topic](https://pdfjs.community/t/how-to-change-stroke-color-and-fill-color-at-a-time/344)._
