Skip to content

Commit 51a1905

Browse files
authored
Merge pull request #66 from aspose-pdf-cloud/develop
update to 25.3
2 parents a090be0 + 1da70b3 commit 51a1905

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Go",
3+
"image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm",
4+
"workspaceFolder": "/SDKs/Go",
5+
"workspaceMount": "source=${localWorkspaceFolder},target=/SDKs/Go,type=bind,consistency=cached",
6+
"mounts": [
7+
"source=${localWorkspaceFolder}/../../Settings,target=/Settings,type=bind,consistency=cached"
8+
]
9+
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ These SDKs are now fully supported. If you have any questions, see any bugs or h
99

1010
Extract Text & Images of a PDF document online https://products.aspose.app/pdf/parser.
1111

12-
## Enhancements in Version 25.2
12+
## Enhancements in Version 25.3
1313
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
14+
1415
## Installation
1516
```
1617
go get -u github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v24

api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (c *APIClient) prepareRequest (
176176

177177
// set custom header
178178
headerParams["x-aspose-client"] = "go sdk"
179-
headerParams["x-aspose-client-version"] = "25.2.0"
179+
headerParams["x-aspose-client-version"] = "25.3.0"
180180

181181
// Detect postBody type and post.
182182
if postBody != nil {

base_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@ func getServercredsJson() string {
5656
panic(err)
5757
}
5858
dir := filepath.Dir(wd)
59-
for !(dir[len(dir)-1] == filepath.Separator || dir == ".") {
59+
ok := true
60+
for ok && dir != "." {
61+
ok = dir[len(dir)-1] != filepath.Separator
6062
servercreds_json := filepath.Join(dir, "Settings", "servercreds.json")
6163
if _, err := os.Stat(servercreds_json); err == nil {
6264
// fmt.Println(`Settings\servercreds.json found: ` + servercreds_json)
6365
return servercreds_json
6466
}
6567
dir = filepath.Dir(dir)
6668
}
69+
6770
panic(`Settings\servercreds.json not found`)
6871
}
6972

images_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ func TestGetImageExtractAsPng(t *testing.T) {
548548

549549
func TestGetImagesExtractSvg(t *testing.T) {
550550

551-
name := "Alfa.pdf"
551+
name := "alfa.pdf"
552552
pageNumber := int32(1)
553553

554554
if err := GetBaseTest().UploadFile(name); err != nil {

0 commit comments

Comments
 (0)