asposeslidescloud 24.4.0 → 24.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/api.d.ts +2 -1
- package/api.js +3 -1
- package/internal/requestHelper.js +5 -2
- package/model.d.ts +47 -2
- package/model.js +9 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,13 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
|
27
27
|
**Web:** HTML/HTML5
|
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
|
29
29
|
|
|
30
|
+
## Enhancements in Version 24.5
|
|
31
|
+
|
|
32
|
+
* Added **options** parameter to **ImportFromPdf** method. You can specify **options.DetectTables** property to control import behavior.
|
|
33
|
+
* Added **Title** property to **Axis** class for charts.
|
|
34
|
+
* Added **X**, **Y**, **Width**, **Height**, **Overlay**, **FillFormat**, **EffectFormat** and **LineFormat** properties to **ChartTitle** class.
|
|
35
|
+
* Added **HasTitle** property to **Chart** class; removed **HasTitle** property from **ChartTitle** class.
|
|
36
|
+
|
|
30
37
|
## Enhancements in Version 24.4
|
|
31
38
|
|
|
32
39
|
* Added **DownloadMathPortion** and **SaveMathPortion** methods to convert math portions to math markup formats (MathML or LaTeX). See [documentation](https://docs.aspose.cloud/slides/export-a-math-formula/) for more info. **DownloadPortionAsMathML** and **SavePortionAsMathML** methods are deprecated and will be removed after 24.6.
|
package/api.d.ts
CHANGED
|
@@ -2493,11 +2493,12 @@ export declare class SlidesApi {
|
|
|
2493
2493
|
* Create presentation document from pdf or append pdf to an existing presentation.
|
|
2494
2494
|
* @param name Document name.
|
|
2495
2495
|
* @param pdf PDF data.
|
|
2496
|
+
* @param options Import options.
|
|
2496
2497
|
* @param password Document password.
|
|
2497
2498
|
* @param folder Document folder.
|
|
2498
2499
|
* @param storage Document storage.
|
|
2499
2500
|
*/
|
|
2500
|
-
importFromPdf(name: string, pdf: Readable, password?: string, folder?: string, storage?: string): Promise<{
|
|
2501
|
+
importFromPdf(name: string, pdf: Readable, options?: model.PdfImportOptions, password?: string, folder?: string, storage?: string): Promise<{
|
|
2501
2502
|
response: http.ServerResponse;
|
|
2502
2503
|
body: model.Document;
|
|
2503
2504
|
}>;
|
package/api.js
CHANGED
|
@@ -8117,11 +8117,12 @@ class SlidesApi {
|
|
|
8117
8117
|
* Create presentation document from pdf or append pdf to an existing presentation.
|
|
8118
8118
|
* @param name Document name.
|
|
8119
8119
|
* @param pdf PDF data.
|
|
8120
|
+
* @param options Import options.
|
|
8120
8121
|
* @param password Document password.
|
|
8121
8122
|
* @param folder Document folder.
|
|
8122
8123
|
* @param storage Document storage.
|
|
8123
8124
|
*/
|
|
8124
|
-
importFromPdf(name, pdf, password = null, folder = null, storage = null) {
|
|
8125
|
+
importFromPdf(name, pdf, options = null, password = null, folder = null, storage = null) {
|
|
8125
8126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8126
8127
|
// verify required parameter 'name' is not null or undefined
|
|
8127
8128
|
if (name === null || name === undefined) {
|
|
@@ -8140,6 +8141,7 @@ class SlidesApi {
|
|
|
8140
8141
|
method: "POST",
|
|
8141
8142
|
headers: {},
|
|
8142
8143
|
url: localVarPath,
|
|
8144
|
+
data: options,
|
|
8143
8145
|
params: queryParameters
|
|
8144
8146
|
};
|
|
8145
8147
|
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
@@ -34,6 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.addHeaderParameter = exports.addPathParameterToUrl = exports.addQueryParameterToUrl = exports.invokeApiMethod = exports.checkMultipartContent = void 0;
|
|
36
36
|
const axios_1 = require("axios");
|
|
37
|
+
const https = require('https');
|
|
37
38
|
axios_1.default.interceptors.request.use(request => {
|
|
38
39
|
if (request.debug) {
|
|
39
40
|
console.log('>> Request');
|
|
@@ -152,12 +153,14 @@ exports.addHeaderParameter = addHeaderParameter;
|
|
|
152
153
|
function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRequest) {
|
|
153
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
155
|
if (configuration.allowInsecureRequests) {
|
|
155
|
-
requestOptions.
|
|
156
|
+
requestOptions.httpsAgent = new https.Agent({
|
|
157
|
+
rejectUnauthorized: false
|
|
158
|
+
});
|
|
156
159
|
}
|
|
157
160
|
if (!requestOptions.headers) {
|
|
158
161
|
requestOptions.headers = {};
|
|
159
162
|
}
|
|
160
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.
|
|
163
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.5.0";
|
|
161
164
|
if (configuration.timeout) {
|
|
162
165
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
163
166
|
}
|
package/model.d.ts
CHANGED
|
@@ -828,6 +828,10 @@ export declare class Axis {
|
|
|
828
828
|
* True if the axis has a visible title
|
|
829
829
|
*/
|
|
830
830
|
hasTitle?: boolean;
|
|
831
|
+
/**
|
|
832
|
+
* Axis title
|
|
833
|
+
*/
|
|
834
|
+
title?: ChartTitle;
|
|
831
835
|
/**
|
|
832
836
|
* Axis position
|
|
833
837
|
*/
|
|
@@ -1621,6 +1625,10 @@ export declare class Chart extends ShapeBase {
|
|
|
1621
1625
|
* Data source type for categories.
|
|
1622
1626
|
*/
|
|
1623
1627
|
dataSourceForCategories?: DataSource;
|
|
1628
|
+
/**
|
|
1629
|
+
* True if the chart has a title.
|
|
1630
|
+
*/
|
|
1631
|
+
hasTitle?: boolean;
|
|
1624
1632
|
/**
|
|
1625
1633
|
* Gets or sets the title.
|
|
1626
1634
|
*/
|
|
@@ -1936,9 +1944,37 @@ export declare class ChartTitle {
|
|
|
1936
1944
|
*/
|
|
1937
1945
|
text?: string;
|
|
1938
1946
|
/**
|
|
1939
|
-
*
|
|
1947
|
+
* the X location
|
|
1948
|
+
*/
|
|
1949
|
+
x?: number;
|
|
1950
|
+
/**
|
|
1951
|
+
* the Y location
|
|
1940
1952
|
*/
|
|
1941
|
-
|
|
1953
|
+
y?: number;
|
|
1954
|
+
/**
|
|
1955
|
+
* Width
|
|
1956
|
+
*/
|
|
1957
|
+
width?: number;
|
|
1958
|
+
/**
|
|
1959
|
+
* Height
|
|
1960
|
+
*/
|
|
1961
|
+
height?: number;
|
|
1962
|
+
/**
|
|
1963
|
+
* true if other elements are allowed to overlay the legend
|
|
1964
|
+
*/
|
|
1965
|
+
overlay?: boolean;
|
|
1966
|
+
/**
|
|
1967
|
+
* Get or sets the fill format.
|
|
1968
|
+
*/
|
|
1969
|
+
fillFormat?: FillFormat;
|
|
1970
|
+
/**
|
|
1971
|
+
* Get or sets the effect format.
|
|
1972
|
+
*/
|
|
1973
|
+
effectFormat?: EffectFormat;
|
|
1974
|
+
/**
|
|
1975
|
+
* Get or sets the line format.
|
|
1976
|
+
*/
|
|
1977
|
+
lineFormat?: LineFormat;
|
|
1942
1978
|
}
|
|
1943
1979
|
/**
|
|
1944
1980
|
* Represents a chart wall
|
|
@@ -5207,6 +5243,15 @@ export declare namespace PdfExportOptions {
|
|
|
5207
5243
|
PdfA2u
|
|
5208
5244
|
}
|
|
5209
5245
|
}
|
|
5246
|
+
/**
|
|
5247
|
+
* PDF import options.
|
|
5248
|
+
*/
|
|
5249
|
+
export declare class PdfImportOptions {
|
|
5250
|
+
/**
|
|
5251
|
+
* True to detect tables.
|
|
5252
|
+
*/
|
|
5253
|
+
detectTables: boolean;
|
|
5254
|
+
}
|
|
5210
5255
|
/**
|
|
5211
5256
|
* Picture fill.
|
|
5212
5257
|
*/
|
package/model.js
CHANGED
|
@@ -26,9 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.ChartWall = exports.ChartTitle = exports.ChartSeriesGroup = exports.ChartLinesFormat = exports.ChartCategory = exports.Chart = exports.Camera = exports.BubbleSeries = exports.XYSeries = exports.Series = exports.BubbleChartDataPoint = exports.ScatterChartDataPoint = exports.DataPoint = exports.BoxElement = exports.BorderBoxElement = exports.BlurImageEffect = exports.BlurEffect = exports.BlockElement = exports.BiLevelEffect = exports.Base64InputFile = exports.InputFile = exports.BarElement = exports.AxisType = exports.Axis = exports.Axes = exports.AudioFrame = exports.GeometryShape = exports.ShapeBase = exports.ResourceBase = exports.ArrowHeadProperties = exports.ArrayElement = exports.ArcToPathSegment = exports.PathSegment = exports.ApiInfo = exports.AlphaReplaceEffect = exports.AlphaModulateFixedEffect = exports.AlphaModulateEffect = exports.AlphaInverseEffect = exports.AlphaFloorEffect = exports.AlphaCeilingEffect = exports.AlphaBiLevelEffect = exports.ImageTransformEffect = exports.AddSlide = exports.AddShape = exports.AddMasterSlide = exports.AddLayoutSlide = exports.Task = exports.AccessPermissions = exports.AccentElement = exports.MathElement = void 0;
|
|
27
27
|
exports.GraphicalObject = exports.GradientFillStop = exports.GradientFill = exports.GlowEffect = exports.GifExportOptions = exports.ImageExportOptionsBase = exports.GeometryPaths = exports.GeometryPath = exports.FunctionElement = exports.FractionElement = exports.FormatScheme = exports.FontsData = exports.FontSubstRule = exports.FontSet = exports.FontScheme = exports.FontFallbackRule = exports.FontData = exports.FillOverlayImageEffect = exports.FillOverlayEffect = exports.FillFormat = exports.FilesUploadResult = exports.FilesList = exports.FileVersions = exports.FileVersion = exports.StorageFile = exports.ExportOptions = exports.ExportFormat = exports.ErrorDetails = exports.EntityExists = exports.EffectFormat = exports.Effect = exports.DuotoneEffect = exports.DocumentReplaceResult = exports.DocumentProperty = exports.DocumentProperties = exports.Document = exports.DiscUsage = exports.DelimiterElement = exports.DataSource = exports.CustomDashPattern = exports.CubicBezierToPathSegment = exports.Connector = exports.CommonSlideViewProperties = exports.CommentAuthors = exports.CommentAuthor = exports.ColorScheme = exports.ColorReplaceEffect = exports.ColorChangeEffect = exports.ClosePathSegment = exports.ChartWallType = void 0;
|
|
28
28
|
exports.Operation = exports.OneValueSeries = exports.OneValueChartDataPoint = exports.OleObjectFrame = exports.ObjectExist = exports.NotesSlideHeaderFooter = exports.NotesSlideExportFormat = exports.NotesSlide = exports.NotesCommentsLayoutingOptions = exports.NormalViewRestoredProperties = exports.NoFill = exports.NaryOperatorElement = exports.MoveToPathSegment = exports.ModelError = exports.MergingSource = exports.Merge = exports.MatrixElement = exports.MathParagraph = exports.MathFormat = exports.MasterSlides = exports.MasterSlide = exports.MarkdownExportOptions = exports.LuminanceEffect = exports.Literals = exports.LineToPathSegment = exports.LineFormat = exports.LimitElement = exports.LightRig = exports.Legend = exports.LeftSubSuperscriptElement = exports.LayoutSlides = exports.LayoutSlide = exports.InteractiveSequence = exports.Input = exports.InnerShadowEffect = exports.Images = exports.ImageExportOptions = exports.ImageExportFormat = exports.Image = exports.IShapeExportOptions = exports.Hyperlink = exports.HtmlExportOptions = exports.Html5ExportOptions = exports.HslEffect = exports.HeaderFooter = exports.HandoutLayoutingOptions = exports.SlidesLayoutOptions = exports.GroupingCharacterElement = exports.GroupShape = exports.GrayScaleEffect = void 0;
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = void 0;
|
|
29
|
+
exports.ShapeExportFormat = exports.ShapeBevel = exports.Shape = exports.SeriesMarker = exports.Sections = exports.SectionZoomFrame = exports.ZoomObject = exports.Section = exports.ScatterSeries = exports.SaveSlide = exports.SaveShape = exports.Save = exports.RightSubSuperscriptElement = exports.ResponseOutputFile = exports.ResourceUri = exports.ResetSlide = exports.RequestInputFile = exports.ReplaceText = exports.ReorderSlide = exports.RemoveSlide = exports.RemoveShape = exports.ReflectionEffect = exports.RadicalElement = exports.QuadraticBezierToPathSegment = exports.ProtectionProperties = exports.PresetShadowEffect = exports.PresentationsMergeRequest = exports.PresentationToMerge = exports.PptxExportOptions = exports.Portions = exports.PortionFormat = exports.Portion = exports.PlotArea = exports.Placeholders = exports.Placeholder = exports.Pipeline = exports.PictureFrame = exports.PictureFill = exports.PdfImportOptions = exports.PdfExportOptions = exports.PatternFill = exports.PathOutputFile = exports.PathInputFile = exports.Paragraphs = exports.ParagraphFormat = exports.Paragraph = exports.OutputFile = exports.OuterShadowEffect = exports.OrderedMergeRequest = exports.OperationProgress = void 0;
|
|
30
|
+
exports.VbaModule = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.TiffExportOptions = exports.ThreeDFormat = exports.Theme = exports.TextItems = exports.TextItem = exports.TextFrameFormat = exports.TextElement = exports.TextBounds = exports.TableRow = exports.TableColumn = exports.TableCellSplitType = exports.TableCellMergeOptions = exports.TableCell = exports.Table = exports.SwfExportOptions = exports.SvgExportOptions = exports.SuperscriptElement = exports.SummaryZoomSection = exports.SummaryZoomFrame = exports.SubscriptElement = exports.StorageExist = exports.SplitDocumentResult = exports.SpecialSlideType = exports.SolidFill = exports.SoftEdgeEffect = exports.SmartArtShape = exports.SmartArtNode = exports.SmartArt = exports.Slides = exports.SlideShowTransition = exports.SlideShowProperties = exports.SlideReplaceResult = exports.SlideProperties = exports.SlideModernComment = exports.SlideExportFormat = exports.SlideComments = exports.SlideComment = exports.SlideCommentBase = exports.SlideBackground = exports.SlideAnimation = exports.Slide = exports.ShapesAlignmentType = exports.Shapes = exports.ShapeType = exports.ShapeThumbnailBounds = exports.ShapeImageExportOptions = void 0;
|
|
31
|
+
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = void 0;
|
|
32
32
|
/**
|
|
33
33
|
* Math element.
|
|
34
34
|
*/
|
|
@@ -3170,6 +3170,12 @@ exports.PdfExportOptions = PdfExportOptions;
|
|
|
3170
3170
|
ComplianceEnum[ComplianceEnum["PdfA2u"] = 'PdfA2u'] = "PdfA2u";
|
|
3171
3171
|
})(ComplianceEnum = PdfExportOptions.ComplianceEnum || (PdfExportOptions.ComplianceEnum = {}));
|
|
3172
3172
|
})(PdfExportOptions = exports.PdfExportOptions || (exports.PdfExportOptions = {}));
|
|
3173
|
+
/**
|
|
3174
|
+
* PDF import options.
|
|
3175
|
+
*/
|
|
3176
|
+
class PdfImportOptions {
|
|
3177
|
+
}
|
|
3178
|
+
exports.PdfImportOptions = PdfImportOptions;
|
|
3173
3179
|
/**
|
|
3174
3180
|
* Picture fill.
|
|
3175
3181
|
*/
|