---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/PdfJavaScriptStripper
---

# PdfJavaScriptStripper

## Overview

`PdfJavaScriptStripper` is a class in Aspose.PDF FOSS for .NET.

Removes all JavaScript from a PDF document.

This class provides 4 methods for working with PdfJavaScriptStripper objects in .NET programs.
Available methods include: `Strip`, `StripJavaScript`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Strip(input: byte[], output: byte[])` | Strip all JavaScript from the PDF. |
| `Strip(inputFile: string, outputFile: string)` | Strip all JavaScript from inputPath and write the result to outputPath. |
| `Strip(inStream: Stream, outStream: Stream)` | Stream-based Strip overload. |
| `StripJavaScript(doc: Document)` | Strip all JavaScript from a document in-place. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)