An open API service indexing awesome lists of open source software.

https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-go

Go library for communicating with the Aspose.PDF Cloud API
https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-go

Last synced: 8 months ago
JSON representation

Go library for communicating with the Aspose.PDF Cloud API

Awesome Lists containing this project

README

          

![](https://img.shields.io/badge/api-v3.0-lightgrey) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/aspose-pdf-cloud/aspose-pdf-cloud-go) [![GitHub license](https://img.shields.io/github/license/aspose-pdf-cloud/aspose-pdf-cloud-go)](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/blob/master/LICENSE)

# Go SDK for Aspose.PDF Cloud REST API
[Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud.

Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.PDF Cloud and examples.

These SDKs are now fully supported. If you have any questions, see any bugs or have enhancement request, feel free to reach out to us at [Free Support Forums](https://forum.aspose.cloud/c/pdf).

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

## Breaking Changes in Version 25.10
**Authentication Parameter Changes**:

AppId → ClientId

AppSecret → ClientSecret

## Enhancements in Version 25.10
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.

## Bugs fixed in Version 25.10
- Method PutBookmark does not change bookmark color.
- TextReplace shows hidden text in the output file.
## Installation
```
go get -u github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v25
```

## Getting Started
Please follow the [installation](#installation) instruction and execute the following Go code:

## Get PDF Page Circle Annotations
```
import "github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v25"

...

// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
pdfApi := asposepdfcloud.NewPdfApiService("MY_CLIENT_ID", "MY_CLIENT_SECRET", "")
args := map[string]interface{} {
"folder": "path/to/remote/folder",
}
return pdfApi.GetDocumentCircleAnnotations("PdfWithAnnotations.pdf", args)
```

## SelfHost Aspose.PDF Cloud
Instead of **NewPdfApiService** use **NewSelfHostPdfApiService** function to create PdfApiService instance:
```
pdfApi := asposepdfcloud.NewSelfHostPdfApiService()
```

## Use cases

The Aspose.PDF Cloud SDK includes a set of ready-to-run use cases in the "[uses_cases](uses_cases)" directory. These examples illustrate common operations such as managing annotations, attachments, text, and more.

1. Add your API credentials **client_id** and **client_secret** into [settings/credentials.json](settings/credentials.json):

```
{
"client_secret": "YOUR_CLIENT_SECRET",
"client_id": "YOUR_CLIENT_ID"
}
```
2. Launch use case:
```
go run uses_cases/annotations/*
```

## Unit Tests
Aspose PDF Cloud SDK includes a suite of unit tests within the "test" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF Cloud SDK.

## Licensing
All Aspose.PDF Cloud SDKs are licensed under [MIT License](LICENSE).