PdfFileEditor.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/io/stream.h>
5 #include <system/exceptions.h>
6 #include <system/collections/icomparer.h>
7 #include <system/array.h>
8 #include <system/action.h>
9 #include <cstdint>
10 
11 #include "Aspose.PDF.Cpp/License/IVentureLicenseTarget.h"
12 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Pdf
17 {
18 namespace Collections
19 {
20 template <typename, typename> class AsposeHashDictionary;
21 } // namespace Collections
22 enum class ContentDisposition;
23 class Copier;
24 class Document;
25 namespace Engine
26 {
27 namespace CommonData
28 {
29 class IPage;
30 } // namespace CommonData
31 namespace Data
32 {
33 class IPdfArray;
34 class IPdfDictionary;
35 class IPdfObject;
36 class IPdfPrimitive;
37 class ITrailerable;
38 } // namespace Data
39 } // namespace Engine
40 namespace Facades
41 {
42 class PdfFileEditor;
43 } // namespace Facades
44 namespace LicenseManagement
45 {
46 class VentureLicense;
47 } // namespace LicenseManagement
48 class Matrix;
49 class OutlineCollection;
50 class OutlineItemCollection;
51 class Page;
52 namespace PageModel
53 {
54 class PageElement;
55 } // namespace PageModel
56 class PageSize;
57 enum class PdfFormat;
58 class Rectangle;
59 class SaveOptions;
60 namespace Tests
61 {
62 namespace Facades
63 {
64 class PdfFileEditorTests;
65 } // namespace Facades
66 } // namespace Tests
67 class XForm;
68 } // namespace Pdf
69 } // namespace Aspose
70 namespace System
71 {
72 namespace Collections
73 {
74 namespace Generic
75 {
76 template <typename, typename> class Dictionary;
77 template <typename> class HashSet;
78 template <typename> class IEnumerable;
79 template <typename> class List;
80 template <typename> class Queue;
81 } // namespace Generic
82 } // namespace Collections
83 namespace IO
84 {
85 class FileInfo;
86 class MemoryStream;
87 enum class SeekOrigin;
88 } // namespace IO
89 class TypeInfo;
90 namespace Web
91 {
92 class HttpResponse;
93 } // namespace Web
94 } // namespace System
95 
96 namespace Aspose {
97 
98 namespace Pdf {
99 
100 namespace Facades {
101 
105 class ASPOSE_PDF_SHARED_CLASS PdfFileEditor final : public Aspose::Pdf::LicenseManagement::IVentureLicenseTarget
106 {
107  typedef PdfFileEditor ThisType;
108  typedef Aspose::Pdf::LicenseManagement::IVentureLicenseTarget BaseType;
109 
110  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
111  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
112 
113  friend class Aspose::Pdf::Tests::Facades::PdfFileEditorTests;
114 
115 public:
116 
121  {
125  StopWithError,
130  ConcatenateIgnoringCorrupted,
134  ConcatenateIgnoringCorruptedObjects
135  };
136 
137 
138 public:
139 
143  class ASPOSE_PDF_SHARED_CLASS CorruptedItem : public System::Object
144  {
145  typedef CorruptedItem ThisType;
146  typedef System::Object BaseType;
147 
148  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
149  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
150 
152 
153  public:
154 
158  ASPOSE_PDF_SHARED_API int32_t get_Index() const;
162  ASPOSE_PDF_SHARED_API System::Exception get_Exception() const;
163 
164  protected:
165 
171  CorruptedItem(int32_t index, System::Exception exception);
172 
173  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(CorruptedItem, CODEPORTING_ARGS(int32_t index, System::Exception exception));
174 
175  private:
176 
177  int32_t _index;
178  System::Exception _exception;
179 
180  };
181 
186  class ASPOSE_PDF_SHARED_CLASS ContentsResizeValue : public System::Object
187  {
188  typedef ContentsResizeValue ThisType;
189  typedef System::Object BaseType;
190 
191  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
192  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
193 
194  public:
195 
199  ASPOSE_PDF_SHARED_API void set_PercentValue(double value);
203  ASPOSE_PDF_SHARED_API void set_UnitValue(double value);
207  ASPOSE_PDF_SHARED_API double get_Value() const;
212  ASPOSE_PDF_SHARED_API bool get_IsPercent() const;
213 
219  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> Percents(double value);
225  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> Units(double value);
230  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> Auto();
231 
232  private:
233 
234  double _value;
235  bool _isPercent;
236 
238 
239  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ContentsResizeValue, CODEPORTING_ARGS());
240 
241  };
242 
255  class ASPOSE_PDF_SHARED_CLASS ContentsResizeParameters : public System::Object
256  {
257  typedef ContentsResizeParameters ThisType;
258  typedef System::Object BaseType;
259 
260  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
261  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
262 
264 
265  public:
266 
270  ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> get_LeftMargin() const;
274  ASPOSE_PDF_SHARED_API void set_LeftMargin(System::SharedPtr<PdfFileEditor::ContentsResizeValue> value);
278  ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> get_RightMargin() const;
282  ASPOSE_PDF_SHARED_API void set_RightMargin(System::SharedPtr<PdfFileEditor::ContentsResizeValue> value);
286  ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> get_TopMargin() const;
290  ASPOSE_PDF_SHARED_API void set_TopMargin(System::SharedPtr<PdfFileEditor::ContentsResizeValue> value);
294  ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> get_BottomMargin() const;
298  ASPOSE_PDF_SHARED_API void set_BottomMargin(System::SharedPtr<PdfFileEditor::ContentsResizeValue> value);
302  ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> get_ContentsWidth() const;
306  ASPOSE_PDF_SHARED_API void set_ContentsWidth(System::SharedPtr<PdfFileEditor::ContentsResizeValue> value);
310  ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeValue> get_ContentsHeight() const;
314  ASPOSE_PDF_SHARED_API void set_ContentsHeight(System::SharedPtr<PdfFileEditor::ContentsResizeValue> value);
315 
319  ASPOSE_PDF_SHARED_API ContentsResizeParameters();
331 
340  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeParameters> Margins(double left, double right, double top, double bottom);
349  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeParameters> MarginsPercent(double left, double right, double top, double bottom);
356  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeParameters> ContentSize(double width, double height);
364  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeParameters> ContentSizePercent(double width, double height);
371  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeParameters> PageResize(double width, double height);
378  static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFileEditor::ContentsResizeParameters> PageResizePct(double widthPct, double heightPct);
379 
380  protected:
381 
382  System::ArrayPtr<System::ArrayPtr<double>> CalculateMargins(double pageWidth, double pageHeight);
383 
384  private:
385 
392 
394 
395  };
396 
400  class ASPOSE_PDF_SHARED_CLASS PageBreak : public System::Object
401  {
402  typedef PageBreak ThisType;
403  typedef System::Object BaseType;
404 
405  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
406  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
407 
408  public:
409 
413  ASPOSE_PDF_SHARED_API int32_t get_PageNumber() const;
417  ASPOSE_PDF_SHARED_API void set_PageNumber(int32_t value);
421  ASPOSE_PDF_SHARED_API double get_Position() const;
425  ASPOSE_PDF_SHARED_API void set_Position(double value);
426 
432  ASPOSE_PDF_SHARED_API PageBreak(int32_t pageNumber, double position);
433 
434  private:
435 
436  int32_t _pageNumber;
437  double _position;
438 
439  };
440 
441 
442 private:
443 
444  class NullStream : public System::IO::Stream
445  {
446  typedef NullStream ThisType;
447  typedef System::IO::Stream BaseType;
448 
449  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
450  RTTI_INFO_DECL();
451 
452  public:
453 
454  int64_t get_Position() const override;
455  void set_Position(int64_t value) override;
456  int64_t get_Length() const override;
457  bool get_CanRead() const override;
458  bool get_CanSeek() const override;
459  bool get_CanWrite() const override;
460 
461  void Write(const System::ArrayPtr<uint8_t>& buffer, int32_t offset, int32_t count) override;
462  int32_t Read(const System::ArrayPtr<uint8_t>& buffer, int32_t offset, int32_t count) override;
463  void SetLength(int64_t value) override;
464  void Flush() override;
465  int64_t Seek(int64_t offset, System::IO::SeekOrigin origin) override;
466 
467  NullStream();
468 
469  private:
470 
471  int64_t pos;
472 
473  };
474 
478  class OptionalContentsItemDescriptor : public System::Object
479  {
480  typedef OptionalContentsItemDescriptor ThisType;
481  typedef System::Object BaseType;
482 
483  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
484  RTTI_INFO_DECL();
485 
486  public:
487 
492 
493  bool addedToOrder;
494 
496 
497  private:
498 
501 
502  };
503 
504  class PageBreakComparer : public System::Collections::Generic::IComparer<System::SharedPtr<Aspose::Pdf::Facades::PdfFileEditor::PageBreak>>
505  {
506  typedef PageBreakComparer ThisType;
508 
509  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
510  RTTI_INFO_DECL();
511 
512  public:
513 
514  int32_t Compare(const System::SharedPtr<PdfFileEditor::PageBreak>& x, const System::SharedPtr<PdfFileEditor::PageBreak>& y) const override;
515 
516  };
517 
518  class DocumentFormatter : public System::Object
519  {
520  typedef DocumentFormatter ThisType;
521  typedef System::Object BaseType;
522 
523  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
524  RTTI_INFO_DECL();
525 
526  public:
527 
528  void Execute();
529 
531 
532  private:
533 
536  double currentPageOffset;
537  double pageBreakOffset;
538  double elementOffset;
539  int32_t pageIndex;
541  System::SharedPtr<Page> currentPage;
542  System::SharedPtr<Page> destPage;
543 
544  void PageBreak(double pageBreakPosition);
545  void CheckPageBreak(System::SharedPtr<Aspose::Pdf::PageModel::PageElement> element);
547 
548  };
549 
550 
551 public:
552 
556  ASPOSE_PDF_SHARED_API System::String get_ConversionLog();
561  ASPOSE_PDF_SHARED_API bool get_MergeDuplicateLayers() const;
566  ASPOSE_PDF_SHARED_API void set_MergeDuplicateLayers(bool value);
570  ASPOSE_PDF_SHARED_API bool get_CopyOutlines() const;
574  ASPOSE_PDF_SHARED_API void set_CopyOutlines(bool value);
578  ASPOSE_PDF_SHARED_API bool get_CopyLogicalStructure() const;
582  ASPOSE_PDF_SHARED_API void set_CopyLogicalStructure(bool value);
586  ASPOSE_PDF_SHARED_API bool get_MergeDuplicateOutlines() const;
590  ASPOSE_PDF_SHARED_API void set_MergeDuplicateOutlines(bool value);
594  ASPOSE_PDF_SHARED_API bool get_PreserveUserRights() const;
598  ASPOSE_PDF_SHARED_API void set_PreserveUserRights(bool value);
602  ASPOSE_PDF_SHARED_API bool get_IncrementalUpdates() const;
606  ASPOSE_PDF_SHARED_API void set_IncrementalUpdates(bool value);
612  ASPOSE_PDF_SHARED_API bool get_OptimizeSize() const;
618  ASPOSE_PDF_SHARED_API void set_OptimizeSize(bool value);
626  ASPOSE_PDF_SHARED_API System::ArrayPtr<System::SharedPtr<PdfFileEditor::CorruptedItem>> get_CorruptedItems();
631  ASPOSE_PDF_SHARED_API PdfFileEditor::ConcatenateCorruptedFileAction get_CorruptedFileAction() const;
636  ASPOSE_PDF_SHARED_API void set_CorruptedFileAction(PdfFileEditor::ConcatenateCorruptedFileAction value);
641  ASPOSE_PDF_SHARED_API System::String get_OwnerPassword() const;
646  ASPOSE_PDF_SHARED_API void set_OwnerPassword(System::String value);
653  ASPOSE_PDF_SHARED_API bool get_AllowConcatenateExceptions();
660  ASPOSE_PDF_SHARED_API void set_AllowConcatenateExceptions(bool value);
665  ASPOSE_PDF_SHARED_API void set_ConvertTo(PdfFormat value);
671  ASPOSE_PDF_SHARED_API bool get_CloseConcatenatedStreams() const;
677  ASPOSE_PDF_SHARED_API void set_CloseConcatenatedStreams(bool value);
686  ASPOSE_PDF_SHARED_API System::String get_UniqueSuffix() const;
695  ASPOSE_PDF_SHARED_API void set_UniqueSuffix(System::String value);
699  ASPOSE_PDF_SHARED_API bool get_KeepActions() const;
703  ASPOSE_PDF_SHARED_API void set_KeepActions(bool value);
708  ASPOSE_PDF_SHARED_API bool get_KeepFieldsUnique() const;
713  ASPOSE_PDF_SHARED_API void set_KeepFieldsUnique(bool value);
717  ASPOSE_PDF_SHARED_API bool get_RemoveSignatures() const;
721  ASPOSE_PDF_SHARED_API void set_RemoveSignatures(bool value);
727  ASPOSE_PDF_SHARED_API System::Exception get_LastException() const;
731  ASPOSE_PDF_SHARED_API bool get_UseDiskBuffer();
735  ASPOSE_PDF_SHARED_API void set_UseDiskBuffer(bool value);
739  ASPOSE_PDF_SHARED_API int32_t get_ConcatenationPacketSize() const;
743  ASPOSE_PDF_SHARED_API void set_ConcatenationPacketSize(int32_t value);
748  ASPOSE_PDF_SHARED_API Aspose::Pdf::ContentDisposition get_ContentDisposition() const;
753  ASPOSE_PDF_SHARED_API void set_ContentDisposition(Aspose::Pdf::ContentDisposition value);
758  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::SaveOptions> get_SaveOptions() const;
763  ASPOSE_PDF_SHARED_API void set_SaveOptions(System::SharedPtr<Aspose::Pdf::SaveOptions> value);
767  ASPOSE_PDF_SHARED_API System::String get_AttachmentName() const;
771  ASPOSE_PDF_SHARED_API void set_AttachmentName(System::String value);
772 
776  ASPOSE_PDF_SHARED_API PdfFileEditor();
777 
787  ASPOSE_PDF_SHARED_API bool Concatenate(System::String firstInputFile, System::String secInputFile, System::String outputFile);
798  ASPOSE_PDF_SHARED_API bool Concatenate(System::SharedPtr<System::IO::Stream> firstInputStream, System::SharedPtr<System::IO::Stream> secInputStream, System::SharedPtr<System::IO::Stream> outputStream);
805  ASPOSE_PDF_SHARED_API bool Concatenate(System::ArrayPtr<System::SharedPtr<Document>> src, System::SharedPtr<Document> dest);
814  ASPOSE_PDF_SHARED_API bool Concatenate(System::ArrayPtr<System::String> inputFiles, System::String outputFile);
823  ASPOSE_PDF_SHARED_API bool Concatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStream, System::SharedPtr<System::IO::Stream> outputStream);
836  ASPOSE_PDF_SHARED_API bool Concatenate(System::String firstInputFile, System::String secInputFile, System::String blankPageFile, System::String outputFile);
849  ASPOSE_PDF_SHARED_API bool Concatenate(System::SharedPtr<System::IO::Stream> firstInputStream, System::SharedPtr<System::IO::Stream> secInputStream, System::SharedPtr<System::IO::Stream> blankPageStream, System::SharedPtr<System::IO::Stream> outputStream);
862  ASPOSE_PDF_SHARED_API bool Append(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<System::SharedPtr<System::IO::Stream>> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr<System::IO::Stream> outputStream);
875  ASPOSE_PDF_SHARED_API bool Append(System::String inputFile, System::ArrayPtr<System::String> portFiles, int32_t startPage, int32_t endPage, System::String outputFile);
887  ASPOSE_PDF_SHARED_API bool Append(System::String inputFile, System::String portFile, int32_t startPage, int32_t endPage, System::String outputFile);
899  ASPOSE_PDF_SHARED_API bool Append(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> portStream, int32_t startPage, int32_t endPage, System::SharedPtr<System::IO::Stream> outputStream);
912  ASPOSE_PDF_SHARED_API bool Insert(System::String inputFile, int32_t insertLocation, System::String portFile, int32_t startPage, int32_t endPage, System::String outputFile);
925  ASPOSE_PDF_SHARED_API bool Insert(System::SharedPtr<System::IO::Stream> inputStream, int32_t insertLocation, System::SharedPtr<System::IO::Stream> portStream, int32_t startPage, int32_t endPage, System::SharedPtr<System::IO::Stream> outputStream);
937  ASPOSE_PDF_SHARED_API bool Insert(System::String inputFile, int32_t insertLocation, System::String portFile, System::ArrayPtr<int32_t> pageNumber, System::String outputFile);
949  ASPOSE_PDF_SHARED_API bool Insert(System::SharedPtr<System::IO::Stream> inputStream, int32_t insertLocation, System::SharedPtr<System::IO::Stream> portStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::IO::Stream> outputStream);
959  ASPOSE_PDF_SHARED_API bool Delete(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::String outputFile);
969  ASPOSE_PDF_SHARED_API bool Delete(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::IO::Stream> outputStream);
980  ASPOSE_PDF_SHARED_API bool Extract(System::String inputFile, int32_t startPage, int32_t endPage, System::String outputFile);
990  ASPOSE_PDF_SHARED_API bool Extract(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::String outputFile);
1001  ASPOSE_PDF_SHARED_API bool Extract(System::SharedPtr<System::IO::Stream> inputStream, int32_t startPage, int32_t endPage, System::SharedPtr<System::IO::Stream> outputStream);
1011  ASPOSE_PDF_SHARED_API bool Extract(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::IO::Stream> outputStream);
1021  ASPOSE_PDF_SHARED_API bool SplitFromFirst(System::String inputFile, int32_t location, System::String outputFile);
1032  ASPOSE_PDF_SHARED_API bool SplitFromFirst(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::IO::Stream> outputStream);
1042  ASPOSE_PDF_SHARED_API bool SplitToEnd(System::String inputFile, int32_t location, System::String outputFile);
1053  ASPOSE_PDF_SHARED_API bool SplitToEnd(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::IO::Stream> outputStream);
1063  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::String inputFile, System::String outputFile);
1073  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream);
1085  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::String inputFile, System::String outputFile, System::SharedPtr<PageSize> pageSize);
1097  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, System::SharedPtr<PageSize> pageSize);
1108  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::String inputFile, System::String outputFile, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1119  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1131  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::String inputFile, System::String outputFile, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1143  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1157  ASPOSE_PDF_SHARED_API bool MakeNUp(System::String inputFile, System::String outputFile, int32_t x, int32_t y);
1171  ASPOSE_PDF_SHARED_API bool MakeNUp(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, int32_t x, int32_t y);
1187  ASPOSE_PDF_SHARED_API bool MakeNUp(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize);
1201  ASPOSE_PDF_SHARED_API bool MakeNUp(System::String firstInputFile, System::String secondInputFile, System::String outputFile);
1213  ASPOSE_PDF_SHARED_API bool MakeNUp(System::SharedPtr<System::IO::Stream> firstInputStream, System::SharedPtr<System::IO::Stream> secondInputStream, System::SharedPtr<System::IO::Stream> outputStream);
1226  ASPOSE_PDF_SHARED_API bool MakeNUp(System::ArrayPtr<System::String> inputFiles, System::String outputFile, bool isSidewise);
1238  ASPOSE_PDF_SHARED_API bool MakeNUp(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStreams, System::SharedPtr<System::IO::Stream> outputStream, bool isSidewise);
1254  ASPOSE_PDF_SHARED_API bool MakeNUp(System::String inputFile, System::String outputFile, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize);
1260  ASPOSE_PDF_SHARED_API System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream>> SplitToPages(System::String inputFile);
1272  ASPOSE_PDF_SHARED_API void SplitToPages(System::String inputFile, System::String fileNameTemplate);
1278  ASPOSE_PDF_SHARED_API void SplitToPages(System::SharedPtr<System::IO::Stream> inputStream, System::String fileNameTemplate);
1317  ASPOSE_PDF_SHARED_API bool ResizeContents(System::SharedPtr<System::IO::Stream> source, System::SharedPtr<System::IO::Stream> destination, System::ArrayPtr<int32_t> pages, double newWidth, double newHeight);
1331  ASPOSE_PDF_SHARED_API bool ResizeContentsPct(System::SharedPtr<System::IO::Stream> source, System::SharedPtr<System::IO::Stream> destination, System::ArrayPtr<int32_t> pages, double newWidth, double newHeight);
1346  ASPOSE_PDF_SHARED_API bool AddMargins(System::SharedPtr<System::IO::Stream> source, System::SharedPtr<System::IO::Stream> destination, System::ArrayPtr<int32_t> pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin);
1361  ASPOSE_PDF_SHARED_API bool AddMarginsPct(System::SharedPtr<System::IO::Stream> source, System::SharedPtr<System::IO::Stream> destination, System::ArrayPtr<int32_t> pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin);
1375  ASPOSE_PDF_SHARED_API bool ResizeContents(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, double newWidth, double newHeight);
1389  ASPOSE_PDF_SHARED_API bool ResizeContentsPct(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, double newWidth, double newHeight);
1404  ASPOSE_PDF_SHARED_API bool AddMargins(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin);
1419  ASPOSE_PDF_SHARED_API bool AddMarginsPct(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin);
1430  ASPOSE_PDF_SHARED_API bool ResizeContents(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters);
1439  ASPOSE_PDF_SHARED_API void ResizeContents(System::SharedPtr<Document> source, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters);
1447  ASPOSE_PDF_SHARED_API void ResizeContents(System::SharedPtr<Document> source, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters);
1454  ASPOSE_PDF_SHARED_API void AddPageBreak(System::SharedPtr<Document> src, System::SharedPtr<Document> dest, System::ArrayPtr<System::SharedPtr<PdfFileEditor::PageBreak>> pageBreaks);
1461  ASPOSE_PDF_SHARED_API void AddPageBreak(System::String src, System::String dest, System::ArrayPtr<System::SharedPtr<PdfFileEditor::PageBreak>> pageBreaks);
1482  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::String firstInputFile, System::String secInputFile, System::String outputFile);
1493  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::ArrayPtr<System::SharedPtr<Document>> src, System::SharedPtr<Document> dest);
1506  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::ArrayPtr<System::String> inputFiles, System::String outputFile);
1519  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStream, System::SharedPtr<System::IO::Stream> outputStream);
1536  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::String firstInputFile, System::String secInputFile, System::String blankPageFile, System::String outputFile);
1553  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::SharedPtr<System::IO::Stream> firstInputStream, System::SharedPtr<System::IO::Stream> secInputStream, System::SharedPtr<System::IO::Stream> blankPageStream, System::SharedPtr<System::IO::Stream> outputStream);
1570  ASPOSE_PDF_SHARED_API bool TryAppend(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<System::SharedPtr<System::IO::Stream>> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr<System::IO::Stream> outputStream);
1587  ASPOSE_PDF_SHARED_API bool TryAppend(System::String inputFile, System::ArrayPtr<System::String> portFiles, int32_t startPage, int32_t endPage, System::String outputFile);
1603  ASPOSE_PDF_SHARED_API bool TryInsert(System::String inputFile, int32_t insertLocation, System::String portFile, System::ArrayPtr<int32_t> pageNumber, System::String outputFile);
1619  ASPOSE_PDF_SHARED_API bool TryInsert(System::SharedPtr<System::IO::Stream> inputStream, int32_t insertLocation, System::SharedPtr<System::IO::Stream> portStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::IO::Stream> outputStream);
1633  ASPOSE_PDF_SHARED_API bool TryDelete(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::String outputFile);
1647  ASPOSE_PDF_SHARED_API bool TryDelete(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::IO::Stream> outputStream);
1662  ASPOSE_PDF_SHARED_API bool TryExtract(System::String inputFile, int32_t startPage, int32_t endPage, System::String outputFile);
1677  ASPOSE_PDF_SHARED_API bool TryExtract(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::String outputFile);
1691  ASPOSE_PDF_SHARED_API bool TryExtract(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::IO::Stream> outputStream);
1705  ASPOSE_PDF_SHARED_API bool TrySplitFromFirst(System::String inputFile, int32_t location, System::String outputFile);
1720  ASPOSE_PDF_SHARED_API bool TrySplitFromFirst(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::IO::Stream> outputStream);
1734  ASPOSE_PDF_SHARED_API bool TrySplitToEnd(System::String inputFile, int32_t location, System::String outputFile);
1749  ASPOSE_PDF_SHARED_API bool TrySplitToEnd(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::IO::Stream> outputStream);
1764  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::String inputFile, System::String outputFile);
1778  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream);
1794  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::String inputFile, System::String outputFile, System::SharedPtr<PageSize> pageSize);
1810  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, System::SharedPtr<PageSize> pageSize);
1825  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::String inputFile, System::String outputFile, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1840  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1856  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::String inputFile, System::String outputFile, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1872  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages);
1890  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::String inputFile, System::String outputFile, int32_t x, int32_t y);
1908  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, int32_t x, int32_t y);
1928  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<System::IO::Stream> outputStream, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize);
1946  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::String firstInputFile, System::String secondInputFile, System::String outputFile);
1962  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::SharedPtr<System::IO::Stream> firstInputStream, System::SharedPtr<System::IO::Stream> secondInputStream, System::SharedPtr<System::IO::Stream> outputStream);
1979  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::ArrayPtr<System::String> inputFiles, System::String outputFile, bool isSidewise);
1995  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStreams, System::SharedPtr<System::IO::Stream> outputStream, bool isSidewise);
2015  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::String inputFile, System::String outputFile, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize);
2048  ASPOSE_PDF_SHARED_API bool TryResizeContents(System::SharedPtr<System::IO::Stream> source, System::SharedPtr<System::IO::Stream> destination, System::ArrayPtr<int32_t> pages, double newWidth, double newHeight);
2063  ASPOSE_PDF_SHARED_API bool TryResizeContents(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters);
2070  ASPOSE_PDF_SHARED_API bool Concatenate(System::ArrayPtr<System::String> inputFiles, System::SharedPtr<System::Web::HttpResponse> response);
2077  ASPOSE_PDF_SHARED_API bool Concatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStream, System::SharedPtr<System::Web::HttpResponse> response);
2087  ASPOSE_PDF_SHARED_API bool Append(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<System::SharedPtr<System::IO::Stream>> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr<System::Web::HttpResponse> response);
2097  ASPOSE_PDF_SHARED_API bool Append(System::String inputFile, System::ArrayPtr<System::String> portFiles, int32_t startPage, int32_t endPage, System::SharedPtr<System::Web::HttpResponse> response);
2107  ASPOSE_PDF_SHARED_API bool Insert(System::String inputFile, int32_t insertLocation, System::String portFile, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2117  ASPOSE_PDF_SHARED_API bool Insert(System::SharedPtr<System::IO::Stream> inputStream, int32_t insertLocation, System::SharedPtr<System::IO::Stream> portStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2125  ASPOSE_PDF_SHARED_API bool Delete(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2133  ASPOSE_PDF_SHARED_API bool Delete(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2141  ASPOSE_PDF_SHARED_API bool Extract(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2149  ASPOSE_PDF_SHARED_API bool Extract(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2157  ASPOSE_PDF_SHARED_API bool SplitFromFirst(System::String inputFile, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2165  ASPOSE_PDF_SHARED_API bool SplitFromFirst(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2173  ASPOSE_PDF_SHARED_API bool SplitToEnd(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2181  ASPOSE_PDF_SHARED_API bool SplitToEnd(System::String inputFile, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2191  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::String inputFile, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages, System::SharedPtr<System::Web::HttpResponse> response);
2201  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages, System::SharedPtr<System::Web::HttpResponse> response);
2209  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::String inputFile, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2217  ASPOSE_PDF_SHARED_API bool MakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2227  ASPOSE_PDF_SHARED_API bool MakeNUp(System::SharedPtr<System::IO::Stream> inputStream, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2237  ASPOSE_PDF_SHARED_API bool MakeNUp(System::String inputFile, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2246  ASPOSE_PDF_SHARED_API bool MakeNUp(System::String inputFile, int32_t x, int32_t y, System::SharedPtr<System::Web::HttpResponse> response);
2255  ASPOSE_PDF_SHARED_API bool MakeNUp(System::SharedPtr<System::IO::Stream> inputStream, int32_t x, int32_t y, System::SharedPtr<System::Web::HttpResponse> response);
2284  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::ArrayPtr<System::String> inputFiles, System::SharedPtr<System::Web::HttpResponse> response);
2295  ASPOSE_PDF_SHARED_API bool TryConcatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStream, System::SharedPtr<System::Web::HttpResponse> response);
2309  ASPOSE_PDF_SHARED_API bool TryAppend(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<System::SharedPtr<System::IO::Stream>> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr<System::Web::HttpResponse> response);
2323  ASPOSE_PDF_SHARED_API bool TryAppend(System::String inputFile, System::ArrayPtr<System::String> portFiles, int32_t startPage, int32_t endPage, System::SharedPtr<System::Web::HttpResponse> response);
2337  ASPOSE_PDF_SHARED_API bool TryInsert(System::String inputFile, int32_t insertLocation, System::String portFile, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2351  ASPOSE_PDF_SHARED_API bool TryInsert(System::SharedPtr<System::IO::Stream> inputStream, int32_t insertLocation, System::SharedPtr<System::IO::Stream> portStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2363  ASPOSE_PDF_SHARED_API bool TryDelete(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2375  ASPOSE_PDF_SHARED_API bool TryDelete(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2387  ASPOSE_PDF_SHARED_API bool TryExtract(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2399  ASPOSE_PDF_SHARED_API bool TryExtract(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response);
2411  ASPOSE_PDF_SHARED_API bool TrySplitFromFirst(System::String inputFile, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2423  ASPOSE_PDF_SHARED_API bool TrySplitFromFirst(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2435  ASPOSE_PDF_SHARED_API bool TrySplitToEnd(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2447  ASPOSE_PDF_SHARED_API bool TrySplitToEnd(System::String inputFile, int32_t location, System::SharedPtr<System::Web::HttpResponse> response);
2461  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::String inputFile, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages, System::SharedPtr<System::Web::HttpResponse> response);
2475  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<PageSize> pageSize, System::ArrayPtr<int32_t> leftPages, System::ArrayPtr<int32_t> rightPages, System::SharedPtr<System::Web::HttpResponse> response);
2487  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::String inputFile, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2499  ASPOSE_PDF_SHARED_API bool TryMakeBooklet(System::SharedPtr<System::IO::Stream> inputStream, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2513  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::String inputFile, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2527  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::SharedPtr<System::IO::Stream> inputStream, int32_t x, int32_t y, System::SharedPtr<PageSize> pageSize, System::SharedPtr<System::Web::HttpResponse> response);
2540  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::String inputFile, int32_t x, int32_t y, System::SharedPtr<System::Web::HttpResponse> response);
2553  ASPOSE_PDF_SHARED_API bool TryMakeNUp(System::SharedPtr<System::IO::Stream> inputStream, int32_t x, int32_t y, System::SharedPtr<System::Web::HttpResponse> response);
2566  ASPOSE_PDF_SHARED_API bool TryResizeContents(System::String source, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters, System::SharedPtr<System::Web::HttpResponse> response);
2580 
2581 protected:
2582 
2586 
2590  bool get__IsObjectLicensed();
2591 
2592 private:
2593 
2594  System::String ownerPassword;
2595  bool closeConcatenatedStreams;
2596  bool _keepFieldUnique;
2597  static const System::String NUM_TEMPLATE;
2598  System::String _uniqueSuffix;
2599  System::Exception _lastException;
2600  PdfFormat _convertTo;
2601  bool _executeConvert;
2602  Aspose::Pdf::ContentDisposition _contentDisposition;
2604  System::String _attachmentName;
2605  bool _optimizeSize;
2606  System::String _conversionLog;
2607  bool _mergeDuplicateLayers;
2608  bool _mergeDuplicateOutlines;
2609  bool _preserveUserRights;
2610  bool _incrementalUpdates;
2611  bool _copyOutlines;
2612  bool _copyLogicalStructure;
2613  bool _removeSignatures;
2614  bool _keepActions;
2615  bool _useDiskBuffer;
2616  int32_t _concatenationPacketSize;
2617  System::SharedPtr<System::IO::Stream> intermediateStream;
2618  System::String bufferFileName;
2620  PdfFileEditor::ConcatenateCorruptedFileAction _corruptedFileAction;
2622 
2623  void SetVentureLicense(System::SharedPtr<Aspose::Pdf::LicenseManagement::VentureLicense> license) override;
2625  bool HasUserRights(System::SharedPtr<Document> doc);
2626  System::String GetBufferFileName();
2634  void Append(System::SharedPtr<Document> dest, System::ArrayPtr<System::SharedPtr<Document>> documents, int32_t startPage, int32_t endPage);
2635  void Insert(System::SharedPtr<Document> dest, int32_t insertLocation, System::SharedPtr<Document> src, System::ArrayPtr<int32_t> pageNumber);
2639  void SplitFromFirst(System::SharedPtr<Document> doc, System::SharedPtr<Document> dest, int32_t location);
2640  void SplitToEnd(System::SharedPtr<Document> doc, System::SharedPtr<Document> dest, int32_t location);
2641  System::String ExtractName(System::String FieldName, System::String& IndexSuffix);
2643  System::ArrayPtr<int32_t> GetRange(int32_t startPage, int32_t endPage);
2645  void SplitToPages(System::SharedPtr<Document> doc, System::String fileNameTemplate);
2668  System::SharedPtr<XForm> PlacePage(System::SharedPtr<Page> source, System::SharedPtr<Document> document, System::SharedPtr<Page> dest, double x, double y, double zoom, System::SharedPtr<Copier> copier);
2678  void PlacePageInRect(System::SharedPtr<Document> src, System::SharedPtr<Document> dest, int32_t srcIndex, int32_t destIndex, System::SharedPtr<Rectangle> rect, System::SharedPtr<Copier> copier);
2688  void MakeBooklet(System::SharedPtr<Document> src, System::SharedPtr<Document> dest, System::ArrayPtr<int32_t> left, System::ArrayPtr<int32_t> right, double width, double height);
2694  System::ArrayPtr<System::ArrayPtr<int32_t>> CreateLayout(int32_t pageCount);
2695  void MakeNUp(System::SharedPtr<Document> src, System::SharedPtr<Document> dest, int32_t NX, int32_t NY, double width, double height);
2697  System::SharedPtr<Document> OpenDocument(System::String fileName);
2699  void Convert(System::SharedPtr<Document> doc);
2701  void PreSave(System::SharedPtr<Document> dest);
2702  void Save(System::SharedPtr<Document> dest, System::String fileName);
2703  void SaveIncremental(System::SharedPtr<Document> dest);
2708  void CloseStreams(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> streams);
2713  void CloseStream(System::SharedPtr<System::IO::Stream> stream);
2721  System::String ModifyField(System::String fieldName, System::String suffix);
2722  System::String ExtractFieldName(System::String fieldName);
2741  void InitOCProperties(System::SharedPtr<Document> dest);
2742  int32_t PagesCount(System::SharedPtr<Document> doc);
2743  int32_t PagesCount(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> srcPages);
2758  int32_t SearchKey(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfArray> array, System::String keyToInsert, int32_t startIndex);
2773  void MergePageLabels(System::SharedPtr<Document> src, System::SharedPtr<Document> dest, int32_t srcPageCount, int32_t destPageCount, System::SharedPtr<Copier> copier);
2774  static void GenerateNewPagesNumsTree(int32_t sourcePageCount, int32_t destinationPageCount, System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfArray> destinationNums, System::SharedPtr<Copier> copier);
2775  static void CopyPageLabelNums(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfArray> sourceNums, System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfArray> destinationNums, System::SharedPtr<Copier> copier, int32_t sourcePageCount);
2783  void ConcatenateDocuments(System::ArrayPtr<System::SharedPtr<Document>> sources, System::SharedPtr<Document>& dest);
2790  bool XrefStreamRequired(System::ArrayPtr<System::SharedPtr<System::IO::FileInfo>> sources);
2792  void TransformAppearance(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfDictionary> appearanceDictionary, double zoomX, double zoomY);
2795  void CheckPageNumber(System::SharedPtr<Document> doc, int32_t pageNumber);
2802  bool TryInvoke(System::Action<> action);
2804 
2805 };
2806 
2807 } // namespace Facades
2808 } // namespace Pdf
2809 } // namespace Aspose
2810 
2811 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Class for specifing page resize parameters. Allow to set the following parameters: Size of result pag...
Definition: PdfFileEditor.h:255
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
Value of margin or content size specified in percents of default space units. This class is used in C...
Definition: PdfFileEditor.h:186
Queue class forward declaration.
Definition: PdfFileEditor.h:80
PdfFormat
This class represents an pdf format.
Definition: PdfFormat.h:16
SeekOrigin
Specifies the reference position in the stream relative to which the position to seek to is specified...
Definition: seekorigin.h:10
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:28
Represents a particular type and provides information about it.
Definition: type_info.h:108
Definition: signed_info.h:13
ConcatenateCorruptedFileAction
Action performed when corrupted file was met in concatenation process.
Definition: PdfFileEditor.h:120
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Class which provides information about corrupted files in time of concatenation.
Definition: PdfFileEditor.h:143
Definition: AFRelationship.h:4
Forward declaration of Dictionary class.
Definition: Artifact.h:73
The blending color space is determined automatically.
static const System::String E_WRONG_PAGE_RANGE
Definition: PdfFileEditor.h:2585
static const System::String E_SMALL_PAGE_RANGE
Definition: PdfFileEditor.h:2584
List forward declaration.
Definition: Artifact.h:74
The coordinates are in the page coordinate context.
Data of page break position.
Definition: PdfFileEditor.h:400
Interface that compares two objects in greater-equal-less sense. Objects of this class should only be...
Definition: icomparer.h:19
Implements operations with PDF file: concatenation, splitting, extracting pages, making booklet...
Definition: PdfFileEditor.h:105
Forward declaration of HashSet class.
Definition: PdfFileEditor.h:77
static const System::String E_EMPTY_PAGE_RANGE
Definition: PdfFileEditor.h:2583
ContentDisposition
MIME protocol Content-Disposition header.
Definition: ContentDisposition.h:11
Interface of object providing enumerator on contained elements.
Definition: Document.h:588
MulticastDelegate< void(Args...)> Action
Delegate type that references methods that have no return value.
Definition: action.h:40
Whole PDF file will be submitted.
A base class for a variety of stream implementations. Objects of this class should only be allocated ...
Definition: stream.h:23