# Does WebWidget's printToPdf work on Mac?

**URL:** https://discourse.slicer.org/t/does-webwidgets-printtopdf-work-on-mac/19544
**Category:** Development
**Created:** [September 7, 2021, 1:37pm UTC](https://discourse.slicer.org/t/does-webwidgets-printtopdf-work-on-mac/19544 "2021-09-07T13:37:05Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [September 7, 2021, 2:57pm UTC](https://discourse.slicer.org/t/does-webwidgets-printtopdf-work-on-mac/19544/7 "2021-09-07T14:57:46Z")

</div>

Looks like `file:///` is the right thing - it works on mac and should also work on windows.

> [@mau\_igna\_06](#):
>
> What is the return of this function `slicer.app.os` on mac?

But if you really need it:

```auto
>>> slicer.app.os
'macosx'

```

---

_[View the full topic](https://discourse.slicer.org/t/does-webwidgets-printtopdf-work-on-mac/19544)._
