|
1 | | -     [](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-python/blob/master/LICENSE) |
| 1 | +    [](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-python/blob/master/LICENSE) |
2 | 2 | # Python REST API to Process PDF in Cloud |
3 | 3 | [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. |
4 | 4 |
|
@@ -76,37 +76,16 @@ Then import the package: |
76 | 76 | import asposepdfcloud |
77 | 77 | ``` |
78 | 78 |
|
79 | | -### Usage |
80 | | -APIs of this SDK can be called as follows: |
| 79 | +## Get PDF Page Annotations in Python |
81 | 80 |
|
82 | 81 | ```python |
83 | | -from __future__ import absolute_import |
| 82 | + # Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required). |
84 | 83 |
|
85 | | -import os |
86 | | -import sys |
87 | | - |
88 | | -import asposepdfcloud |
89 | | -from asposepdfcloud.apis.pdf_api import PdfApi |
90 | | -from asposepdfcloud.rest import ApiException |
91 | | -from asposepdfcloud.models.annotation_response import AnnotationResponse |
92 | | - |
93 | | -class SdkUsage(object): |
94 | | - |
95 | | - def __init__(self): |
96 | | - # Get App key and App SID from https://cloud.aspose.com |
97 | | - self.pdf_api_client = asposepdfcloud.api_client.ApiClient( |
98 | | - app_key='app_key', |
99 | | - app_sid='app_sid') |
100 | | - |
101 | | - self.pdf_api = PdfApi(self.pdf_api_client) |
102 | | - self.output_path = str('output_location_path') |
103 | | - self.temp_folder = 'TempPdf' |
104 | | - |
105 | | - def getPageAnnotation(self): |
106 | | - file_name = 'PdfWithAnnotations.pdf' |
107 | | - page_number = 2 |
108 | | - response = self.pdf_api.get_page_annotations(file_name, page_number, folder=self.temp_folder) |
| 84 | + pdf_api = asposepdfcloud.PdfApi('MY_CLIENT_ID', 'MY_CLIENT_SECRET') |
109 | 85 |
|
| 86 | + file_name = 'PdfWithAnnotations.pdf' |
| 87 | + page_number = 2 |
| 88 | + response = pdf_api.get_page_annotations(file_name, page_number, folder=temp_folder) |
110 | 89 | ``` |
111 | 90 | ## Unit Tests |
112 | 91 | Aspose PDF 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 SDK. |
@@ -769,11 +748,12 @@ Class | Method | HTTP request | Description |
769 | 748 | - [PolygonAnnotation](docs/PolygonAnnotation.md) |
770 | 749 | - [SquareAnnotation](docs/SquareAnnotation.md) |
771 | 750 |
|
| 751 | + |
772 | 752 | ## Aspose.PDF Cloud SDKs in Popular Languages |
773 | 753 |
|
774 | 754 | | .NET | Java | PHP | Python | Ruby | Node.js | Android | Swift|Go| |
775 | 755 | |---|---|---|---|---|---|---|--|--| |
776 | | - | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-dotnet) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-java) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-python) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-ruby) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-node.js) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-android) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-swift)|[GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-perl) |[GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-go) | |
777 | | - | [NuGet](https://www.nuget.org/packages/Aspose.pdf-Cloud/) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-pdf-cloud) | [Composer](https://packagist.org/packages/aspose/pdf-sdk-php) | [PIP](https://pypi.org/project/asposepdfcloud/) | [GEM](https://rubygems.org/gems/aspose_pdf_cloud) | [NPM](https://www.npmjs.com/package/asposepdfcloud) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-pdf-cloud) | [Cocoapods](https://cocoapods.org/pods/AsposepdfCloud)|[Go.Dev](https://pkg.go.dev/github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/) | |
| 756 | + | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-dotnet) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-java) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-python) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-ruby) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-node.js) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-android) | [GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-swift)|[GitHub](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-go) | |
| 757 | + | [NuGet](https://www.nuget.org/packages/Aspose.pdf-Cloud/) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-pdf-cloud) | [Composer](https://packagist.org/packages/aspose/pdf-sdk-php) | [PIP](https://pypi.org/project/asposepdfcloud/) | [GEM](https://rubygems.org/gems/aspose_pdf_cloud) | [NPM](https://www.npmjs.com/package/asposepdfcloud) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-pdf-cloud) | [Cocoapods](https://cocoapods.org/pods/AsposepdfCloud)|[Go.Dev](https://pkg.go.dev/github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v20#readme-aspose-pdf-cloud) | |
778 | 758 |
|
779 | 759 | [Product Page](https://products.aspose.cloud/pdf/python) | [Documentation](https://docs.aspose.cloud/display/pdfcloud/Home) | [API Reference](https://apireference.aspose.cloud/pdf/) | [Code Samples](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-python) | [Blog](https://blog.aspose.cloud/category/pdf/) | [Free Support](https://forum.aspose.cloud/c/pdf) | [Free Trial](https://dashboard.aspose.cloud/#/apps) |
0 commit comments