@@ -1474,6 +1474,49 @@ open class PdfAPI {
1474
1474
return requestBuilder.init(method: "GET", URLString: (urlObj?.string ?? URLString), parameters: parameters, isBody: false)
1475
1475
}
1476
1476
1477
+ /**
1478
+
1479
+ - parameter completion: completion handler to receive the data and the error objects
1480
+ */
1481
+ open class func getApiInfo(completion: @escaping ((_ data: ApiInfo?,_ error: Error?) -> Void)) {
1482
+ AuthAspose.checkAuth() {
1483
+ (authError) in
1484
+ guard authError == nil else {
1485
+ completion(nil, authError)
1486
+ return
1487
+ }
1488
+ getApiInfoWithRequestBuilder().execute { (response, error) -> Void in
1489
+ completion(response?.body, error);
1490
+ }
1491
+ }
1492
+ }
1493
+
1494
+
1495
+ /**
1496
+ - GET /pdf/info
1497
+ - OAuth:
1498
+ - type: oauth2
1499
+ - name: JWT
1500
+ - examples: [{contentType=application/json, example={
1501
+ "Version" : "Version",
1502
+ "Name" : "Name"
1503
+ }}]
1504
+
1505
+ - returns: RequestBuilder<ApiInfo>
1506
+ */
1507
+ open class func getApiInfoWithRequestBuilder() -> RequestBuilder<ApiInfo> {
1508
+ let pathUrl = "/pdf/info"
1509
+ let URLString = AsposePdfCloudAPI.basePath + pathUrl
1510
+ let parameters: [String:Any]? = nil
1511
+
1512
+ let urlObj = NSURLComponents(string: URLString)
1513
+
1514
+
1515
+ let requestBuilder: RequestBuilder<ApiInfo>.Type = AsposePdfCloudAPI.requestBuilderFactory.getBuilder()
1516
+
1517
+ return requestBuilder.init(method: "GET", URLString: (urlObj?.string ?? URLString), parameters: parameters, isBody: false)
1518
+ }
1519
+
1477
1520
/**
1478
1521
Read document bookmark.
1479
1522
@@ -1922,7 +1965,7 @@ open class PdfAPI {
1922
1965
}
1923
1966
1924
1967
/**
1925
- Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
1968
+ Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
1926
1969
1927
1970
- parameter name: (path) The document name.
1928
1971
- parameter storage: (query) The document storage. (optional)
@@ -1944,7 +1987,7 @@ open class PdfAPI {
1944
1987
1945
1988
1946
1989
/**
1947
- Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
1990
+ Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
1948
1991
- GET /pdf/{name}/annotations
1949
1992
- OAuth:
1950
1993
- type: oauth2
@@ -10563,7 +10606,7 @@ open class PdfAPI {
10563
10606
}
10564
10607
10565
10608
/**
10566
- Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
10609
+ Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
10567
10610
10568
10611
- parameter name: (path) The document name.
10569
10612
- parameter folder: (query) The document folder. (optional)
@@ -10585,7 +10628,7 @@ open class PdfAPI {
10585
10628
10586
10629
10587
10630
/**
10588
- Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
10631
+ Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
10589
10632
- GET /pdf/{name}/convert/xfatoacroform
10590
10633
- OAuth:
10591
10634
- type: oauth2
@@ -12968,7 +13011,7 @@ open class PdfAPI {
12968
13011
12969
13012
- parameter name: (path) The document name.
12970
13013
- parameter pageNumber: (path) The page number.
12971
- - parameter links: (body) Array of link anotation .
13014
+ - parameter links: (body) Array of link annotation .
12972
13015
- parameter storage: (query) The document storage. (optional)
12973
13016
- parameter folder: (query) The document folder. (optional)
12974
13017
- parameter completion: completion handler to receive the data and the error objects
@@ -13000,7 +13043,7 @@ open class PdfAPI {
13000
13043
13001
13044
- parameter name: (path) The document name.
13002
13045
- parameter pageNumber: (path) The page number.
13003
- - parameter links: (body) Array of link anotation .
13046
+ - parameter links: (body) Array of link annotation .
13004
13047
- parameter storage: (query) The document storage. (optional)
13005
13048
- parameter folder: (query) The document folder. (optional)
13006
13049
@@ -15044,7 +15087,7 @@ open class PdfAPI {
15044
15087
- parameter outPath: (query) Full resulting filename (ex. /folder1/folder2/result.doc)
15045
15088
- parameter password: (query) The password (encrypted Base64).
15046
15089
- parameter storage: (query) The document storage. (optional)
15047
- - parameter file: (form) A file to be derypted . (optional)
15090
+ - parameter file: (form) A file to be decrypted . (optional)
15048
15091
- parameter completion: completion handler to receive the data and the error objects
15049
15092
*/
15050
15093
open class func putDecryptDocument(outPath: String, password: String, storage: String? = nil, file: URL? = nil, completion: @escaping ((_ data: AsposeResponse?,_ error: Error?) -> Void)) {
@@ -15075,7 +15118,7 @@ open class PdfAPI {
15075
15118
- parameter outPath: (query) Full resulting filename (ex. /folder1/folder2/result.doc)
15076
15119
- parameter password: (query) The password (encrypted Base64).
15077
15120
- parameter storage: (query) The document storage. (optional)
15078
- - parameter file: (form) A file to be derypted . (optional)
15121
+ - parameter file: (form) A file to be decrypted . (optional)
15079
15122
15080
15123
- returns: RequestBuilder<AsposeResponse>
15081
15124
*/
@@ -16829,7 +16872,7 @@ open class PdfAPI {
16829
16872
16830
16873
- parameter name: (path) The document name.
16831
16874
- parameter linkId: (path) The link ID.
16832
- - parameter link: (body) Link anotation .
16875
+ - parameter link: (body) Link annotation .
16833
16876
- parameter storage: (query) The document storage. (optional)
16834
16877
- parameter folder: (query) The document folder. (optional)
16835
16878
- parameter completion: completion handler to receive the data and the error objects
@@ -16858,7 +16901,7 @@ open class PdfAPI {
16858
16901
16859
16902
- parameter name: (path) The document name.
16860
16903
- parameter linkId: (path) The link ID.
16861
- - parameter link: (body) Link anotation .
16904
+ - parameter link: (body) Link annotation .
16862
16905
- parameter storage: (query) The document storage. (optional)
16863
16906
- parameter folder: (query) The document folder. (optional)
16864
16907
@@ -17005,7 +17048,7 @@ open class PdfAPI {
17005
17048
/**
17006
17049
Merge a list of documents.
17007
17050
17008
- - parameter name: (path) Resulting documen name.
17051
+ - parameter name: (path) Resulting document name.
17009
17052
- parameter mergeDocuments: (body) MergeDocuments with a list of documents.
17010
17053
- parameter storage: (query) Resulting document storage. (optional)
17011
17054
- parameter folder: (query) Resulting document folder. (optional)
@@ -17033,7 +17076,7 @@ open class PdfAPI {
17033
17076
- name: JWT
17034
17077
- examples: [{contentType=application/json, example=""}]
17035
17078
17036
- - parameter name: (path) Resulting documen name.
17079
+ - parameter name: (path) Resulting document name.
17037
17080
- parameter mergeDocuments: (body) MergeDocuments with a list of documents.
17038
17081
- parameter storage: (query) Resulting document storage. (optional)
17039
17082
- parameter folder: (query) Resulting document folder. (optional)
@@ -21643,7 +21686,7 @@ open class PdfAPI {
21643
21686
}
21644
21687
21645
21688
/**
21646
- Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
21689
+ Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
21647
21690
21648
21691
- parameter outPath: (query) Full resulting filename (ex. /folder1/folder2/result.pdf)
21649
21692
- parameter storage: (query) The document storage. (optional)
@@ -21665,7 +21708,7 @@ open class PdfAPI {
21665
21708
21666
21709
21667
21710
/**
21668
- Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
21711
+ Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
21669
21712
- PUT /pdf/convert/xfatoacroform
21670
21713
- OAuth:
21671
21714
- type: oauth2
@@ -21704,7 +21747,7 @@ open class PdfAPI {
21704
21747
}
21705
21748
21706
21749
/**
21707
- Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
21750
+ Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
21708
21751
21709
21752
- parameter name: (path) The document name.
21710
21753
- parameter outPath: (query) Full resulting filename (ex. /folder1/folder2/result.pdf)
@@ -21727,7 +21770,7 @@ open class PdfAPI {
21727
21770
21728
21771
21729
21772
/**
21730
- Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
21773
+ Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
21731
21774
- PUT /pdf/{name}/convert/xfatoacroform
21732
21775
- OAuth:
21733
21776
- type: oauth2
0 commit comments