Skip to content

Instantly share code, notes, and snippets.

Avatar

Aspose Cloud File Format APIs aspose-cloud

View GitHub Profile
@aspose-cloud
aspose-cloud / Examples-DotNET-CSharp-Extract-TIFF-Frames-from-Multiframe-TIFF.cs
Last active Jun 19, 2021
This Gist contains code snippets related extraction of TIFF frame from MultiFrame TIFF image
View Examples-DotNET-CSharp-Extract-TIFF-Frames-from-Multiframe-TIFF.cs
string clientID = "718e4235-8866-4ebe-bff4-f5a14a4b6466"; // Get ClientID from https://dashboard.aspose.cloud/
string clientSecret = "388e864b819d8b067a8b1cb625a2ea8e"; // Get CLientSecret from https://dashboard.aspose.cloud/
// create an instance of ImagingApi
Aspose.Imaging.Cloud.Sdk.Api.ImagingApi imagingApi = new ImagingApi(clientSecret, clientID,"https://api.aspose.cloud/","v3.0",false);
// input TIFF image available on Cloud storage
String fileName = "TiffSampleImage.tiff";
int? frameId = 5; // Index of a frame
@aspose-cloud
aspose-cloud / Examples-CSharp-Merge-Image-files.cs
Last active Jun 19, 2021
This Gist contains code snippets related insertion of JPEG to PDF and then conversion of PDF to JPEG format
View Examples-CSharp-Merge-Image-files.cs
string clientID = "718e4235-8866-4ebe-bff4-f5a14a4b6466"; // Get ClientID from https://dashboard.aspose.cloud/
string clientSecret = "388e864b819d8b067a8b1cb625a2ea8e"; // Get CLientSecret from https://dashboard.aspose.cloud/
// file name for PDF to be created
String fileName = "input.pdf";
// create an instance of PdfApi
PdfApi pdfApi = new PdfApi(clientSecret, clientID);
// Invoke Aspose.PDF Cloud SDK API to create empty pdf file
@aspose-cloud
aspose-cloud / 3DpdfToHTML.cs
Last active Jun 14, 2021
aspose.com blog gists
View 3DpdfToHTML.cs
Document document = new Document(dataDir + "3DTest.pdf");
HtmlSaveOptions options = new HtmlSaveOptions
{
SplitIntoPages = false,
FixedLayout = true,
CompressSvgGraphicsIfAny = false,
SaveTransparentTexts = true,
SaveShadowedTextsAsTransparentTexts = true,
RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground,
PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml
@aspose-cloud
aspose-cloud / Examples-Python-Merge-Word-Documents-1.py
Last active Jun 13, 2021
This Gist contains code snippets related to MS Word files concatenation using Python SDK
View Examples-Python-Merge-Word-Documents-1.py
# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud
word_api_client: ApiClient = asposewordscloud.api_client.ApiClient("a41d01ef-dfd5-4e02-ad29-bd85fe41e3e4","d87269aade6a46cdc295b711e26809af")
words_api = WordsApi(word_api_client)
fileName = "ComparisonResult.docx"
documentToAppend = "SampleMailMergeTemplate.docx"
destName = "MergedFile.docx" # # Changes will be made in the source document
# Upload original document to Cloud Storage
@aspose-cloud
aspose-cloud / Examples-Merge-PDF-files-in-Python.py
Last active Jun 12, 2021
This Gist contains code snippets related to PDF concatenation using Python SDK
View Examples-Merge-PDF-files-in-Python.py
# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
#initialize PdfApi client instance using ClientID and ClientSecret
pdf_api_client = asposepdfcloud.api_client.ApiClient("d87269aade6a46cdc295b711e26809af", "a41d01ef-dfd5-4e02-ad29-bd85fe41e3e4")
# create PdfApi instance while passing PdfApiClient as argument
pdf_api = PdfApi(pdf_api_client)
# Source PDF document
file_name = 'PdfWithAnnotations.pdf'
@aspose-cloud
aspose-cloud / Encrypt or Decrypt PDF in Java
Last active Jun 6, 2021
This Gist contains code snippets regarding Encrypting or Decrypting the PDF files using Aspose.PDF Cloud SDK for Java
View Encrypt or Decrypt PDF in Java
This Gist contains code snippets regarding Encrypting or Decrypting the PDF files using Aspose.PDF Cloud SDK for Java
@aspose-cloud
aspose-cloud / Digitally sign PDF using PHP SDK
Last active Jun 4, 2021
This Gist contains code snippets regarding processing Signature Fields in PDF documents
View Digitally sign PDF using PHP SDK
This Gist contains code snippets regarding processing Signature Fields in PDF documents.
@aspose-cloud
aspose-cloud / Examples-Java-Scanned-PDF-to-Searchable-PDF.java
Last active May 29, 2021
This Gist contains code snippets regarding conversion of Scanned PDF files to searchable PDF documents
View Examples-Java-Scanned-PDF-to-Searchable-PDF.java
// Get ClientID and ClientSecret from https://dashboard.aspose.cloud/
String clientId = "a41d01ef-dfd5-4e02-ad29-bd85fe41e3e4";
String clientSecret = "d87269aade6a46cdc295b711e26809af";
// createPdfApi instance
PdfApi pdfApi = new PdfApi(clientSecret,clientId);
// input PDF document
String name = "ocrscan.pdf";
@aspose-cloud
aspose-cloud / Add Text, Polyline, Squiggly, and Attachment Annotations
Last active May 27, 2021
This Gist contains code snippets regarding the addition of Text, Polyline, Squiggly, and Attachment Annotations to PDF document
View Add Text, Polyline, Squiggly, and Attachment Annotations
This Gist contains code snippets regarding the addition of Text, Polyline, Squiggly, and Attachment Annotations to PDF document
@aspose-cloud
aspose-cloud / Add Annotations to PDF using Java
Last active May 23, 2021
This Gist contains code snippets regarding Annotations feature inside PDF document
View Add Annotations to PDF using Java
This Gist contains code snippets related to Annotatiions features supported by Aspose.PDF Cloud SDK for Java