"window is not defined" in Angular framework

WebViewer Version: 10.6.0

Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? Yes
Is your issue related to annotations? No

Please give a brief summary of your issue: On setting up PDFTron in angular project ( v17 ), as mentioned on LINK, I am facing the issue where it shows “window is not defined” error.
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
while creating an angular project where SSR is enabled and setting up the pdftron webviewer on my project according to the integrating pdftron in angular guide, I am facing the following issue:

Please provide a link to a minimal sample where the issue is reproducible:

Hello @arjun.s,

Thank you for contacting WebViewer support.

When using server side render, window is not defined. Please take a look at these resources:

We also noticed that we do not have access to the link you provided.

If you still are running into issues, feel free to reach out with an updated link, as well as any relevant console/network logs and code samples.

Best Regards,
Jacob Romano Carlsen
Web Development Support Engineer
Apryse Software Inc.