Interfaces.h
1#pragma once
2// Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3
4#include <system/object_ext.h>
5#include <system/enum.h>
6
7#include "Aspose.Pub.Cpp/aspose_pub_api_defs.h"
8
9namespace Aspose
10{
11namespace Pub
12{
13class Document;
14class PackageDocumentCollection;
15} // namespace Pub
16} // namespace Aspose
17namespace System
18{
19namespace IO
20{
21class Stream;
22} // namespace IO
23} // namespace System
24
25namespace Aspose {
26
27namespace Pub {
28
33{
37 Pdf = 0,
41 Jpg = 1,
45 Png,
49 Tiff,
53 Gif,
57 Bmp,
61 Doc,
65 Docx,
69 Xls,
73 Xlsx,
77 Csv,
81 Pptx,
85 Xps,
89 Epub,
93 Tex,
97 Mhtml,
101 Html,
105 Svg
106};
107
112{
116 File,
120 Stream
121};
122
123/*
127 public interface IDocument
128 {
132 SummaryInfo SummaryInfo { get; }
136 DocSummaryInfo DocumentSummaryInfo { get; }
137 }
138 */
143class ASPOSE_PUB_SHARED_CLASS IPubParser : public virtual System::Object
144{
145 typedef IPubParser ThisType;
146 typedef System::Object BaseType;
147
148 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
149 ASPOSE_PUB_SHARED_RTTI_INFO_DECL();
150
151public:
152
158
159};
160
164class ASPOSE_PUB_SHARED_CLASS IPdfConverter : public virtual System::Object
165{
166 typedef IPdfConverter ThisType;
167 typedef System::Object BaseType;
168
169 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
170 ASPOSE_PUB_SHARED_RTTI_INFO_DECL();
171
172public:
173
186
187};
188
192class ASPOSE_PUB_SHARED_CLASS IPubConverter : public virtual System::Object
193{
194 typedef IPubConverter ThisType;
195 typedef System::Object BaseType;
196
197 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
198 ASPOSE_PUB_SHARED_RTTI_INFO_DECL();
199
200public:
201
216
217};
218
222class ASPOSE_PUB_SHARED_CLASS IPubPackageConverter : public virtual System::Object
223{
225 typedef System::Object BaseType;
226
227 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
228 ASPOSE_PUB_SHARED_RTTI_INFO_DECL();
229
230public:
231
246
247};
248
249} // namespace Pub
250} // namespace Aspose
251
252template<>
253struct EnumMetaInfo<Aspose::Pub::PubExportFormats>
254{
255 static const ASPOSE_PUB_SHARED_API std::array<std::pair<Aspose::Pub::PubExportFormats, const char_t*>, 18>& values();
256};
257
258
259
Declares functionality to convert PUB document into PDF document.
Definition Interfaces.h:165
virtual void ConvertToPdf(System::SharedPtr< Document > doc, System::SharedPtr< System::IO::Stream > outputStream)=0
Converts PUB document into PDF format and saves result in stream passed.
virtual void ConvertToPdf(System::SharedPtr< Document > doc, System::String fileName)=0
Converts PUB document into PDF format and saves result as PDF file.
Declares functionality to convert PUB document into format specified.
Definition Interfaces.h:193
virtual void ConvertToFormat(System::SharedPtr< Document > doc, System::SharedPtr< System::IO::Stream > outputStream, PubExportFormats outFormat)=0
Converts PUB document into format specified and saves result into stream passed.
virtual void ConvertToFormat(System::SharedPtr< Document > doc, System::String fileName, PubExportFormats outFormat)=0
Converts PUB document into format specified and saves result to file located at the fileName .
Declares functionality for converting multiple Publisher documents to a specified format.
Definition Interfaces.h:223
virtual System::SharedPtr< PackageDocumentCollection > ConvertToFormat(System::SharedPtr< PackageDocumentCollection > inputDocumentCollection, bool mergeFiles, PubExportFormats outputFormat, PubDocumentType outputType)=0
Converts each document from the inputDocumentCollection list to the specified format and saves the r...
Declares functionality which parses publisher file and returns Document object as result of parsing.
Definition Interfaces.h:144
virtual System::SharedPtr< Document > Parse()=0
Parses publisher file and returns Documentobject as result of parsing.
A base class for a variety of stream implementations. Objects of this class should only be allocated ...
Definition stream.h:24
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition object.h:65
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition string.h:122
PubExportFormats
Specifies format to export Publisher document.
Definition Interfaces.h:33
@ Bmp
Means export to Bmp format.
@ Xls
Means export to Excel 2003 XML format.
@ Epub
Means export to EPUB format(special format of e-books)
@ Svg
Means export to SVG format.
@ Docx
Means export to DOCX format.
@ Tex
Means export to TEX format i.e. format suitable for Latex text editor.
@ Html
Means export to HTML format.
@ Xps
Means export to XPS format.
@ Xlsx
Means export to Office Open XML (.xlsx) file format.
@ Tiff
Means export to Tiff format.
@ Doc
Means export to DOC format.
@ Mhtml
Means export to MHTML (MIME HTML) format.
@ Csv
Means export to a comma-separated values (CSV) file format.
@ Gif
Means export to Gif format.
@ Jpg
Means export to Jpeg format.
@ Pdf
Means export to PDF format.
@ Pptx
Means export to Microsoft PowerPoint file format.
@ Png
Means export to Png format.
PubDocumentType
Represents storage type for document.
Definition Interfaces.h:112
@ File
Document is located in a file on disk.
@ Stream
Document is in the stream.
Definition Document.h:13
@ Document
1/300 of an inch.
Definition Document.h:55