Document.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 // C# preprocessor directive: #if DEBUG
5 
6 // C# INACTIVE CODE:
7 // using Aspose.Pdf.Diagnostics;
8 
9 // C# preprocessor directive: #endif
10 
11 
12 // C# preprocessor directive: #if !NETCORE
13 
14 
15 // C# preprocessor directive: #endif
16 
17 
18 // C# preprocessor directive: #if __cplusplus
19 
20 
21 // C# preprocessor directive: #else
22 
23 
24 // C# preprocessor directive: #endif
25 
26 
27 // C# preprocessor directive: #if !CPLUSPLUS && !NET40
28 
29 // C# INACTIVE CODE:
30 // using System.Threading.Tasks;
31 // using Aspose.Html.IO;
32 
33 // C# preprocessor directive: #endif
34 
35 
36 #include <system/reflection/assembly_type_registration.h>
37 #include <system/nullable.h>
38 #include <system/multicast_delegate.h>
39 #include <system/idisposable.h>
40 #include <system/guid.h>
41 #include <system/event.h>
42 #include <system/enum_helpers.h>
43 #include <system/details/pointer_collection_helpers.h>
44 #include <system/collections/ilist.h>
45 #include <system/collections/dictionary.h>
46 #include <system/array.h>
47 #include <cstdint>
48 
49 #include "Aspose.PDF.Cpp/Text/TextOptions/TextEditOptions.h"
50 #include "Aspose.PDF.Cpp/Security/CryptoAlgorithm.h"
51 #include "Aspose.PDF.Cpp/Optimization/OptimizationOptions.h"
52 #include "Aspose.PDF.Cpp/License/IVentureLicenseTarget.h"
53 #include "Aspose.PDF.Cpp/ISupportsMemoryCleanup.h"
54 #include "Aspose.PDF.Cpp/IO/ConvertStrategies/PdfFormat.h"
55 #include "Aspose.PDF.Cpp/InteractiveFeatures/Forms/Form.h"
56 #include "Aspose.PDF.Cpp/HtmlSaveOptions.h"
57 #include "Aspose.PDF.Cpp/CommonData/Text/Fonts/FontSubstitutions/IFontSubstitutionRegistrator.h"
58 #include "Aspose.PDF.Cpp/CommonData/IDocumentSecondaryStrategies.h"
59 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
60 
61 namespace Aspose
62 {
63 namespace Pdf
64 {
65 namespace Annotations
66 {
67 class ActionCollection;
68 class Annotation;
69 class AnnotationCollection;
70 class AppearanceDictionary;
71 class DocumentActionCollection;
72 class FdfReader;
73 class FitRExplicitDestination;
74 class GoToAction;
75 class IAppointment;
76 class LaunchAction;
77 class MarkupAnnotation;
78 class NamedDestination;
79 class PDF3DAnnotation;
80 class PDF3DArtwork;
81 class PDF3DCrossSection;
82 class PDF3DCrossSectionArray;
83 class PDF3DStream;
84 class PDF3DView;
85 class PDF3DViewArray;
86 class PdfActionCollection;
87 class RedactionAnnotation;
88 class WidgetAnnotation;
89 class XYZExplicitDestination;
90 } // namespace Annotations
91 class ApsFragment;
92 class ApsFragmentCollection;
93 class ApsPageFilter;
94 class ApsToPdfConverter;
95 class ApsUsingConverter;
96 class Artifact;
97 class ArtifactCollection;
98 class Collection;
99 namespace Collections
100 {
101 template <typename, typename> class AsposeHashDictionary;
102 } // namespace Collections
103 class Color;
104 enum class ContentDisposition;
105 class ConversionPipeline;
106 enum class ConvertErrorAction;
107 enum class ConvertTransparencyAction;
108 class Copier;
110 namespace Devices
111 {
112 class DocumentDevice;
113 class ImageGenerator;
114 } // namespace Devices
115 enum class Direction;
116 class DocConverter;
117 class DocOutOfMemoryHandler;
118 class DocumentFactory;
119 class DocumentInfo;
120 namespace Drawing
121 {
122 class Shape;
123 } // namespace Drawing
125 namespace Engine
126 {
127 namespace Addressing
128 {
129 class IRegistrar;
130 } // namespace Addressing
131 namespace CommonData
132 {
133 class IDocumentSecondaryStrategiesDefaults;
134 namespace PageContent
135 {
136 class IResourceDictionary;
137 class ResourceDictionary;
138 } // namespace PageContent
139 namespace Text
140 {
141 namespace Encoding
142 {
143 namespace PdfFontEncoding
144 {
145 class SimpleFontEncodingBase;
146 enum class SimpleFontEncodingRules : uint8_t;
147 class SimpleFontEncodingStrategy;
148 } // namespace PdfFontEncoding
149 } // namespace Encoding
150 namespace Fonts
151 {
152 class CIDFont;
153 class FontFactory;
154 class PdfFont;
155 namespace Utilities
156 {
157 class DocumentCIDType2FontContentUpdater;
158 class DocumentFontsIterator;
159 class DocumentFontsSubsetter;
160 class DocumentFontsUnembedder;
161 template <typename> class FontsRemover;
162 class IDocumentFontSaveOptions;
163 class XObjectsProcessor;
164 } // namespace Utilities
165 } // namespace Fonts
166 namespace Segmenting
167 {
168 class PhysicalTextSegment;
169 class TextSegmentBuilder;
170 class TextSegmenter;
171 } // namespace Segmenting
172 } // namespace Text
173 } // namespace CommonData
174 namespace Data
175 {
176 class IPdfDictionary;
177 class IPdfObject;
178 class IPdfPrimitive;
179 class ITrailerable;
180 namespace Types
181 {
182 class IPdfStreamAccessor;
183 } // namespace Types
184 } // namespace Data
185 namespace IO
186 {
187 namespace ConvertStrategies
188 {
189 namespace ConvertHelpers
190 {
191 class FontSharedObjectsUpdateManager;
192 class FontUtils;
193 class LowLevelFontSubstitutor;
194 } // namespace ConvertHelpers
195 namespace GlyphWidths
196 {
197 class TrueTypeGlyphWidthsProcessor;
198 } // namespace GlyphWidths
199 class PdfAConvertStrategy;
200 class PdfConvertStrategy;
201 class PdfUaConvertStrategy;
202 class PdfXConvertStrategy;
203 class TaggedPdfConvertStrategy;
204 class TransparentContentRemoval;
205 class VersionConvertStrategy;
206 } // namespace ConvertStrategies
207 namespace SaveStrategies
208 {
209 class SimpleSaveStrategy;
210 } // namespace SaveStrategies
211 } // namespace IO
212 class IPdfDocument;
213 class PdfDocument;
214 namespace Presentation
215 {
216 namespace APSImpl
217 {
218 class APSPresenter;
219 } // namespace APSImpl
220 namespace IndependentImpl
221 {
222 namespace ColorInitializerStrategies
223 {
224 class RgbColorConversionStrategy;
225 } // namespace ColorInitializerStrategies
226 } // namespace IndependentImpl
227 } // namespace Presentation
228 } // namespace Engine
229 class EpubConverter;
230 namespace Facades
231 {
232 class DocumentPrivilege;
233 class Form;
234 class FormEditor;
235 class LogicalStructureConcatenation;
236 class LogicalStructureCopier;
237 class PdfAnnotationEditor;
238 class PdfContentEditor;
239 class PdfConverter;
240 class PdfExtractor;
241 class PdfFileEditor;
242 class PdfFileInfo;
243 class PdfFileMend;
244 class PdfFileSignature;
245 class PdfFileStamp;
246 class PdfJavaScriptStripper;
247 class PdfPageEditor;
248 class PdfXmpMetadata;
249 } // namespace Facades
250 enum class Fixup;
251 class FlowConverter;
252 enum class FontSubsetStrategy : uint8_t;
253 class FormattedFragment;
254 namespace Forms
255 {
256 class ButtonField;
257 class CheckboxField;
258 class ChoiceOptionCollection;
259 class ComboBoxField;
260 class Field;
261 class ListBoxField;
262 class OptionCollection;
263 class RadioButtonField;
264 class RadioButtonOptionField;
265 class RichTextBoxField;
266 class SignatureField;
267 class TextBoxField;
268 class XFA;
269 } // namespace Forms
270 class HeaderFooter;
271 class HtmlConverter;
272 class Id;
275 class ImageStamp;
276 namespace Interchange
277 {
278 class DocumentInterchange;
279 namespace Helpers
280 {
281 class MetadataHelper;
282 } // namespace Helpers
283 } // namespace Interchange
285 namespace LicenseManagement
286 {
287 class RestrictionChecker;
288 class RestrictionChecker2;
289 class VentureLicense;
290 } // namespace LicenseManagement
291 class LoadOptions;
292 class Metadata;
293 class MobiXmlConverter;
295 namespace Optimization
296 {
297 class ImageCompressor2;
298 class ResourceOptimizer;
299 class UnusedObjectsScanner;
300 } // namespace Optimization
301 class OutlineCollection;
303 class OutputIntents;
304 class Page;
305 class PageCollection;
306 class PageInfo;
307 class PageLabelCollection;
308 enum class PageLayout;
309 enum class PageMode;
310 namespace PageModel
311 {
312 class AnnotationElement;
313 class GraphicElement;
314 class ImageElement;
315 class TextElement;
316 } // namespace PageModel
317 class PageTreeBalancer;
318 class Paragraphs;
319 class PclConverter;
321 class PdfPageStamp;
322 class PdfToApsConverter;
323 class PdfToXmlSerializer;
324 enum class PdfVersion;
325 enum class Permissions;
326 namespace Plugins
327 {
328 class FormEditor;
329 class FormExporter;
330 class FormFlattener;
331 class Jpeg;
332 class Merger;
333 class OrganizerBaseOptions;
334 class PdfAConverter;
335 class PdfAOptionsBase;
336 class PdfDoc;
337 class PdfExtractor;
338 class PdfHtml;
339 class PdfToImage;
340 class PdfXls;
341 enum class Plugin;
342 class Png;
343 class Signature;
344 class Splitter;
345 class TableGenerator;
346 class Tiff;
347 class TocGenerator;
348 } // namespace Plugins
349 class PptxExporter;
350 enum class PrintDuplex;
351 enum class PrintScaling;
352 class PsConverter;
353 class Resources;
354 enum class SaveFormat;
355 class SaveOptions;
356 class Stamp;
357 namespace Structure
358 {
359 class RootElement;
360 } // namespace Structure
361 class SvgConverter;
362 namespace Tagged
363 {
364 class ITaggedContent;
365 class TaggedContent;
366 class TaggedContext;
367 } // namespace Tagged
368 namespace Tests
369 {
370 namespace Annotations
371 {
372 class PdfActionTests;
373 } // namespace Annotations
374 namespace Collections
375 {
376 class OperatorCollectionTests;
377 } // namespace Collections
378 namespace Engine
379 {
380 namespace CommonData
381 {
382 namespace PageContent
383 {
384 namespace Operators
385 {
386 class CommonOperationTests;
387 } // namespace Operators
388 } // namespace PageContent
389 namespace Text
390 {
391 namespace Fonts
392 {
393 class FontSubstitutionRegistratorTests;
394 } // namespace Fonts
395 } // namespace Text
396 } // namespace CommonData
397 namespace IO
398 {
399 class PdfAConvertTests;
400 class PdfUaConvertTests;
401 class PdfUaGenerateTests;
402 class PdfXConvertTests;
403 class VersionsTests;
404 } // namespace IO
405 } // namespace Engine
406 namespace Facades
407 {
408 class DocumentTest;
409 class PdfFileEditorTests;
410 class PdfFileSecurityTests;
411 } // namespace Facades
412 namespace Lic
413 {
414 class MeteredPluginsTests;
415 class MeteredTests;
416 } // namespace Lic
417 class MergePagesTests;
418 namespace OriginalKit
419 {
420 namespace New
421 {
422 class FunctionalTests_v4_8;
423 class RegressionTests_v4_4;
424 class RegressionTests_v4_5;
425 } // namespace New
426 } // namespace OriginalKit
427 class PageTreeBalancerTests;
428 class PdfFile_2_0Test;
429 namespace PDFUA
430 {
431 class PDFUA_CreatingTests;
432 } // namespace PDFUA
433 namespace Plugins
434 {
435 class FormEditorTests;
436 class PdfFormTests;
437 class SignatureTests;
438 } // namespace Plugins
439 class RegressionTests_v10_0;
440 class RegressionTests_v10_2;
441 class RegressionTests_v10_3;
442 class RegressionTests_v10_4;
443 class RegressionTests_v10_5;
444 class RegressionTests_v10_8;
445 class RegressionTests_v10_9;
446 class RegressionTests_v11_1;
447 class RegressionTests_v11_4;
448 class RegressionTests_v11_5;
449 class RegressionTests_v11_6;
450 class RegressionTests_v11_7;
451 class RegressionTests_v11_8;
452 class RegressionTests_v11_9;
453 class RegressionTests_v16_11;
454 class RegressionTests_v16_12;
455 class RegressionTests_v17_10;
456 class RegressionTests_v17_11;
457 class RegressionTests_v17_12;
458 class RegressionTests_v17_2;
459 class RegressionTests_v17_4;
460 class RegressionTests_v17_9;
461 class RegressionTests_v18_11;
462 class RegressionTests_v18_2;
463 class RegressionTests_v18_3;
464 class RegressionTests_v18_5;
465 class RegressionTests_v18_7;
466 class RegressionTests_v18_9;
467 class RegressionTests_v19_1;
468 class RegressionTests_v19_10;
469 class RegressionTests_v19_12;
470 class RegressionTests_v19_2;
471 class RegressionTests_v19_4;
472 class RegressionTests_v19_5;
473 class RegressionTests_v19_6;
474 class RegressionTests_v19_7;
475 class RegressionTests_v19_8;
476 class RegressionTests_v19_9;
477 class RegressionTests_v20_01;
478 class RegressionTests_v20_04;
479 class RegressionTests_v20_05;
480 class RegressionTests_v20_06;
481 class RegressionTests_v20_07;
482 class RegressionTests_v20_08;
483 class RegressionTests_v20_10;
484 class RegressionTests_v20_11;
485 class RegressionTests_v21_2;
486 class RegressionTests_v21_7;
487 class RegressionTests_v21_8;
488 class RegressionTests_v22_07;
489 class RegressionTests_v22_08;
490 class RegressionTests_v22_11;
491 class RegressionTests_v23_07;
492 class RegressionTests_v23_08;
493 class RegressionTests_v23_09;
494 class RegressionTests_v23_10;
495 class RegressionTests_v23_11;
496 class RegressionTests_v23_12;
497 class RegressionTests_v24_02;
498 class RegressionTests_v6_1;
499 class RegressionTests_v6_7;
500 class RegressionTests_v6_8;
501 class RegressionTests_v6_9;
502 class RegressionTests_v7_0;
503 class RegressionTests_v7_1;
504 class RegressionTests_v7_2;
505 class RegressionTests_v7_3;
506 class RegressionTests_v7_4;
507 class RegressionTests_v7_5;
508 class RegressionTests_v7_6;
509 class RegressionTests_v7_7;
510 class RegressionTests_v7_8;
511 class RegressionTests_v8_1;
512 class RegressionTests_v8_3;
513 class RegressionTests_v8_4;
514 class RegressionTests_v8_5;
515 class RegressionTests_v8_6;
516 class RegressionTests_v8_7;
517 class RegressionTests_v8_8;
518 class RegressionTests_v8_9;
519 class RegressionTests_v9_0;
520 class RegressionTests_v9_1;
521 class RegressionTests_v9_2;
522 class RegressionTests_v9_3;
523 class RegressionTests_v9_4;
524 class RegressionTests_v9_5;
525 class RegressionTests_v9_6;
526 class RegressionTests_v9_8;
527 class RegressionTests_v9_9;
528 namespace Text
529 {
530 class TextFragmentAbsorberTests;
531 class TextFragmentTests;
532 class TextSegmentTests;
533 } // namespace Text
534 namespace Utils
535 {
536 class DocumentComparer;
537 } // namespace Utils
538 class XfaRendererTests;
539 } // namespace Tests
540 class TeXConverter;
541 namespace Text
542 {
543 class CharInfoCollection;
544 class Font;
545 class FontAbsorber;
546 class FontCollection;
547 class IFontSubstitutionRegistrator;
548 class TextAbsorber;
549 class TextFragmentAbsorber;
550 class TextSegmentCollection;
551 } // namespace Text
552 class TextBoxFieldXfa;
553 class TeXToPdfConverter;
554 class TextStamp;
555 class UnifiedSaveOptions;
556 enum class UsageMode;
557 namespace Utils
558 {
559 class DictionaryEditor;
560 } // namespace Utils
561 class XfaMerge;
562 class XForm;
563 class XFormCollection;
564 class XImage;
565 class XImageCollection;
566 class XpsConverter;
567 } // namespace Pdf
568 namespace Rendering
569 {
570 class ApsPage;
571 } // namespace Rendering
572 namespace src
573 {
574 class TreeNamedDestinations;
575 } // namespace src
576 } // namespace Aspose
577 namespace System
578 {
579 namespace Collections
580 {
581 namespace Generic
582 {
583 template <typename, typename> class IDictionary;
584 template <typename> class IEnumerable;
585 template <typename> class List;
586 } // namespace Generic
587 } // namespace Collections
588 namespace Drawing
589 {
590 class Image;
591 class RectangleF;
592 } // namespace Drawing
593 namespace IO
594 {
595 class MemoryStream;
596 class Stream;
597 } // namespace IO
598 namespace Web
599 {
600 class HttpResponse;
601 } // namespace Web
602 namespace Xml
603 {
604 class XmlReaderSettings;
605 class XmlTextWriter;
606 } // namespace Xml
607 } // namespace System
608 
609 namespace Aspose {
610 
611 namespace Pdf {
612 
616 class ASPOSE_PDF_SHARED_CLASS Document final : public System::IDisposable, public Aspose::Pdf::ISupportsMemoryCleanup, public Aspose::Pdf::LicenseManagement::IVentureLicenseTarget
617 {
618  typedef Document ThisType;
621  typedef Aspose::Pdf::LicenseManagement::IVentureLicenseTarget BaseType2;
622 
623  typedef ::System::BaseTypesInfo<BaseType, BaseType1, BaseType2> ThisTypeBaseTypesInfo;
624  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
625  ASSEMBLY_TYPE_DECL();
626 
628  friend class Aspose::Pdf::PdfToXmlSerializer;
629  friend class Aspose::Pdf::ApsFragment;
630  friend class Aspose::Pdf::ApsFragmentCollection;
631  friend class Aspose::Pdf::ApsFragmentCollection;
632  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::FontFactory;
633  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::Utilities::DocumentFontsIterator;
634  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::Utilities::DocumentFontsSubsetter;
635  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::Utilities::DocumentFontsUnembedder;
637  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::ConvertHelpers::LowLevelFontSubstitutor;
638  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::Utilities::XObjectsProcessor;
639  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::Utilities::DocumentCIDType2FontContentUpdater;
642  friend class Aspose::Pdf::Interchange::DocumentInterchange;
643  friend class Aspose::Pdf::Interchange::Helpers::MetadataHelper;
644  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::PdfUaConvertStrategy;
645  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::PdfConvertStrategy;
646  friend class Aspose::Pdf::LicenseManagement::RestrictionChecker;
647  friend class Aspose::Pdf::LicenseManagement::RestrictionChecker2;
649  friend class Aspose::Pdf::Optimization::ImageCompressor2;
650  friend class Aspose::Pdf::Optimization::ResourceOptimizer;
651  friend class Aspose::Pdf::Optimization::UnusedObjectsScanner;
652  friend class Aspose::Pdf::PdfToApsConverter;
653  friend class Aspose::Pdf::ApsPageFilter;
654  friend class Aspose::Pdf::Engine::Presentation::IndependentImpl::ColorInitializerStrategies::RgbColorConversionStrategy;
667  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::ConvertHelpers::FontUtils;
668  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::ConvertHelpers::FontSharedObjectsUpdateManager;
669  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::GlyphWidths::TrueTypeGlyphWidthsProcessor;
670  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::PdfXConvertStrategy;
671  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::TransparentContentRemoval;
672  friend class Aspose::Pdf::PageModel::AnnotationElement;
673  friend class Aspose::Pdf::PageModel::GraphicElement;
674  friend class Aspose::Pdf::PageModel::ImageElement;
675  friend class Aspose::Pdf::PageModel::TextElement;
677  friend class Aspose::Pdf::Facades::LogicalStructureConcatenation;
678  friend class Aspose::Pdf::Engine::CommonData::PageContent::ResourceDictionary;
679  friend class Aspose::Pdf::Engine::CommonData::Text::Encoding::PdfFontEncoding::SimpleFontEncodingBase;
680  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::CIDFont;
681  friend class Aspose::Pdf::Engine::CommonData::Text::Fonts::PdfFont;
682  friend class Aspose::Pdf::Engine::CommonData::Text::Segmenting::PhysicalTextSegment;
683  friend class Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmentBuilder;
684  friend class Aspose::Pdf::Engine::CommonData::Text::Segmenting::TextSegmenter;
685  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::PdfAConvertStrategy;
686  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::TaggedPdfConvertStrategy;
687  friend class Aspose::Pdf::Engine::IO::ConvertStrategies::VersionConvertStrategy;
688  friend class Aspose::Pdf::Engine::IO::SaveStrategies::SimpleSaveStrategy;
689  friend class Aspose::Pdf::Engine::PdfDocument;
690  friend class Aspose::Pdf::Engine::Presentation::APSImpl::APSPresenter;
691  friend class Aspose::Pdf::Tagged::TaggedContent;
692  friend class Aspose::Pdf::Tagged::TaggedContext;
694  friend class Aspose::Pdf::MobiXmlConverter;
695  friend class Aspose::Pdf::ApsUsingConverter;
698  friend class Aspose::Pdf::HtmlConverter;
700  friend class Aspose::src::TreeNamedDestinations;
701  friend class Aspose::Pdf::Devices::ImageGenerator;
721  friend class Aspose::Pdf::Stamp;
734  friend class Aspose::Pdf::Forms::ChoiceOptionCollection;
737  friend class Aspose::Pdf::Forms::Form;
748  friend class Aspose::Pdf::OutlineCollection;
750  friend class Aspose::Pdf::Page;
752  friend class Aspose::Pdf::PageCollection;
766  friend class Aspose::Pdf::TextBoxFieldXfa;
767  friend class Aspose::Pdf::XForm;
769  friend class Aspose::Pdf::XFormCollection;
770  friend class Aspose::Pdf::XImage;
772  friend class Aspose::Pdf::XImageCollection;
773  friend class Aspose::Pdf::DocOutOfMemoryHandler;
774  friend class Aspose::Pdf::DocConverter;
776  friend class Aspose::Pdf::ApsToPdfConverter;
777  friend class Aspose::Pdf::XpsConverter;
778  friend class Aspose::Pdf::XfaMerge;
779  friend class Aspose::Pdf::TeXConverter;
780  friend class Aspose::Pdf::TeXToPdfConverter;
781  friend class Aspose::Pdf::Artifact;
783  friend class Aspose::Pdf::EpubConverter;
784  friend class Aspose::Pdf::PclConverter;
785  friend class Aspose::Pdf::SvgConverter;
786  friend class Aspose::Pdf::PptxExporter;
788  friend class Aspose::Pdf::PsConverter;
790  friend class Aspose::Pdf::OutputIntents;
791  friend class Aspose::Pdf::Facades::LogicalStructureCopier;
793  friend class Aspose::Pdf::PageTreeBalancer;
813  friend class Aspose::Pdf::FlowConverter;
814  friend class Aspose::Pdf::Tests::Collections::OperatorCollectionTests;
815  friend class Aspose::Pdf::Tests::Text::TextSegmentTests;
816  friend class Aspose::Pdf::Tests::Text::TextFragmentAbsorberTests;
817  friend class Aspose::Pdf::Tests::Text::TextFragmentTests;
818  friend class Aspose::Pdf::Tests::Engine::IO::VersionsTests;
819  friend class Aspose::Pdf::Tests::Facades::DocumentTest;
820  friend class Aspose::Pdf::Tests::Facades::PdfFileEditorTests;
821  friend class Aspose::Pdf::Tests::Engine::IO::PdfAConvertTests;
822  friend class Aspose::Pdf::Tests::Engine::IO::PdfXConvertTests;
823  friend class Aspose::Pdf::Tests::OriginalKit::New::FunctionalTests_v4_8;
824  friend class Aspose::Pdf::Tests::OriginalKit::New::RegressionTests_v4_4;
825  friend class Aspose::Pdf::Tests::OriginalKit::New::RegressionTests_v4_5;
826  friend class Aspose::Pdf::Tests::XfaRendererTests;
827  friend class Aspose::Pdf::Tests::Engine::CommonData::PageContent::Operators::CommonOperationTests;
828  friend class Aspose::Pdf::Tests::Annotations::PdfActionTests;
829  friend class Aspose::Pdf::Tests::RegressionTests_v6_1;
830  friend class Aspose::Pdf::Tests::RegressionTests_v7_0;
831  friend class Aspose::Pdf::Tests::RegressionTests_v7_6;
832  friend class Aspose::Pdf::Tests::RegressionTests_v8_3;
833  friend class Aspose::Pdf::Tests::RegressionTests_v8_4;
834  friend class Aspose::Pdf::Tests::RegressionTests_v8_6;
835  friend class Aspose::Pdf::Tests::RegressionTests_v8_8;
836  friend class Aspose::Pdf::Tests::RegressionTests_v8_9;
837  friend class Aspose::Pdf::Tests::RegressionTests_v9_0;
838  friend class Aspose::Pdf::Tests::RegressionTests_v9_1;
839  friend class Aspose::Pdf::Tests::RegressionTests_v9_2;
840  friend class Aspose::Pdf::Tests::RegressionTests_v9_4;
841  friend class Aspose::Pdf::Tests::RegressionTests_v9_6;
842  friend class Aspose::Pdf::Tests::RegressionTests_v9_9;
843  friend class Aspose::Pdf::Tests::RegressionTests_v10_0;
844  friend class Aspose::Pdf::Tests::RegressionTests_v10_5;
845  friend class Aspose::Pdf::Tests::RegressionTests_v10_3;
846  friend class Aspose::Pdf::Tests::RegressionTests_v11_1;
847  friend class Aspose::Pdf::Tests::RegressionTests_v11_4;
848  friend class Aspose::Pdf::Tests::RegressionTests_v11_7;
849  friend class Aspose::Pdf::Tests::RegressionTests_v11_9;
850  friend class Aspose::Pdf::Tests::RegressionTests_v11_6;
851  friend class Aspose::Pdf::Tests::RegressionTests_v16_11;
852  friend class Aspose::Pdf::Tests::RegressionTests_v16_12;
853  friend class Aspose::Pdf::Tests::RegressionTests_v17_2;
854  friend class Aspose::Pdf::Tests::RegressionTests_v17_4;
855  friend class Aspose::Pdf::Tests::RegressionTests_v17_9;
856  friend class Aspose::Pdf::Tests::RegressionTests_v18_2;
857  friend class Aspose::Pdf::Tests::RegressionTests_v18_3;
858  friend class Aspose::Pdf::Tests::RegressionTests_v18_5;
859  friend class Aspose::Pdf::Tests::RegressionTests_v18_7;
860  friend class Aspose::Pdf::Tests::RegressionTests_v18_9;
861  friend class Aspose::Pdf::Tests::RegressionTests_v19_2;
862  friend class Aspose::Pdf::Tests::RegressionTests_v19_6;
863  friend class Aspose::Pdf::Tests::RegressionTests_v19_7;
864  friend class Aspose::Pdf::Tests::RegressionTests_v19_8;
865  friend class Aspose::Pdf::Tests::RegressionTests_v19_9;
866  friend class Aspose::Pdf::Tests::RegressionTests_v19_10;
867  friend class Aspose::Pdf::Tests::RegressionTests_v22_08;
868  friend class Aspose::Pdf::Tests::Engine::CommonData::Text::Fonts::FontSubstitutionRegistratorTests;
869  friend class Aspose::Pdf::Tests::Engine::IO::PdfUaConvertTests;
870  friend class Aspose::Pdf::Tests::Engine::IO::PdfUaGenerateTests;
871  friend class Aspose::Pdf::Tests::Lic::MeteredTests;
872  friend class Aspose::Pdf::Tests::PDFUA::PDFUA_CreatingTests;
873  friend class Aspose::Pdf::Tests::Utils::DocumentComparer;
874  friend class Aspose::Pdf::Tests::Plugins::SignatureTests;
875  friend class Aspose::Pdf::Tests::RegressionTests_v6_7;
876  friend class Aspose::Pdf::Tests::RegressionTests_v6_8;
877  friend class Aspose::Pdf::Tests::RegressionTests_v6_9;
878  friend class Aspose::Pdf::Tests::RegressionTests_v7_1;
879  friend class Aspose::Pdf::Tests::RegressionTests_v7_2;
880  friend class Aspose::Pdf::Tests::RegressionTests_v7_3;
881  friend class Aspose::Pdf::Tests::RegressionTests_v7_4;
882  friend class Aspose::Pdf::Tests::RegressionTests_v7_5;
883  friend class Aspose::Pdf::Tests::RegressionTests_v7_7;
884  friend class Aspose::Pdf::Tests::RegressionTests_v7_8;
885  friend class Aspose::Pdf::Tests::RegressionTests_v8_1;
886  friend class Aspose::Pdf::Tests::RegressionTests_v8_5;
887  friend class Aspose::Pdf::Tests::RegressionTests_v8_7;
888  friend class Aspose::Pdf::Tests::RegressionTests_v9_3;
889  friend class Aspose::Pdf::Tests::RegressionTests_v9_5;
890  friend class Aspose::Pdf::Tests::RegressionTests_v9_8;
891  friend class Aspose::Pdf::Tests::RegressionTests_v10_2;
892  friend class Aspose::Pdf::Tests::RegressionTests_v10_4;
893  friend class Aspose::Pdf::Tests::RegressionTests_v10_8;
894  friend class Aspose::Pdf::Tests::RegressionTests_v10_9;
895  friend class Aspose::Pdf::Tests::RegressionTests_v11_5;
896  friend class Aspose::Pdf::Tests::RegressionTests_v11_8;
897  friend class Aspose::Pdf::Tests::RegressionTests_v17_10;
898  friend class Aspose::Pdf::Tests::RegressionTests_v17_11;
899  friend class Aspose::Pdf::Tests::RegressionTests_v17_12;
900  friend class Aspose::Pdf::Tests::RegressionTests_v18_11;
901  friend class Aspose::Pdf::Tests::RegressionTests_v19_1;
902  friend class Aspose::Pdf::Tests::RegressionTests_v19_4;
903  friend class Aspose::Pdf::Tests::RegressionTests_v19_5;
904  friend class Aspose::Pdf::Tests::RegressionTests_v19_12;
905  friend class Aspose::Pdf::Tests::RegressionTests_v20_01;
906  friend class Aspose::Pdf::Tests::RegressionTests_v20_04;
907  friend class Aspose::Pdf::Tests::RegressionTests_v20_05;
908  friend class Aspose::Pdf::Tests::RegressionTests_v20_06;
909  friend class Aspose::Pdf::Tests::RegressionTests_v20_07;
910  friend class Aspose::Pdf::Tests::RegressionTests_v20_08;
911  friend class Aspose::Pdf::Tests::RegressionTests_v20_10;
912  friend class Aspose::Pdf::Tests::RegressionTests_v20_11;
913  friend class Aspose::Pdf::Tests::RegressionTests_v21_2;
914  friend class Aspose::Pdf::Tests::RegressionTests_v21_7;
915  friend class Aspose::Pdf::Tests::RegressionTests_v21_8;
916  friend class Aspose::Pdf::Tests::RegressionTests_v22_07;
917  friend class Aspose::Pdf::Tests::RegressionTests_v22_11;
918  friend class Aspose::Pdf::Tests::RegressionTests_v23_07;
919  friend class Aspose::Pdf::Tests::RegressionTests_v23_08;
920  friend class Aspose::Pdf::Tests::RegressionTests_v23_09;
921  friend class Aspose::Pdf::Tests::RegressionTests_v23_10;
922  friend class Aspose::Pdf::Tests::RegressionTests_v23_11;
923  friend class Aspose::Pdf::Tests::RegressionTests_v23_12;
924  friend class Aspose::Pdf::Tests::RegressionTests_v24_02;
925  friend class Aspose::Pdf::Tests::Facades::PdfFileSecurityTests;
926  friend class Aspose::Pdf::Tests::PdfFile_2_0Test;
927  friend class Aspose::Pdf::Tests::Plugins::PdfFormTests;
928  friend class Aspose::Pdf::Tests::Lic::MeteredPluginsTests;
929  friend class Aspose::Pdf::Tests::MergePagesTests;
930  friend class Aspose::Pdf::Tests::PageTreeBalancerTests;
931  friend class Aspose::Pdf::Tests::Plugins::FormEditorTests;
932 
933 public:
934 
940  using FontSubstitutionHandler = System::MulticastDelegate<void(System::SharedPtr<Text::Font>, System::SharedPtr<Text::Font>)>;
944  using CallBackGetHocr = System::MulticastDelegate<System::String(System::SharedPtr<System::Drawing::Image>)>;
948  using CallBackGetHocrWithPage = System::MulticastDelegate<System::String(System::SharedPtr<System::Drawing::Image>, System::SharedPtr<Page>)>;
949 
950 public:
951 
955  class ASPOSE_PDF_SHARED_CLASS IDocumentFontUtilities : public virtual System::Object
956  {
957  typedef IDocumentFontUtilities ThisType;
958  typedef System::Object BaseType;
959 
960  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
961  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
962 
963  public:
964 
969  virtual void SubsetFonts(FontSubsetStrategy subsetStrategy) = 0;
975 
976  };
977 
984  {
985  typedef OptimizationOptions ThisType;
987 
988  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
989  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
990 
991  public:
992 
997  static ASPOSE_PDF_SHARED_API System::SharedPtr<Document::OptimizationOptions> All();
998 
999  };
1000 
1004  class ASPOSE_PDF_SHARED_CLASS MergeOptions : public System::Object
1005  {
1006  typedef MergeOptions ThisType;
1007  typedef System::Object BaseType;
1008 
1009  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
1010  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
1011 
1012  public:
1013 
1018  ASPOSE_PDF_SHARED_API uint8_t get_MaximumNodesInLevel() const;
1023  ASPOSE_PDF_SHARED_API void set_MaximumNodesInLevel(uint8_t value);
1029  ASPOSE_PDF_SHARED_API bool get_IsNeedPageTreeBalance() const;
1035  ASPOSE_PDF_SHARED_API void set_IsNeedPageTreeBalance(bool value);
1036 
1037  ASPOSE_PDF_SHARED_API MergeOptions();
1038 
1039  private:
1040 
1041  uint8_t _maximumNodesInLevel;
1042  bool _isNeedPageTreeBalance;
1043 
1044  };
1045 
1046 
1047 protected:
1048 
1049  template<typename T>
1051  {
1052  typedef CutByRestrictionWrapper<T> ThisType;
1053  typedef System::Object BaseType;
1054 
1055  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
1056  RTTI_INFO_TEMPLATE_CLASS(ThisType, ThisTypeBaseTypesInfo);
1057 
1059 
1060  public:
1061 
1063  {
1064  if (!get__IsLicensed() && !doc->get__IsObjectLicensed() && !get_Indivisible() && !list->get_IsReadOnly())
1065  {
1066  while (list->get_Count() > 4)
1067  {
1068  list->RemoveAt(list->get_Count() - 1);
1069  }
1070  }
1071  }
1072 
1073  void SetTemplateWeakPtr(uint32_t argument) override
1074  {
1075  switch (argument)
1076  {
1077  case 0:
1078  break;
1079 
1080  }
1081  }
1082 
1083  };
1084 
1085 
1086 private:
1087 
1088  class FontSubstitutionCallback : public Aspose::Pdf::Text::IFontSubstitutionCallback
1089  {
1090  typedef FontSubstitutionCallback ThisType;
1092 
1093  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
1094  RTTI_INFO_DECL();
1095 
1096  public:
1097 
1098  bool get_NotifyAboutFontSubstitutions() override;
1099  System::SharedPtr<Engine::Addressing::IRegistrar> get_Registrar() override;
1100 
1101  FontSubstitutionCallback(System::SharedPtr<Document> owner);
1102 
1103  void NotifyAboutSubstitution(System::SharedPtr<Text::Font> oldFont, System::SharedPtr<Text::Font> newFont) override;
1104 
1105  private:
1106 
1108 
1109  };
1110 
1111  class DocumentFontUtilities : public Aspose::Pdf::Document::IDocumentFontUtilities
1112  {
1113  typedef DocumentFontUtilities ThisType;
1115 
1116  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
1117  RTTI_INFO_DECL();
1118 
1119  public:
1120 
1121  DocumentFontUtilities(System::SharedPtr<Document> doc);
1122 
1126  void SubsetFonts(FontSubsetStrategy subsetStrategy) override;
1132 
1133  private:
1134 
1136 
1137  };
1138 
1139  class SecondaryStrategies : public Aspose::Pdf::Engine::CommonData::IDocumentSecondaryStrategies
1140  {
1141  typedef SecondaryStrategies ThisType;
1143 
1144  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
1145  RTTI_INFO_DECL();
1146 
1147  public:
1148 
1149  Engine::CommonData::Text::Encoding::PdfFontEncoding::SimpleFontEncodingRules get_SimpleFontEncodingRule() override;
1150  void set_SimpleFontEncodingRule(Engine::CommonData::Text::Encoding::PdfFontEncoding::SimpleFontEncodingRules value);
1151 
1152  SecondaryStrategies();
1153 
1154  private:
1155 
1158 
1159  };
1160 
1161 
1162 public:
1163 
1164  static const ASPOSE_PDF_SHARED_API uint8_t DefaultNodesNumInSubtrees;
1165 
1169  ASPOSE_PDF_SHARED_API System::SharedPtr<JavaScriptCollection> get_JavaScript();
1173  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::OutputIntents> get_OutputIntents();
1177  static ASPOSE_PDF_SHARED_API bool get_IsLicensed();
1182  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::PageInfo> get_PageInfo();
1187  ASPOSE_PDF_SHARED_API void set_PageInfo(System::SharedPtr<Aspose::Pdf::PageInfo> value);
1191  ASPOSE_PDF_SHARED_API bool get_EnableSignatureSanitization() const;
1195  ASPOSE_PDF_SHARED_API void set_EnableSignatureSanitization(bool value);
1199  ASPOSE_PDF_SHARED_API bool get_IsPdfaCompliant();
1203  ASPOSE_PDF_SHARED_API bool get_IsPdfUaCompliant();
1207  ASPOSE_PDF_SHARED_API bool get_IsXrefGapsAllowed();
1211  ASPOSE_PDF_SHARED_API void set_IsXrefGapsAllowed(bool value);
1215  ASPOSE_PDF_SHARED_API System::SharedPtr<NamedDestinationCollection> get_NamedDestinations();
1220  ASPOSE_PDF_SHARED_API System::SharedPtr<DestinationCollection> get_Destinations();
1224  ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormat get_PdfFormat();
1235  ASPOSE_PDF_SHARED_API bool get_EmbedStandardFonts() const;
1246  ASPOSE_PDF_SHARED_API void set_EmbedStandardFonts(bool value);
1258  ASPOSE_PDF_SHARED_API bool get_DisableFontLicenseVerifications() const;
1270  ASPOSE_PDF_SHARED_API void set_DisableFontLicenseVerifications(bool value);
1274  ASPOSE_PDF_SHARED_API System::SharedPtr<Document::IDocumentFontUtilities> get_FontUtilities();
1278  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Collection> get_Collection();
1282  ASPOSE_PDF_SHARED_API void set_Collection(System::SharedPtr<Aspose::Pdf::Collection> value);
1286  ASPOSE_PDF_SHARED_API System::String get_Version();
1292  ASPOSE_PDF_SHARED_API System::SharedPtr<Annotations::IAppointment> get_OpenAction();
1298  ASPOSE_PDF_SHARED_API void set_OpenAction(System::SharedPtr<Annotations::IAppointment> value);
1304  ASPOSE_PDF_SHARED_API bool get_HideToolBar();
1310  ASPOSE_PDF_SHARED_API void set_HideToolBar(bool value);
1316  ASPOSE_PDF_SHARED_API bool get_HideMenubar();
1322  ASPOSE_PDF_SHARED_API void set_HideMenubar(bool value);
1328  ASPOSE_PDF_SHARED_API bool get_HideWindowUI();
1334  ASPOSE_PDF_SHARED_API void set_HideWindowUI(bool value);
1340  ASPOSE_PDF_SHARED_API bool get_FitWindow();
1346  ASPOSE_PDF_SHARED_API void set_FitWindow(bool value);
1352  ASPOSE_PDF_SHARED_API bool get_CenterWindow();
1358  ASPOSE_PDF_SHARED_API void set_CenterWindow(bool value);
1364  ASPOSE_PDF_SHARED_API bool get_DisplayDocTitle();
1370  ASPOSE_PDF_SHARED_API void set_DisplayDocTitle(bool value);
1377  ASPOSE_PDF_SHARED_API System::SharedPtr<PageCollection> get_Pages();
1381  ASPOSE_PDF_SHARED_API System::SharedPtr<OutlineCollection> get_Outlines();
1387  ASPOSE_PDF_SHARED_API System::SharedPtr<Annotations::DocumentActionCollection> get_Actions();
1391  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Forms::Form> get_Form();
1395  ASPOSE_PDF_SHARED_API System::SharedPtr<EmbeddedFileCollection> get_EmbeddedFiles();
1399  ASPOSE_PDF_SHARED_API Aspose::Pdf::Direction get_Direction();
1403  ASPOSE_PDF_SHARED_API void set_Direction(Aspose::Pdf::Direction value);
1407  ASPOSE_PDF_SHARED_API Aspose::Pdf::PageMode get_PageMode();
1411  ASPOSE_PDF_SHARED_API void set_PageMode(Aspose::Pdf::PageMode value);
1415  ASPOSE_PDF_SHARED_API Aspose::Pdf::PageMode get_NonFullScreenPageMode();
1419  ASPOSE_PDF_SHARED_API void set_NonFullScreenPageMode(Aspose::Pdf::PageMode value);
1423  ASPOSE_PDF_SHARED_API Aspose::Pdf::PageLayout get_PageLayout();
1427  ASPOSE_PDF_SHARED_API void set_PageLayout(Aspose::Pdf::PageLayout value);
1431  ASPOSE_PDF_SHARED_API PrintDuplex get_Duplex();
1435  ASPOSE_PDF_SHARED_API void set_Duplex(PrintDuplex value);
1439  ASPOSE_PDF_SHARED_API Aspose::Pdf::PrintScaling get_PrintScaling();
1443  ASPOSE_PDF_SHARED_API void set_PrintScaling(Aspose::Pdf::PrintScaling value);
1447  ASPOSE_PDF_SHARED_API bool get_PickTrayByPdfSize();
1451  ASPOSE_PDF_SHARED_API void set_PickTrayByPdfSize(bool value);
1455  ASPOSE_PDF_SHARED_API System::String get_FileName();
1459  ASPOSE_PDF_SHARED_API System::SharedPtr<DocumentInfo> get_Info();
1467  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Metadata> get_Metadata();
1471  ASPOSE_PDF_SHARED_API System::SharedPtr<Structure::RootElement> get_LogicalStructure();
1475  ASPOSE_PDF_SHARED_API bool get_HandleSignatureChange() const;
1479  ASPOSE_PDF_SHARED_API void set_HandleSignatureChange(bool value);
1485  ASPOSE_PDF_SHARED_API System::Nullable<Aspose::Pdf::CryptoAlgorithm> get_CryptoAlgorithm();
1489  ASPOSE_PDF_SHARED_API bool get_IsLinearized();
1493  ASPOSE_PDF_SHARED_API void set_IsLinearized(bool value);
1497  ASPOSE_PDF_SHARED_API int32_t get_Permissions();
1501  ASPOSE_PDF_SHARED_API bool get_IsEncrypted();
1505  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Id> get_Id();
1509  ASPOSE_PDF_SHARED_API System::SharedPtr<Color> get_Background();
1513  ASPOSE_PDF_SHARED_API void set_Background(System::SharedPtr<Color> value);
1520  ASPOSE_PDF_SHARED_API bool get_OptimizeSize();
1527  ASPOSE_PDF_SHARED_API void set_OptimizeSize(bool value);
1532  ASPOSE_PDF_SHARED_API bool get_AllowReusePageContent();
1537  ASPOSE_PDF_SHARED_API void set_AllowReusePageContent(bool value);
1546  ASPOSE_PDF_SHARED_API bool get_IgnoreCorruptedObjects();
1555  ASPOSE_PDF_SHARED_API void set_IgnoreCorruptedObjects(bool value);
1559  ASPOSE_PDF_SHARED_API System::SharedPtr<PageLabelCollection> get_PageLabels();
1564  ASPOSE_PDF_SHARED_API bool get_EnableObjectUnload();
1569  ASPOSE_PDF_SHARED_API void set_EnableObjectUnload(bool value);
1575  ASPOSE_PDF_SHARED_API System::SharedPtr<Tagged::ITaggedContent> get_TaggedContent();
1576 
1581 
1585  ASPOSE_PDF_SHARED_API void RemovePdfaCompliance();
1589  ASPOSE_PDF_SHARED_API void RemovePdfUaCompliance();
1594  ASPOSE_PDF_SHARED_API void SetTitle(System::String title);
1595 
1600  ASPOSE_PDF_SHARED_API Document(System::SharedPtr<System::IO::Stream> input);
1607  ASPOSE_PDF_SHARED_API Document(System::SharedPtr<System::IO::Stream> input, System::String password, bool isManagedStream);
1613  ASPOSE_PDF_SHARED_API Document(System::SharedPtr<System::IO::Stream> input, bool isManagedStream);
1618  ASPOSE_PDF_SHARED_API Document(System::String filename);
1624  ASPOSE_PDF_SHARED_API Document(System::SharedPtr<System::IO::Stream> input, System::String password);
1628  ASPOSE_PDF_SHARED_API Document();
1634  ASPOSE_PDF_SHARED_API Document(System::String filename, System::String password);
1641  ASPOSE_PDF_SHARED_API Document(System::String filename, System::String password, bool isManagedStream);
1642 
1646  ASPOSE_PDF_SHARED_API void ProcessParagraphs();
1651  ASPOSE_PDF_SHARED_API void Save(System::SharedPtr<System::IO::Stream> output);
1656  ASPOSE_PDF_SHARED_API void Save(System::String outputFileName);
1661  ASPOSE_PDF_SHARED_API void ExportAnnotationsToXfdf(System::String fileName);
1666  ASPOSE_PDF_SHARED_API void ExportAnnotationsToXfdf(System::SharedPtr<System::IO::Stream> stream);
1676  ASPOSE_PDF_SHARED_API void SendTo(System::SharedPtr<Devices::DocumentDevice> device, System::SharedPtr<System::IO::Stream> output);
1692  ASPOSE_PDF_SHARED_API void SendTo(System::SharedPtr<Devices::DocumentDevice> device, int32_t fromPage, int32_t toPage, System::SharedPtr<System::IO::Stream> output);
1702  ASPOSE_PDF_SHARED_API void SendTo(System::SharedPtr<Devices::DocumentDevice> device, System::String outputFileName);
1718  ASPOSE_PDF_SHARED_API void SendTo(System::SharedPtr<Devices::DocumentDevice> device, int32_t fromPage, int32_t toPage, System::String outputFileName);
1722  ASPOSE_PDF_SHARED_API void RemoveMetadata();
1727  ASPOSE_PDF_SHARED_API void ImportAnnotationsFromXfdf(System::String fileName);
1732  ASPOSE_PDF_SHARED_API void ImportAnnotationsFromXfdf(System::SharedPtr<System::IO::Stream> stream);
1739  ASPOSE_PDF_SHARED_API bool Validate(System::String outputLogFileName, Aspose::Pdf::PdfFormat format);
1748  ASPOSE_PDF_SHARED_API bool Convert(System::String outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction);
1757  ASPOSE_PDF_SHARED_API bool Convert(System::SharedPtr<System::IO::Stream> outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction);
1765  ASPOSE_PDF_SHARED_API bool Convert(System::String outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action);
1771  ASPOSE_PDF_SHARED_API bool Convert(System::SharedPtr<PdfFormatConversionOptions> options);
1777  ASPOSE_PDF_SHARED_API System::SharedPtr<System::IO::MemoryStream> ConvertPageToPNGMemoryStream(System::SharedPtr<Page> page);
1784  ASPOSE_PDF_SHARED_API bool Validate(System::SharedPtr<System::IO::Stream> outputLogStream, Aspose::Pdf::PdfFormat format);
1790  ASPOSE_PDF_SHARED_API bool Validate(System::SharedPtr<PdfFormatConversionOptions> options);
1797  ASPOSE_PDF_SHARED_API bool Convert(Document::CallBackGetHocrWithPage callback, bool flattenImages = false);
1804  ASPOSE_PDF_SHARED_API bool Convert(Document::CallBackGetHocr callback, bool flattenImages = false);
1812  ASPOSE_PDF_SHARED_API bool Convert(System::SharedPtr<System::IO::Stream> outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action);
1821  ASPOSE_PDF_SHARED_API bool Convert(Fixup fixup, System::SharedPtr<System::IO::Stream> outputLog, bool onlyValidation = false, System::ArrayPtr<System::SharedPtr<System::Object>> parameters = nullptr);
1830  ASPOSE_PDF_SHARED_API bool Convert(Fixup fixup, System::String outputLog, bool onlyValidation = false, System::ArrayPtr<System::SharedPtr<System::Object>> parameters = nullptr);
1838  ASPOSE_PDF_SHARED_API void LoadFrom(System::String filename, System::SharedPtr<LoadOptions> options);
1839 
1849  ASPOSE_PDF_SHARED_API Document(System::String filename, System::SharedPtr<LoadOptions> options);
1850 
1858  static ASPOSE_PDF_SHARED_API void Convert(System::String srcFileName, System::SharedPtr<LoadOptions> loadOptions, System::String dstFileName, System::SharedPtr<SaveOptions> saveOptions);
1866  static ASPOSE_PDF_SHARED_API void Convert(System::SharedPtr<System::IO::Stream> srcStream, System::SharedPtr<LoadOptions> loadOptions, System::String dstFileName, System::SharedPtr<SaveOptions> saveOptions);
1874  static ASPOSE_PDF_SHARED_API void Convert(System::String srcFileName, System::SharedPtr<LoadOptions> loadOptions, System::SharedPtr<System::IO::Stream> dstStream, System::SharedPtr<SaveOptions> saveOptions);
1882  static ASPOSE_PDF_SHARED_API void Convert(System::SharedPtr<System::IO::Stream> srcStream, System::SharedPtr<LoadOptions> loadOptions, System::SharedPtr<System::IO::Stream> dstStream, System::SharedPtr<SaveOptions> saveOptions);
1883 
1894 
1898  ASPOSE_PDF_SHARED_API void Flatten();
1903  ASPOSE_PDF_SHARED_API void Flatten(System::SharedPtr<Aspose::Pdf::Forms::Form::FlattenSettings> flattenSettings);
1907  ASPOSE_PDF_SHARED_API void FlattenTransparency();
1916  ASPOSE_PDF_SHARED_API void Encrypt(System::String userPassword, System::String ownerPassword, System::SharedPtr<Facades::DocumentPrivilege> privileges, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20);
1924  ASPOSE_PDF_SHARED_API void Encrypt(System::String userPassword, System::String ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm);
1933  ASPOSE_PDF_SHARED_API void Encrypt(System::String userPassword, System::String ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20);
1940  ASPOSE_PDF_SHARED_API void ChangePasswords(System::String ownerPassword, System::String newUserPassword, System::String newOwnerPassword);
1944  ASPOSE_PDF_SHARED_API void Decrypt();
1954  ASPOSE_PDF_SHARED_API void Optimize();
1965  ASPOSE_PDF_SHARED_API void Save();
1970  ASPOSE_PDF_SHARED_API void Save(System::SharedPtr<SaveOptions> options);
1976  ASPOSE_PDF_SHARED_API void Save(System::String outputFileName, SaveFormat format);
1983  ASPOSE_PDF_SHARED_API void Save(System::SharedPtr<System::IO::Stream> outputStream, SaveFormat format);
1989  ASPOSE_PDF_SHARED_API void Save(System::String outputFileName, System::SharedPtr<SaveOptions> options);
1996  ASPOSE_PDF_SHARED_API void Save(System::SharedPtr<System::IO::Stream> outputStream, System::SharedPtr<SaveOptions> options);
2004  ASPOSE_PDF_SHARED_API void Save(System::SharedPtr<System::Web::HttpResponse> response, System::String outputFileName, ContentDisposition disposition, System::SharedPtr<SaveOptions> options);
2008  ASPOSE_PDF_SHARED_API void Dispose() override;
2015  ASPOSE_PDF_SHARED_API void OptimizeResources();
2020  ASPOSE_PDF_SHARED_API void OptimizeResources(System::SharedPtr<Aspose::Pdf::Optimization::OptimizationOptions> strategy);
2026  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Object> GetCatalogValue(System::String key);
2030  ASPOSE_PDF_SHARED_API void FreeMemory() override;
2035  ASPOSE_PDF_SHARED_API void SaveXml(System::String file);
2041  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Object> GetObjectById(System::String id);
2046  ASPOSE_PDF_SHARED_API void BindXml(System::String file);
2050  ASPOSE_PDF_SHARED_API void Repair();
2056  ASPOSE_PDF_SHARED_API void BindXml(System::String xmlFile, System::String xslFile);
2062  ASPOSE_PDF_SHARED_API void BindXml(System::SharedPtr<System::IO::Stream> xmlStream, System::SharedPtr<System::IO::Stream> xslStream);
2074  ASPOSE_PDF_SHARED_API void BindXml(System::SharedPtr<System::IO::Stream> stream);
2079  ASPOSE_PDF_SHARED_API void GetXmpMetadata(System::SharedPtr<System::IO::Stream> stream);
2084  ASPOSE_PDF_SHARED_API void SetXmpMetadata(System::SharedPtr<System::IO::Stream> stream);
2090  ASPOSE_PDF_SHARED_API bool Check(bool doRepair);
2097  ASPOSE_PDF_SHARED_API void PageNodesToBalancedTree(uint8_t nodesNumInSubtrees = DefaultNodesNumInSubtrees);
2103  ASPOSE_PDF_SHARED_API void Merge(System::SharedPtr<Document::MergeOptions> mergeOptions, const System::ArrayPtr<System::SharedPtr<Document>>& documents);
2109  ASPOSE_PDF_SHARED_API void Merge(System::SharedPtr<Document::MergeOptions> mergeOptions, const System::ArrayPtr<System::String>& files);
2114  ASPOSE_PDF_SHARED_API void Merge(const System::ArrayPtr<System::SharedPtr<Document>>& documents);
2119  ASPOSE_PDF_SHARED_API void Merge(const System::ArrayPtr<System::String>& files);
2126  static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> MergeDocuments(System::SharedPtr<Document::MergeOptions> mergeOptions, const System::ArrayPtr<System::String>& files);
2133  static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> MergeDocuments(System::SharedPtr<Document::MergeOptions> mergeOptions, const System::ArrayPtr<System::SharedPtr<Document>>& files);
2139  static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> MergeDocuments(const System::ArrayPtr<System::String>& files);
2145  static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> MergeDocuments(const System::ArrayPtr<System::SharedPtr<Document>>& documents);
2152  ASPOSE_PDF_SHARED_API bool HasIncrementalUpdate();
2153 
2154 protected:
2155 
2158 
2162  System::Guid get_DocumentId() const;
2174  static bool get__IsLicensed();
2178  bool get__IsObjectLicensed();
2179  static bool get_Indivisible();
2180  bool get_IsParagraphsAdded() const;
2181  void set_IsParagraphsAdded(bool value);
2182  bool get_IsLayersAdded();
2183  Text::TextEditOptions::FontReplace get_FontReplaceBehavior() const;
2184  void set_FontReplaceBehavior(Text::TextEditOptions::FontReplace value);
2185 
2186  static int32_t& IndivisibleLevel();
2187 
2189 
2190  static bool get___Indivisible();
2191 
2193 
2194  bool get_NotifyAboutFontSubstitutions();
2195  System::SharedPtr<Text::IFontSubstitutionRegistrator> get_FontSubstitutionRegistrator() const;
2196 
2198 
2202 
2208 
2212  bool get_IsNotCheckMetadata() const;
2216  bool get_IsConvertMetadataAndCatalogOnly() const;
2220  void set_IsConvertMetadataAndCatalogOnly(bool value);
2221  int32_t get_ParentTreeNextKey();
2222  void set_ParentTreeNextKey(int32_t value);
2223  Aspose::Pdf::UsageMode get_UsageMode() const;
2227  System::SharedPtr<Copier> get_DefaultCopier();
2228  bool get_IsConverted() const;
2229 
2230  void ResetRestrictions();
2231  uint64_t CheckRestriction(uint64_t key);
2232  void FillMap(uint64_t key);
2233  static uint64_t TransformRestrictionKey(uint64_t key);
2234  void SetPlugin(Plugins::Plugin plugin);
2235  static bool Restricted(System::SharedPtr<Engine::Data::ITrailerable> tr, int32_t index);
2236  static bool Restricted(System::SharedPtr<Document> doc, int32_t index);
2237  static bool _NeedCheckRestrictions(System::SharedPtr<Document> doc);
2238  static bool _Restricted(System::SharedPtr<Document> doc, int32_t index);
2239  static void _Restrict(System::SharedPtr<Document> doc, int32_t index);
2240  static void _Restrict(System::SharedPtr<Engine::Data::ITrailerable> tr, int32_t index);
2241  static bool _Restricted(System::SharedPtr<Engine::Data::ITrailerable> tr, int32_t index);
2242  static void Restrict(System::SharedPtr<Engine::Data::ITrailerable> tr, int32_t index);
2243  static void Restrict(System::SharedPtr<Document> doc, int32_t index);
2246  template <typename TKey, typename TValue>
2248  {
2249  Restrict(doc, cache->get_Count());
2250  }
2251 
2252  static bool IsVentureLicenseValid(System::SharedPtr<LicenseManagement::VentureLicense> _ventureLicense);
2253  static bool Restricted(System::SharedPtr<LicenseManagement::VentureLicense> ventureLicense, int32_t index);
2254  static void StartOperation();
2255  static void EndOperation();
2266  System::Nullable<Aspose::Pdf::PdfFormat> GetPdfACompliance();
2267  void NotifyAboutSubstitution(System::SharedPtr<Aspose::Pdf::Text::Font> oldFont, System::SharedPtr<Aspose::Pdf::Text::Font> newFont);
2268  void SetSimpleFontEncodingRule(HtmlSaveOptions::FontEncodingRules rule);
2272  void InitInternalHyperlinksTargetsData(System::SharedPtr<UnifiedSaveOptions> options);
2273  void RegisterMetadata(System::SharedPtr<Aspose::Pdf::Metadata> metadata);
2274  static void UpdateMetadata(System::SharedPtr<Engine::PdfDocument> document, System::SharedPtr<Aspose::Pdf::Metadata> metadata);
2275  static void PreSave(System::SharedPtr<PageCollection> pages, System::SharedPtr<SaveOptions> saveOptions);
2276 
2280  Document(PdfVersion version);
2281 
2282  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Document, CODEPORTING_ARGS(PdfVersion version));
2286  void ProcessLayers();
2287  void ValidateAnnotations();
2288  void UncompressObject(System::SharedPtr<Engine::Data::IPdfObject> obj);
2292  void UpdatePagesResources();
2296  void UpdateXFormResources();
2306  bool Convert(System::SharedPtr<System::Xml::XmlTextWriter> xml, Aspose::Pdf::PdfFormat format, bool onlyValidation, ConvertErrorAction action, ConvertTransparencyAction transparencyAction);
2315  bool Convert(System::SharedPtr<System::Xml::XmlTextWriter> xml, Aspose::Pdf::PdfFormat format, bool onlyValidation, ConvertErrorAction action);
2316  bool Convert(System::SharedPtr<PdfFormatConversionOptions> options, bool onlyValidation);
2317  bool Convert(Fixup fixup, System::SharedPtr<System::Xml::XmlTextWriter> outputLog, bool onlyValidation = false, System::ArrayPtr<System::SharedPtr<System::Object>> parameters = nullptr);
2322  bool ContainSignature();
2324  void FlattenA();
2325  void FlattenB();
2326  bool IsCertified();
2332  void UpdatePages();
2337  void SuppressUpdate();
2341  void ResumeUpdate();
2343  void ReleaseResourcesFor(System::SharedPtr<Engine::Data::IPdfObject> obj);
2351  void RegisterAfterImportAnnotation(System::SharedPtr<Annotations::Annotation> annotation);
2355  void AfterImport();
2357  bool Check(bool doRepair, System::SharedPtr<System::IO::Stream> log);
2358  void cpp_keep_trailerable(System::SharedPtr<Engine::Data::ITrailerable> keep);
2359  void cpp_keep_text_segment_builder(System::SharedPtr<Engine::CommonData::Text::Segmenting::TextSegmentBuilder> builder);
2360 
2361  virtual ASPOSE_PDF_SHARED_API ~Document();
2362 
2363 private:
2364 
2368  static const int32_t PdfAPartOne;
2372  static const int32_t PdfAPartTwo;
2376  static const int32_t PdfAPartThree;
2380  static const int32_t PdfAPartDefault;
2387  System::String fileName;
2389  System::SharedPtr<Copier> defualtCopier;
2391  Text::TextEditOptions::FontReplace fontReplaceBehavior;
2394  bool isLowMemoryMode;
2395  bool isNotCheckMetadata;
2396  bool isConvertMetadataAndCatalogOnly;
2397  bool isParagraphsAdded;
2398  bool isTransferInfo;
2402  System::SharedPtr<PageTreeBalancer> _pageTreeBalancer;
2403  bool _enableSignatureSanitization;
2404  bool _overrideMetadata;
2405  System::Guid _documentId;
2408  static uint64_t hashValue;
2410  Plugins::Plugin _usedByPlugin;
2411 
2412  static bool get___IsLicensed();
2413 
2415  bool pr_EmbedStandardFonts;
2416  bool pr_DisableFontLicenseVerifications;
2424  System::String _password;
2426  bool _isDisposed;
2427  int32_t _parentTreeNextKey;
2429  bool pr_HandleSignatureChange;
2433  Aspose::Pdf::UsageMode _usageMode;
2435  bool _isConverted;
2439 
2440  System::SharedPtr<Engine::Data::IPdfDictionary> provideViewerPreferencesEntry(bool createIfNotExists);
2441  System::SharedPtr<Engine::Data::IPdfDictionary> provideMarkingsEntry();
2442  static bool GetIsLicensed();
2443  void SetVentureLicense(System::SharedPtr<LicenseManagement::VentureLicense> license) override;
2444  System::SharedPtr<LicenseManagement::VentureLicense> GetVentureLicense() override;
2445  void RemoveMetadataItem(System::String name);
2446  System::SharedPtr<Text::IFontSubstitutionRegistrator> CreateFontSubstitutionRegistrator();
2447  static void SubstituteStandartFonts(System::SharedPtr<PageCollection> pages);
2448  static void SubstituteStandartFontsOnPage(System::SharedPtr<Page> Page);
2449  void Init();
2450  void AddInternalHyperlinkTarget(System::SharedPtr<Annotations::XYZExplicitDestination> destination);
2451  void AddInternalHyperlinkTarget(System::SharedPtr<Annotations::FitRExplicitDestination> destination);
2452  void Init(System::SharedPtr<System::IO::Stream> input, System::String password);
2453  void Init(System::String fileName, System::String password);
2454  void Init(System::SharedPtr<System::IO::Stream> input, System::String password, bool isManagedStream);
2455  void Init(System::String fileName, System::String password, bool isManagedStream);
2456  static void SetEvaluationWarning(System::SharedPtr<PageCollection> pages);
2458  void ProcessLinks();
2459  void CopyToOutlines(System::SharedPtr<Paragraphs> paragraphs);
2460  void InternalSaveDocument(System::SharedPtr<System::IO::Stream> output, System::SharedPtr<SaveOptions> saveOptions);
2462  void AfterSave(System::SharedPtr<System::IO::Stream> output);
2463  void InternalSave(System::String outputFileName);
2464  void AddConformance(bool result, Aspose::Pdf::PdfFormat format);
2465  void PreparePdfAConversion();
2479  void FinishPdfAConversion();
2480  void assertObject();
2481  void AssertSignedDocument();
2482  void LoadDocument(System::SharedPtr<System::IO::Stream> input, System::SharedPtr<LoadOptions> options, bool needDocumentInit);
2483  void InitDocument();
2484  void InitUsageMode(System::SharedPtr<LoadOptions> options);
2485  static Aspose::Pdf::UsageMode GetUsageModeForConversion(System::SharedPtr<LoadOptions> loadOptions, System::SharedPtr<SaveOptions> saveOptions);
2486  void FixAnnotations(System::SharedPtr<Page> page);
2487  void CallFormatEvent(System::String fieldName);
2488  void CallFormatEvents(System::String root, System::SharedPtr<Engine::Data::IPdfDictionary> field);
2489  void CallFormatEvents();
2491  void ApplyRedactions();
2493  static void ProcessExtGStates(System::SharedPtr<Engine::CommonData::PageContent::IResourceDictionary> resourceDict);
2494  void InternalSave(System::SharedPtr<SaveOptions> saveOptions);
2495  void InternalSave(System::String outputFileName, SaveFormat format);
2496  void InternalSave(System::SharedPtr<System::IO::Stream> outputStream, SaveFormat format);
2497  System::SharedPtr<SaveOptions> CreateSaveOptions(SaveFormat format);
2503  //[Obfuscation(Feature = "virtualization", Exclude = false)]
2504  void InternalSave(System::String outputFileName, System::SharedPtr<SaveOptions> options);
2505  void SaveFormats(System::String outputFileName, System::SharedPtr<SaveOptions> options);
2506  bool IsStreamSavableFormat(System::SharedPtr<SaveOptions> options);
2507  void InternalSave(System::SharedPtr<System::IO::Stream> outputStream, System::SharedPtr<SaveOptions> options);
2508  void Report(System::SharedPtr<System::IO::Stream> outputStream, System::SharedPtr<SaveOptions> options);
2510  void InternalSave(System::SharedPtr<System::Web::HttpResponse> response, System::String outputFileName, ContentDisposition disposition, System::SharedPtr<SaveOptions> options);
2516  static void SubstituteFontsWithDefaultFont(System::SharedPtr<Document> doc, System::String defaultFontName);
2521  static void RemoveUnusedFonts(System::SharedPtr<PageCollection> pages);
2525  void CheckQOperators();
2534 
2535  static struct __StaticConstructor__ { __StaticConstructor__(); } s_constructor__;
2536 
2537 };
2538 
2539 } // namespace Pdf
2540 } // namespace Aspose
2541 
2542 
MulticastDelegate< Args... > Event
Represents an event - a mechanism through which subscribers are notified about an occurence of intere...
Definition: event.h:14
Represents a text segments collection
Definition: TextSegmentCollection.h:66
Represents Aspose.PDF TableGenerator plugin.
Definition: TableGenerator.h:46
Class PDF3DViewArray.
Definition: PDF3DViewArray.h:63
A class for accessing an object&#39;s dictionary.
Definition: DictionaryEditor.h:55
Abstract class representing markup annotation.
Definition: MarkupAnnotation.h:82
Represents Pdf to Jpeg plugin.
Definition: Jpeg.h:24
This class represents saving options for saving that uses unified conversion way (with unified intern...
Definition: UnifiedSaveOptions.h:107
Represents PdfHtml plugin.
Definition: PdfHtml.h:44
Class PDF3DCrossSection.
Definition: PDF3DCrossSection.h:53
Reresents graphic stamp.
Definition: ImageStamp.h:41
Represents PdfXls plugin.
Definition: PdfXls.h:37
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Represents a go-to action that changes the view to a specified destination (page, location...
Definition: GoToAction.h:42
System::MulticastDelegate< void(System::SharedPtr< Text::Font >, System::SharedPtr< Text::Font >)> FontSubstitutionHandler
Represents the method that will handle FontSubstitution event.
Definition: Document.h:940
Represents Pdf to Tiff plugin.
Definition: Tiff.h:24
Provides access to XMP metadata stream.
Definition: Metadata.h:66
Forward declaration.
Definition: boxed_value.h:23
Class representing Combobox field of the form.
Definition: ComboBoxField.h:63
An abstract class for various kinds of stamps which come as descendants.
Definition: Stamp.h:47
Represents an absorber object of a text. Performs text extraction and provides access to the result v...
Definition: TextAbsorber.h:72
Annotation appearance dictionary specifying how the annotation shall be presented visually on the pag...
Definition: AppearanceDictionary.h:72
Represents an image placements collection
Definition: ImagePlacementCollection.h:38
Represents document outline hierarchy.
Definition: OutlineCollection.h:50
CryptoAlgorithm
Represent type of cryptographic algorithm that used in encryption/decryption routines.
Definition: CryptoAlgorithm.h:13
Represents a class for adding texts and images on the pages of existing PDF document.
Definition: PdfFileMend.h:49
Represents a launch action that launches an application or opens or prints a document.
Definition: LaunchAction.h:37
Class representing Acro form object.
Definition: Form.h:115
FontEncodingRules
This enumeration defines rules which tune encoding logic
Definition: HtmlSaveOptions.h:273
Class representing form object.
Definition: Form.h:172
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
System::SharedPtr< ConversionPipeline > Pipeline
Definition: Document.h:2156
Class represents the collection of all destinations (a name tree mapping name strings to destinations...
Definition: NamedDestinationCollection.h:40
Class representing PDF document
Definition: Document.h:616
static bool get__IsLicensed()
Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise...
Definition: Artifact.h:67
Represents abstract formatted fragment.
Definition: FormattedFragment.h:60
Represents the collection of OutputIntent.
Definition: OutputIntents.h:47
All sides borders.It has the same meaning when useing "Box" and will be replaced by "Box" one year la...
Represents signature form field.
Definition: SignatureField.h:83
Dummy class making it possible linking translated code with HttpResponse references, but not executing it. Contains no properly implemented members. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
Definition: dummy_classes.h:51
FontReplace
Font replacement behavior.
Definition: TextEditOptions.h:82
Represents an absorber object of fonts. Performs search for fonts and provides access to search resul...
Definition: FontAbsorber.h:31
Class PDF3DArtwork.
Definition: PDF3DArtwork.h:58
System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< Engine::CommonData::Text::Segmenting::TextSegmentBuilder > > > _commonXObjects
Definition: Document.h:2207
Represents the page information.
Definition: PageInfo.h:40
static void CutByRestriction(System::SharedPtr< Document > doc, System::SharedPtr< System::Collections::Generic::IList< T >> list)
Definition: Document.h:1062
Class represnets push button field.
Definition: ButtonField.h:73
Represents outline entry in outline hierarchy of PDF document.
Definition: OutlineItemCollection.h:68
This class represents collection of JavaScript.
Definition: JavaScriptCollection.h:55
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to function...
Definition: guid.h:33
Class describes rich text editor component.
Definition: RichTextBoxField.h:64
PdfFormat
This class represents an pdf format.
Definition: PdfFormat.h:16
Class for adding stamps (watermark or background) to PDF files.
Definition: PdfFileStamp.h:56
Represents XML form regarding XML Forms Architecture (XFA).
Definition: XFA.h:93
Represents shape - the base graphics object.
Definition: Shape.h:60
Class representing embedded files collection.
Definition: EmbeddedFileCollection.h:98
Class PDF3DCrossSectionArray.
Definition: PDF3DCrossSectionArray.h:56
represents set of options for convert PDF document
Definition: PdfFormatConversionOptions.h:69
Represents an absorber object of text fragments. Performs text search and provides access to search r...
Definition: TextFragmentAbsorber.h:81
Class representing widget annotation.
Definition: WidgetAnnotation.h:93
Definition: signed_info.h:13
Purpose of this interface - to return different strategies which could be used if user sets special f...
Definition: IDocumentSecondaryStrategies.h:42
Class describes actions performed on some actions with document
Definition: DocumentActionCollection.h:37
Base class for acro form fields.
Definition: Field.h:130
This interface declares a callback mechanism to send notifications
Definition: IFontSubstitutionRegistrator.h:101
Represents a class to edit the PDF file&#39;s page, including rotating page, zooming page, moving position and changing page size.
Definition: PdfPageEditor.h:66
Represents a class to convert a pdf file&#39;s each page to images, supporting BMP, JPEG, PNG and TIFF now. Supported content in pdfs: pictures, form, comment.
Definition: PdfConverter.h:94
Represents CharInfo objects collection.
Definition: CharInfoCollection.h:41
SaveOptions type hold level of abstraction on individual save options
Definition: SaveOptions.h:59
bool ReloadAfterLinearization
Definition: Document.h:2157
Class for removing all Java Script code.
Definition: PdfJavaScriptStripper.h:39
PageLayout
Descibes page layout.
Definition: PageLayout.h:20
Class represents artifact collection.
Definition: ArtifactCollection.h:48
Class representing page resources.
Definition: Resources.h:248
ConvertErrorAction
This class represents action for conversion errors.
Definition: ConvertErrorAction.h:11
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Represents PDF to image plugin.
Definition: PdfToImage.h:38
Holds functionality to tune fonts
Definition: Document.h:955
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:29
Represents an absorber object of image placement objects. Performs search of image usages and provide...
Definition: ImagePlacementAbsorber.h:77
Represents Merger plugin.
Definition: Merger.h:34
Class represents item of RadioButton field.
Definition: RadioButtonOptionField.h:62
Represents base options for plugins.
Definition: OrganizerBaseOptions.h:60
Represents file identifier structure.
Definition: Id.h:32
Class which describes document optimization algorithm. Instance of this class may be used as paramete...
Definition: OptimizationOptions.h:31
Class representing text box field.
Definition: TextBoxField.h:88
Represents Aspose.PDF TocGenerator plugin.
Definition: TocGenerator.h:33
Represents a plugin for handling the conversion of PDF documents in a PDF/A format and for validation...
Definition: PdfAConverter.h:43
Class representing page of PDF document.
Definition: Page.h:364
Represents FormExporter plugin.
Definition: FormExporter.h:34
Definition: AFRelationship.h:4
System::SharedPtr< Engine::CommonData::Text::Fonts::Utilities::IDocumentFontSaveOptions > FontSaveOptions
Definition: Document.h:2197
Represents a class for accessing meta information of PDF document.
Definition: PdfFileInfo.h:48
Collection of actions
Definition: ActionCollection.h:49
System::MulticastDelegate< System::String(System::SharedPtr< System::Drawing::Image >, System::SharedPtr< Page >)> CallBackGetHocrWithPage
The call back procedure for hocr recognize.
Definition: Document.h:948
Represents base functionality to extract text, images, and other types of content that may occur on t...
Definition: PdfExtractor.h:61
Class PDF3DStream.
Definition: PDF3DStream.h:62
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition: TextFragmentState.h:69
static const ASPOSE_PDF_SHARED_API uint8_t DefaultNodesNumInSubtrees
Definition: Document.h:1164
Class representing image X-Object.
Definition: XImage.h:173
Class represents ListBox field.
Definition: ListBoxField.h:54
Represents textual stamp.
Definition: TextStamp.h:69
Class representing radio button field.
Definition: RadioButtonField.h:75
Forward declaration of Dictionary class.
Definition: Artifact.h:73
Instead of being defined directly with the explicit syntax, a destination may be referred to indirect...
Definition: NamedDestination.h:45
Fixup
This enum represents an type of Fixup.
Definition: Fixup.h:11
Permissions
This enum represents user&#39;s permissions for a pdf.
Definition: Permissions.h:14
Represents class for color value which can be expressed in different color space. ...
Definition: Color.h:79
The interface defines ways to cleanup memory in case mass operations.
Definition: ISupportsMemoryCleanup.h:13
Represents meta information of PDF document.
Definition: DocumentInfo.h:43
Represents Splitter plugin.
Definition: Splitter.h:34
Represents FormFlattener plugin.
Definition: FormFlattener.h:29
Class PDF3DAnnotation. This class cannot be inherited.
Definition: PDF3DAnnotation.h:85
bool IsPdfAConversionMode
Definition: Document.h:2192
Class representing annotation collection.
Definition: AnnotationCollection.h:56
static bool get_Indivisible()
Represents FormEditor plugin.
Definition: FormEditor.h:32
PageMode
Class descibes used components of the document page.
Definition: PageMode.h:20
Direction
Text direction.
Definition: Direction.h:20
Class represents stamp which uses PDF page as stamp.
Definition: PdfPageStamp.h:47
List forward declaration.
Definition: Artifact.h:74
Represents font collection.
Definition: FontCollection.h:125
Class for extracting images and text from PDF document.
Definition: PdfExtractor.h:83
Class describes list of actions.
Definition: PdfActionCollection.h:43
Represents a class to sign a pdf file with a certificate.
Definition: PdfFileSignature.h:63
Implements operations with PDF file: concatenation, splitting, extracting pages, making booklet...
Definition: PdfFileEditor.h:105
Class representing XImage collection.
Definition: XImageCollection.h:156
Represents the base class for the PdfAConverter plugin options. This class provides properties and me...
Definition: PdfAOptionsBase.h:56
Represents the options to Merge methods.
Definition: Document.h:1004
PrintDuplex
The paper handling option to use when printing the file from the print dialog..
Definition: PrintDuplex.h:20
Class PDF3DView.
Definition: PDF3DView.h:54
Represents Redact annotation.
Definition: RedactionAnnotation.h:61
static System::SharedPtr< System::Object > syncRoot
Definition: Document.h:2188
System::MulticastDelegate< System::String(System::SharedPtr< System::Drawing::Image >)> CallBackGetHocr
The call back procedure for hocr recognize.
Definition: Document.h:944
Class for manipulation with XMP metadata.
Definition: PdfXmpMetadata.h:55
ContentDisposition
MIME protocol Content-Disposition header.
Definition: ContentDisposition.h:11
Interface of object providing enumerator on contained elements.
Definition: Document.h:584
Collection of PDF document pages.
Definition: PageCollection.h:134
Root structure element.
Definition: Element.h:310
Class represents collection of XFormCollection.
Definition: XFormCollection.h:74
Class represeingting page label collection.
Definition: PageLabelCollection.h:37
Represents Signature plugin.
Definition: Signature.h:37
Represents a class to edit PDF file&#39;s content.
Definition: PdfContentEditor.h:89
PrintScaling
The page scaling option that shall be selected when a print dialog is displayed for this document...
Definition: PrintScaling.h:16
Class represent XForm
Definition: XForm.h:185
Class represents the collection of all destinations (a name tree mapping name strings to destinations...
Definition: DestinationCollection.h:47
void SetTemplateWeakPtr(uint32_t argument) override
Set n&#39;th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
Definition: Document.h:1073
Class representing collection of options of the choice field.
Definition: OptionCollection.h:52
Class representing annotation object.
Definition: Annotation.h:299
FontSubsetStrategy
enumerates strategies for font subsetting
Definition: FontSubsetStrategy.h:13
Class which performes reading of FDF format.
Definition: FdfReader.h:67
Represents a class for work with PDF document annotations (comments).
Definition: PdfAnnotationEditor.h:52
This class represents paragraph collection.
Definition: Paragraphs.h:36
Class representing checkbox field
Definition: CheckboxField.h:86
Represents PdfDoc plugin.
Definition: PdfDoc.h:39
Interface for dictionary-alike containers. Objects of this class should only be allocated using Syste...
Definition: Document.h:583
Represents Pdf to Png plugin.
Definition: Png.h:26
Class which describes document optimization algorithm. Instance of this class may be used as paramete...
Definition: Document.h:983
static void Restrict(System::SharedPtr< Document > doc, System::SharedPtr< System::Collections::Generic::Dictionary< TKey, TValue >> cache)
Definition: Document.h:2247
System::SharedPtr< Engine::IPdfDocument > _engineDoc
Instance of IPdfDocument used to access to internal document structure.
Definition: Document.h:2206
Class represents PDF Artifact object.
Definition: Artifact.h:90
ConvertTransparencyAction
This class represents action for conversion of transparency.
Definition: ConvertTransparencyAction.h:11
SaveFormat
Specifies format
Definition: SaveFormat.h:16
Class for editing forms (ading/deleting field etc)
Definition: FormEditor.h:73
Class which allows to create/load documents of different types.
Definition: DocumentFactory.h:37
Interface of indexed container of elements. Objects of this class should only be allocated using Syst...
Definition: TiffDevice.h:50
Whole PDF file will be submitted.
LoadOptions type holds level of abstraction on individual load options
Definition: LoadOptions.h:190