PdfJavaScriptStripper.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/object.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 namespace Engine
13 {
14 namespace Data
15 {
16 class IPdfDictionary;
17 } // namespace Data
18 } // namespace Engine
19 } // namespace Pdf
20 } // namespace Aspose
21 namespace System
22 {
23 namespace IO
24 {
25 class Stream;
26 } // namespace IO
27 class String;
28 } // namespace System
29 
30 namespace Aspose {
31 
32 namespace Pdf {
33 
34 namespace Facades {
35 
39 class ASPOSE_PDF_SHARED_CLASS PdfJavaScriptStripper final : public System::Object
40 {
42  typedef System::Object BaseType;
43 
44  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
46 
47 public:
48 
55  ASPOSE_PDF_SHARED_API bool Strip(System::String inputFile, System::String outputFile);
62  ASPOSE_PDF_SHARED_API bool Strip(System::SharedPtr<System::IO::Stream> inStream, System::SharedPtr<System::IO::Stream> outStream);
63 
64 private:
65 
66  bool RemoveJavaScriptFromDictionary(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfDictionary> dict);
67 
68 };
69 
70 } // namespace Facades
71 } // namespace Pdf
72 } // namespace Aspose
73 
74 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:67
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
Class for removing all Java Script code.
Definition: PdfJavaScriptStripper.h:39
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Definition: AFRelationship.h:4
Whole PDF file will be submitted.