Skip to content

Commit 2ecae9d

Browse files
Andrey KaferiAndrey Kaferi
authored andcommitted
Update to v20.2
1 parent 61e4b07 commit 2ecae9d

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

AsposePdfCloud.xcodeproj/project.pbxproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
128B4CEC238C25F500877D55 /* ComboBoxFieldResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 128B4CE8238C25F500877D55 /* ComboBoxFieldResponse.swift */; };
3939
128B4CED238C25F500877D55 /* ComboBoxField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 128B4CE9238C25F500877D55 /* ComboBoxField.swift */; };
4040
128B4CEE238C25F500877D55 /* ComboBoxFields.swift in Sources */ = {isa = PBXBuildFile; fileRef = 128B4CEA238C25F500877D55 /* ComboBoxFields.swift */; };
41+
12AE101C23F45BD7007D00A5 /* 4pagesPdfA.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 12AE101B23F45BD6007D00A5 /* 4pagesPdfA.pdf */; };
4142
1E52FD8B2189F2AB00DEDC40 /* LineAnnotation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E52FD702189F2A700DEDC40 /* LineAnnotation.swift */; };
4243
1E52FD8C2189F2AB00DEDC40 /* PolygonAnnotation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E52FD712189F2A700DEDC40 /* PolygonAnnotation.swift */; };
4344
1E52FD8D2189F2AB00DEDC40 /* CircleAnnotationsResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E52FD722189F2A700DEDC40 /* CircleAnnotationsResponse.swift */; };
@@ -439,6 +440,7 @@
439440
128B4CE8238C25F500877D55 /* ComboBoxFieldResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ComboBoxFieldResponse.swift; sourceTree = "<group>"; };
440441
128B4CE9238C25F500877D55 /* ComboBoxField.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ComboBoxField.swift; sourceTree = "<group>"; };
441442
128B4CEA238C25F500877D55 /* ComboBoxFields.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ComboBoxFields.swift; sourceTree = "<group>"; };
443+
12AE101B23F45BD6007D00A5 /* 4pagesPdfA.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = 4pagesPdfA.pdf; sourceTree = "<group>"; };
442444
1E52FD702189F2A700DEDC40 /* LineAnnotation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LineAnnotation.swift; sourceTree = "<group>"; };
443445
1E52FD712189F2A700DEDC40 /* PolygonAnnotation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PolygonAnnotation.swift; sourceTree = "<group>"; };
444446
1E52FD722189F2A700DEDC40 /* CircleAnnotationsResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CircleAnnotationsResponse.swift; sourceTree = "<group>"; };
@@ -1139,6 +1141,7 @@
11391141
1E668BBC2174B2E2004218A8 /* TestData */ = {
11401142
isa = PBXGroup;
11411143
children = (
1144+
12AE101B23F45BD6007D00A5 /* 4pagesPdfA.pdf */,
11421145
1E84B8C3233CF4F000057874 /* FormDataTextBox.pdf */,
11431146
1ED9932F231FC39700725F99 /* 33226.p12 */,
11441147
1ED99326231EB51600725F99 /* FormData.fdf */,
@@ -1394,6 +1397,7 @@
13941397
isa = PBXResourcesBuildPhase;
13951398
buildActionMask = 2147483647;
13961399
files = (
1400+
12AE101C23F45BD7007D00A5 /* 4pagesPdfA.pdf in Resources */,
13971401
1E84B8C4233CF4F100057874 /* FormDataTextBox.pdf in Resources */,
13981402
1ED99331231FC3B500725F99 /* 33226.p12 in Resources */,
13991403
1ED99329231EB51600725F99 /* FormDataXfa_in.xml in Resources */,
@@ -2001,7 +2005,7 @@
20012005
"@executable_path/Frameworks",
20022006
"@loader_path/Frameworks",
20032007
);
2004-
MARKETING_VERSION = 20.1.0;
2008+
MARKETING_VERSION = 20.2.0;
20052009
PRODUCT_BUNDLE_IDENTIFIER = com.aspose.AsposePdfCloud;
20062010
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
20072011
SKIP_INSTALL = YES;
@@ -2030,7 +2034,7 @@
20302034
"@executable_path/Frameworks",
20312035
"@loader_path/Frameworks",
20322036
);
2033-
MARKETING_VERSION = 20.1.0;
2037+
MARKETING_VERSION = 20.2.0;
20342038
PRODUCT_BUNDLE_IDENTIFIER = com.aspose.AsposePdfCloud;
20352039
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
20362040
SKIP_INSTALL = YES;

AsposePdfCloudTests/ConvertToPdfTests.swift

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,4 +707,57 @@ class ConvertToPdfTests: AsposePdfCloudTests {
707707

708708
self.waitForExpectations(timeout: testTimeout, handler: nil)
709709
}
710+
711+
// PDFA
712+
func testGetPdfAInStorageToPdf() {
713+
714+
let expectation = self.expectation(description: "testGetPdfAInStorageToPdf")
715+
let name = "4pagesPdfA.pdf"
716+
717+
uploadFile(name: name) {
718+
719+
PdfAPI.getPdfAInStorageToPdf(srcPath: "\(self.tempFolder)/\(name)") {
720+
(response, error) in
721+
guard error == nil else {
722+
XCTFail("error testGetPdfAInStorageToPdf: " + (error.debugDescription))
723+
return
724+
}
725+
726+
if let response = response {
727+
XCTAssertFalse(response.isEmpty)
728+
729+
expectation.fulfill()
730+
}
731+
}
732+
}
733+
734+
self.waitForExpectations(timeout: testTimeout, handler: nil)
735+
}
736+
737+
738+
func testPutPdfAInStorageToPdf() {
739+
740+
let expectation = self.expectation(description: "testPutPdfAInStorageToPdf")
741+
let name = "4pagesPdfA.pdf"
742+
let resultName = "fromPdfA.pdf"
743+
744+
uploadFile(name: name) {
745+
746+
PdfAPI.putPdfAInStorageToPdf(name: resultName, srcPath: "\(self.tempFolder)/\(name)", dstFolder: self.tempFolder) {
747+
(response, error) in
748+
guard error == nil else {
749+
XCTFail("error testPutPdfAInStorageToPdf: " + (error.debugDescription))
750+
return
751+
}
752+
753+
if let response = response {
754+
XCTAssertEqual(response.code, self.codeOk)
755+
756+
expectation.fulfill()
757+
}
758+
}
759+
}
760+
761+
self.waitForExpectations(timeout: testTimeout, handler: nil)
762+
}
710763
}

0 commit comments

Comments
 (0)