|
1 |
| -# Aspose.Pdf for Cloud |
| 1 | +   [](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-dotnet/blob/master/LICENSE) |
| 2 | +# .NET REST API to Process PDF in Cloud |
| 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. |
2 | 4 |
|
3 |
| -- API version: 3.0 |
4 |
| -- SDK version: 21.9.0 |
| 5 | +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. |
5 | 6 |
|
6 |
| -[Aspose.Pdf for 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. |
| 7 | +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). |
7 | 8 |
|
8 |
| -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 for Cloud and examples. |
| 9 | +Extract Text & Images of a PDF document online https://products.aspose.app/pdf/parser. |
9 | 10 |
|
10 |
| -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). |
| 11 | +## PDF Processing Features |
| 12 | + |
| 13 | +- Add PDF document's header & footer in text or image format. |
| 14 | +- Add tables & stamps (text or image) to PDF documents. |
| 15 | +- Append multiple PDF documents to an existing file. |
| 16 | +- Work with PDF attachments, annotations, & form fields. |
| 17 | +- Apply encryption or decryption to PDF documents & set a password. |
| 18 | +- Delete all stamps & tables from a page or entire PDF document. |
| 19 | +- Delete a specific stamp or table from the PDF document by its ID. |
| 20 | +- Replace single or multiple instances of text on a PDF page or from the entire document. |
| 21 | +- Extensive support for converting PDF documents to various other file formats. |
| 22 | +- Extract various elements of PDF files & make PDF documents optimized. |
11 | 23 |
|
12 |
| -Test Aspose.PDF conversion quality online by PDF to JPG converter https://products.aspose.app/pdf/conversion/pdf-to-jpg. |
| 24 | +## Read & Write PDF Formats |
13 | 25 |
|
14 |
| -## Currently Available SDKs |
| 26 | +PDF, EPUB, HTML, TeX, SVG, XML, XPS, FDF, XFDF |
| 27 | +## Save PDF As |
| 28 | +XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text |
| 29 | +## Read PDF Formats |
| 30 | +MHT, PCL, PS, XSLFO, MD |
15 | 31 |
|
16 |
| -Currently available SDKs can be found [here](https://github.com/aspose-pdf-cloud). |
17 |
| -To use theese SDKs, you will need App SID and App Key which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) (free registration in Aspose Cloud is required for this). |
| 32 | +## Enhancements in Version 21.10 |
| 33 | +- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .Net. |
| 34 | + |
| 35 | +## Enhancements in Version 21.9 |
| 36 | +- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .Net. |
18 | 37 |
|
19 | 38 | ## Unit Tests
|
20 | 39 | Aspose PDF SDK includes a suite of unit tests. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
|
21 | 40 |
|
22 | 41 | ## Licensing
|
23 | 42 | All Aspose.Pdf for Cloud SDKs are licensed under [MIT License](LICENSE).
|
24 | 43 |
|
25 |
| -## Resources |
26 |
| -+ [**Website**](https://www.aspose.cloud) |
27 |
| -+ [**Product Home**](https://products.aspose.cloud/pdf/cloud) |
28 |
| -+ [**Documentation**](https://docs.aspose.cloud/display/pdfcloud/Home) |
29 |
| -+ [**Free Support Forum**](https://forum.aspose.cloud/c/pdf) |
30 |
| -+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/) |
31 |
| -+ [**Blog**](https://blog.aspose.cloud/category/pdf/) |
32 |
| - |
33 |
| - |
34 |
| -<a name="dependencies"></a> |
35 | 44 | ## Dependencies
|
36 |
| - |
37 |
| - |
38 |
| -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.2.2 |
39 |
| -- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 11.0.2 |
| 45 | +- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 12.0.3 |
| 46 | +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.12.0 |
40 | 47 |
|
41 | 48 | The DLLs included in the package may not be the latest version. We recommend using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
|
42 | 49 | ```
|
43 | 50 | Install-Package RestSharp
|
44 | 51 | Install-Package Newtonsoft.Json
|
45 | 52 | ```
|
| 53 | +## Convert PDF to Epub in Dotnet |
| 54 | + |
| 55 | +```csharp |
| 56 | + // Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required). |
| 57 | + var config = new Configuration |
| 58 | + { |
| 59 | + ClientId = "MY_CLIENT_ID", |
| 60 | + ClientSecret = "MY_CLIENT_SECRET", |
| 61 | + ApiBaseUrl = baseUrl, |
| 62 | + }; |
| 63 | + |
| 64 | + var pdfApi = new PdfApi(config); |
| 65 | + |
| 66 | + using (var file = File.OpenRead(Path.Combine(TestDataFolder, "sample.pdf"))) |
| 67 | + { |
| 68 | + var response = pdfApi.UploadFile(Path.Combine(TempFolder, serverFileName), file); |
| 69 | + } |
| 70 | + |
| 71 | + var response = pdfApi.GetPdfInStorageToEpub("sample.pdf", folder: TempFolder); |
| 72 | +``` |
46 | 73 |
|
47 | 74 | NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
|
48 | 75 |
|
|
0 commit comments