Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Last active September 17, 2019 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-cloud/67c1ec9de6e6fcd5917244c4291dc5b0 to your computer and use it in GitHub Desktop.
Save aspose-cloud/67c1ec9de6e6fcd5917244c4291dc5b0 to your computer and use it in GitHub Desktop.
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
Name = "Test Line Annotation",
Rect = new Rectangle(100, 100, 300, 300),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Updated Rich Text",
Subject = "Subj",
ZIndex = 1,
ShowCaption = true,
Title = "Title Updated",
Starting = new Point(10, 10),
Ending = new Point(100, 100)
};
var lineResponse = api.GetDocumentLineAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutLineAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var lineresponse = api.GetDocumentLineAnnotations(Name, folder: FolderName);
string annotationId = lineresponse.Annotations.List[0].Id;
var response = api.GetLineAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
LineAnnotation annotation = new LineAnnotation()
{
Name = "Test Line Annotation",
Rect = new Rectangle(100, 100, 300, 300),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Updated Rich Text",
Subject = "Subj",
ZIndex = 1,
ShowCaption = true,
Title = "Title Updated",
Starting = new Point(10, 10),
Ending = new Point(100, 100)
};
var lineResponse = api.GetDocumentLineAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutLineAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeleteAnnotation(Name, AnnotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeleteDocumentAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeletePageAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.PutAnnotationsFlatten(Name, endPage: 2, annotationTypes: new List<AnnotationType>{ AnnotationType .Stamp}, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
UploadFile(AppendFile, AppendFile);
var responce =
api.PostAppendDocument(Name, appendFile: Path.Combine(FolderName, AppendFile), startPage: StartPage, endPage: EndPage, folder: FolderName);
Console.WriteLine(responce);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentAttachmentByIndex(Name, 1, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentAttachments(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var result = api.GetDownloadDocumentAttachmentByIndex(Name, 1, folder: FolderName);
Console.WriteLine(result);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithBookmarks.pdf";
UploadFile(name, name);
var response = api.GetDocumentBookmarks(name, folder: FolderName);
Console.WriteLine( response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
using (var file = System.IO.File.OpenRead(Path.Combine("", sourcePath)))
{
var response = api.UploadFile(Path.Combine("", serverFileName), file);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
var Caretresponse = api.GetDocumentCaretAnnotations(Name, folder: FolderName);
string annotationId = Caretresponse.Annotations.List[0].Id;
var response = api.GetCaretAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
var response = api.GetDocumentCaretAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
var response = api.GetPageCaretAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
List<CaretAnnotation> annotations = new List<CaretAnnotation>
{
new CaretAnnotation()
{
Name = "Example Caret Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
Frame = new Rectangle(100, 100, 200, 200),
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageCaretAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
CaretAnnotation annotation = new CaretAnnotation()
{
Name = "Example Caret Annotation Updated",
Rect = new Rectangle(101, 101, 201, 201),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
Frame = new Rectangle(100, 100, 200, 200),
Modified = "02/02/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentCaretAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutCaretAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var circleresponse = api.GetDocumentCircleAnnotations(Name, folder: FolderName);
string annotationId = circleresponse.Annotations.List[0].Id;
var response = api.GetCircleAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentCircleAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageCircleAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
CircleAnnotation annotation = new CircleAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated"
};
var lineResponse = api.GetDocumentCircleAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutCircleAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToDoc(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToEpub(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToHtml(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToPdfA(name, type: PdfAType.PDFA1A.ToString(), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToPptx(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToSvg(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToTiff(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToXls(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "Hello world.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToXml(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToXps(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.doc";
var response = api.PutPdfInRequestToDoc(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.epub";
var response = api.PutPdfInRequestToEpub(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.zip";
var response = api.PutPdfInRequestToHtml(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "PdfWithXfaForm.pdf";
UploadFile(name, name);
var response = api.GetXfaPdfInStorageToAcroForm(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.doc";
var response = api.PutPdfInRequestToPdfA(Path.Combine(FolderName, resFileName),
type: PdfAType.PDFA1A.ToString(), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.pptx";
var response = api.PutPdfInRequestToPptx(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
}
public void GetPdfInStorageToLaTeXExample()
{
string name = "Hello world.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToLaTeX(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.svg";
var response = api.PutPdfInRequestToSvg(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.tiff";
var response = api.PutPdfInRequestToTiff(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.xml";
var response = api.PutPdfInRequestToXml(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.xps";
var response = api.PutPdfInRequestToXps(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.doc";
var response = api.PutPdfInStorageToDoc(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.epub";
var response = api.PutPdfInStorageToEpub(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.zip";
var response = api.PutPdfInStorageToHtml(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.latex";
var response = api.PutPdfInStorageToLaTeX(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
}
public void PutPdfInRequestToLaTeXExample()
{
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.latex";
var response = api.PutPdfInRequestToLaTeX(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
}
public void GetPdfInStorageToMobiXmlExample()
{
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetPdfInStorageToMobiXml(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.mobi";
var response = api.PutPdfInStorageToMobiXml(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.pdf";
var response = api.PutPdfInStorageToPdfA(name, Path.Combine(FolderName, resFileName), type: PdfAType.PDFA1A.ToString(), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.pptx";
var response = api.PutPdfInStorageToPptx(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.svg";
var response = api.PutPdfInStorageToSvg(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.tiff";
var response = api.PutPdfInStorageToTiff(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.xls";
var response = api.PutPdfInRequestToXls(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.xml";
var response = api.PutPdfInStorageToXml(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string resFileName = "result.xps";
var response = api.PutPdfInStorageToXps(name, Path.Combine(FolderName, resFileName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "PdfWithXfaForm.pdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", name)))
{
string resFileName = "result.pdf";
var response = api.PutXfaPdfInRequestToAcroForm(Path.Combine(FolderName, resFileName), file: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.epub";
UploadFile(name, name);
string resultName = "fromEpub.pdf";
var response = api.PutEpubInStorageToPdf(resultName, Path.Combine(FolderName, name), storage: null, dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "HtmlWithImage.zip";
UploadFile(name, name);
string htmlFileName = "HtmlWithImage.html";
int height = 650;
int width = 250;
using (var response = api.GetHtmlInStorageToPdf(Path.Combine(FolderName, name), htmlFileName, height, width))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "TexExample.tex";
UploadFile(name, name);
using (var response = api.GetLaTeXInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "MhtExample.mht";
UploadFile(name, name);
using (var response = api.GetMhtInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "template.pcl";
UploadFile(name, name);
using (var response = api.GetPclInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "Typography.PS";
UploadFile(name, name);
using (var response = api.GetPsInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "Simple.svg";
UploadFile(name, name);
using (var response = api.GetSvgInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string sourceUrl = "http://google.com";
string resultName = "fromWeb.pdf";
var response = api.PutWebInStorageToPdf(resultName, sourceUrl, dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "template.xml";
UploadFile(name, name);
using (var response = api.GetXmlInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "Simple.xps";
UploadFile(name, name);
using (var response = api.GetXpsInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "XslfoExample.xslfo";
UploadFile(name, name);
using (var response = api.GetXslFoInStorageToPdf(Path.Combine(FolderName, name)))
{
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "HtmlWithImage.zip";
UploadFile(name, name);
string htmlFileName = "HtmlWithImage.html";
int height = 650;
int width = 250;
string resultName = "fromHtml.pdf";
var response = api.PutHtmlInStorageToPdf(resultName, Path.Combine(FolderName, name), htmlFileName, height, width, dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string dataFile1 = "33539.jpg";
UploadFile(dataFile1, dataFile1);
const string dataFile2 = "44781.jpg";
UploadFile(dataFile2, dataFile2);
const string resultName = "result.pdf";
string TempFolder="";
ImageTemplatesRequest imageTemplatesRequest = new ImageTemplatesRequest(IsOCR: true,
OCRLangs: "eng",
ImagesList: new List<ImageTemplate>()
{
new ImageTemplate(ImagePath: $"{TempFolder}/{dataFile1}", ImageSrcType: ImageSrcType.Common),
new ImageTemplate(ImagePath: $"{TempFolder}/{dataFile2}", ImageSrcType: ImageSrcType.Common)
}
);
var response = api.PutImageInStorageToPdf(resultName, imageTemplatesRequest, dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "TexExample.tex";
UploadFile(name, name);
string resultName = "fromTex.pdf";
var response = api.PutLaTeXInStorageToPdf(resultName, Path.Combine(FolderName, name), FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "MhtExample.mht";
UploadFile(name, name);
string resultName = "fromMht.pdf";
var response = api.PutMhtInStorageToPdf(resultName, Path.Combine(FolderName, name), FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "template.pcl";
UploadFile(name, name);
string resultName = "fromPcl.pdf";
var response = api.PutPclInStorageToPdf(resultName, Path.Combine(FolderName, name), dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "Typography.PS";
UploadFile(name, name);
string resultName = "fromPs.pdf";
var response = api.PutPsInStorageToPdf(resultName, Path.Combine(FolderName, name), dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "Simple.svg";
UploadFile(name, name);
string resultName = "fromSvg.pdf";
var response = api.PutSvgInStorageToPdf(resultName, Path.Combine(FolderName, name), dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "template.xml";
UploadFile(name, name);
string resultName = "fromXml.pdf";
var response = api.PutXmlInStorageToPdf(resultName, Path.Combine(FolderName, name), dstFolder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "Simple.xps";
UploadFile(name, name);
string resultName = "fromXps.pdf";
var response = api.PutXpsInStorageToPdf(resultName, Path.Combine(FolderName, name), FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "XslfoExample.xslfo";
UploadFile(name, name);
string resultName = "fromXlsFo.pdf";
var response = api.PutXslFoInStorageToPdf(resultName, Path.Combine(FolderName, name), FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "4pages.pdf";
UploadFile(name, name);
var result = api.GetDocument(name, folder: FolderName);
Console.WriteLine(result);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "4pages.pdf";
UploadFile(name, name);
var options = new OptimizeOptions(
AllowReusePageContent: false,
CompressImages: true,
ImageQuality: 100,
RemoveUnusedObjects: true,
RemoveUnusedStreams: true,
UnembedFonts: true);
var response = api.PostOptimizeDocument(name, options, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "4pages.pdf";
UploadFile(name, name);
var response = api.PostSplitDocument(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "empty.pdf";
var response = api.PutCreateDocument(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithAcroForm.pdf";
UploadFile(name, name);
var fieldName = "textField";
var response = api.DeleteField(name, fieldName, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithAcroForm.pdf";
UploadFile(name, name);
var response = api.GetField(name, "textField", folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithAcroForm.pdf";
UploadFile(name, name);
var response = api.GetFields(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "Hello world.pdf";
UploadFile(name, name);
var field = new Field(
Name: "checkboxfield",
Type: FieldType.Boolean,
Values: new List<string> {"1"},
Rect: new Rectangle(
LLX: 50,
LLY: 200,
URX: 200,
URY: 400
));
var response = api.PostCreateField(name, 1, field, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithAcroForm.pdf";
UploadFile(name, name);
var response = api.PostFlattenDocument(name, updateAppearances: true, hideButtons: true, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithAcroForm.pdf";
UploadFile(name, name);
var response = api.PutFieldsFlatten(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithAcroForm.pdf";
UploadFile(name, name);
var fieldName = "textField";
var field = new Field(
Name: fieldName,
Type: FieldType.Text,
Values: new List<string> {"Text field updated value."},
Rect: new Rectangle(125, 735, 200, 752)
);
var response = api.PutUpdateField(name, fieldName, field, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "PdfWithAcroForm.pdf";
UploadFile(name, name);
var fieldName = "textField";
var fields = new Fields(null, new List<Field>()
{
new Field(
Name: fieldName,
Type: FieldType.Text,
Values: new List<string> {"Text field updated value."})
});
var response = api.PutUpdateFields(name, fields, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentFileAttachmentAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var annotationresponse = api.GetDocumentFileAttachmentAnnotations(Name, folder: FolderName);
string annotationId = annotationresponse.Annotations.List[0].Id;
var response = api.GetFileAttachmentAnnotationData(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var annotationresponse = api.GetDocumentFileAttachmentAnnotations(Name, folder: FolderName);
string annotationId = annotationresponse.Annotations.List[0].Id;
var response = api.GetFileAttachmentAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageFileAttachmentAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(AttachmentFile, AttachmentFile);
List<FileAttachmentAnnotation> annotations = new List<FileAttachmentAnnotation>
{
new FileAttachmentAnnotation()
{
Name = "Example FileAttachmrizontalAlignment.Center",
RichText = "Rich Texent Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
Subject = "Subj",
ZIndex = 1,
Title = "Title",
Modified = "01/01/2018 00:00:00.000 AM",
FilePath = Path.Combine(FolderName, AttachmentFile),
FileName = AttachmentFile
}
};
var response = api.PostPageFileAttachmentAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var annotationresponse = api.GetDocumentFileAttachmentAnnotations(Name, folder: FolderName);
string annotationId = annotationresponse.Annotations.List[0].Id;
var response = api.PutFileAttachmentAnnotationDataExtract(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(AttachmentFile, AttachmentFile);
FileAttachmentAnnotation annotation = new FileAttachmentAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
Modified = "01/01/2018 00:00:00.000 AM",
FilePath = Path.Combine(FolderName, AttachmentFile),
FileName = AttachmentFile
};
var lineResponse = api.GetDocumentFileAttachmentAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutFileAttachmentAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentFreeTextAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var freeTextresponse = api.GetDocumentFreeTextAnnotations(Name, folder: FolderName);
string annotationId = freeTextresponse.Annotations.List[0].Id;
var response = api.GetFreeTextAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageFreeTextAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<FreeTextAnnotation> annotations = new List<FreeTextAnnotation>
{
new FreeTextAnnotation()
{
Name = "Test Free Text",
TextStyle = new TextStyle(FontSize: 12, Font: "Arial", ForegroundColor: new Color(0xFF, 0, 0xFF, 0), BackgroundColor: new Color(0xFF, 0xFF, 0, 0)),
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Default},
HorizontalAlignment = HorizontalAlignment.Center,
Intent = FreeTextIntent.FreeTextTypeWriter,
RichText = "Rich Text",
Subject = "Text Box Subj",
ZIndex = 1,
Justification = Justification.Center,
Title = "Title"
}
};
var response = api.PostPageFreeTextAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
FreeTextAnnotation annotation = new FreeTextAnnotation()
{
Name = "Test Free Text",
TextStyle = new TextStyle(FontSize: 12, Font: "Arial", ForegroundColor: new Color(0xFF, 0, 0xFF, 0), BackgroundColor: new Color(0xFF, 0xFF, 0, 0)),
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Default },
HorizontalAlignment = HorizontalAlignment.Center,
Intent = FreeTextIntent.FreeTextTypeWriter,
RichText = "Updated Text",
Subject = "Text Box Subj",
ZIndex = 1,
Justification = Justification.Center,
Title = "Title"
};
var freeTextresponse = api.GetDocumentFreeTextAnnotations(Name, folder: FolderName);
string annotationId = freeTextresponse.Annotations.List[0].Id;
var response = api.PutFreeTextAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var Highlightresponse = api.GetDocumentHighlightAnnotations(Name, folder: FolderName);
string annotationId = Highlightresponse.Annotations.List[0].Id;
var response = api.GetHighlightAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageHighlightAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<HighlightAnnotation> annotations = new List<HighlightAnnotation>
{
new HighlightAnnotation()
{
Name = "Test Highlight Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
QuadPoints = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
},
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageHighlightAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
HighlightAnnotation annotation = new HighlightAnnotation()
{
Name = "Test Highlight Annotation Updated",
Rect = new Rectangle(101, 101, 201, 201),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
QuadPoints = new List<Point>
{
new Point(11, 11),
new Point(21, 11),
new Point(11, 21),
new Point(11, 11)
},
Modified = "02/02/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentHighlightAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutHighlightAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeleteImage(Name, ImageId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-tasks
var response = api.GetImage(Name, ImageId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetImageExtractAsGif(Name, ImageId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetImageExtractAsJpeg(Name, ImageId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetImageExtractAsPng(Name, ImageId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetImageExtractAsTiff(Name, ImageId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetImages(Name, 1, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string imageName = "Koala.jpg";
UploadFile(imageName, imageName);
var response = api.PostInsertImage(name: Name, pageNumber: 1, llx: 10, lly:10, urx: 100, ury: 100, imageFilePath: Path.Combine(FolderName, imageName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string destFolder = "extract_gif";
var response = api.PutImageExtractAsGif(Name, ImageId, folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string destFolder = "extract_jpg";
var response = api.PutImageExtractAsJpeg(Name, ImageId, folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string destFolder = "extract_png";
var response = api.PutImageExtractAsPng(Name, ImageId, folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string destFolder = "extract_tiff";
var response = api.PutImageExtractAsTiff(Name, ImageId, folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const int pageNumber = 1;
const string destFolder = "extract_gif";
var response = api.PutImagesExtractAsGif(Name, pageNumber: pageNumber,
folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const int pageNumber = 1;
const string destFolder = "extract_jpg";
var response = api.PutImagesExtractAsJpeg(Name, pageNumber: pageNumber,
folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const int pageNumber = 1;
const string destFolder = "extract_png";
var response = api.PutImagesExtractAsPng(Name, pageNumber: pageNumber,
folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const int pageNumber = 1;
const string destFolder = "extract_tiff";
var response = api.PutImagesExtractAsTiff(Name, pageNumber: pageNumber,
folder: FolderName, destFolder: Path.Combine(FolderName, destFolder));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string imageName = "Koala.jpg";
UploadFile(imageName, imageName);
var response = api.PutReplaceImage(name: Name, imageId: ImageId, imageFilePath: Path.Combine(FolderName, imageName), folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
var response = api.GetExportFieldsFromPdfToFdfInStorage(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
var response = api.GetExportFieldsFromPdfToXfdfInStorage(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
var response = api.GetExportFieldsFromPdfToXmlInStorage(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
const string fdfFileName = "FormData.fdf";
UploadFile(fdfFileName, fdfFileName);
string fdfFilePath = Path.Combine(FolderName, fdfFileName);
var response = api.GetImportFieldsFromFdfInStorage(name, fdfFilePath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormDataXfdf_in.pdf";
UploadFile(name, name);
const string fdfxFileName = "FormDataXfdf_in.xfdf";
UploadFile(fdfxFileName, fdfxFileName);
string fdfxFilePath = Path.Combine(FolderName, fdfxFileName);
var response = api.GetImportFieldsFromXfdfInStorage(name, fdfxFilePath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormDataXfa_in.pdf";
UploadFile(name, name);
const string xmlFileName = "FormDataXfa_in.xml";
UploadFile(xmlFileName, xmlFileName);
string xmlFilePath = Path.Combine(FolderName, xmlFileName);
var response = api.GetImportFieldsFromXmlInStorage(name, xmlFilePath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
const string fdfFileName = "FormData.fdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", fdfFileName)))
{
var response = api.PostImportFieldsFromFdf(name, folder: FolderName, fdfData: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormDataXfdf_in.pdf";
UploadFile(name, name);
const string fdfxFileName = "FormDataXfdf_in.xfdf";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", fdfxFileName)))
{
var response = api.PostImportFieldsFromXfdf(name, folder: FolderName, xfdfData: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormDataXfa_in.pdf";
UploadFile(name, name);
const string xmlFileName = "FormDataXfa_in.xml";
using (Stream stream = System.IO.File.OpenRead(Path.Combine("", xmlFileName)))
{
var response = api.PostImportFieldsFromXml(name, folder: FolderName, xmlData: stream);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
string outPath = Path.Combine(FolderName, "exportData.fdf");
var response = api.PutExportFieldsFromPdfToFdfInStorage(name, outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
string outPath = Path.Combine(FolderName, "exportData.xfdf");
var response = api.PutExportFieldsFromPdfToXfdfInStorage(name, outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
string outPath = Path.Combine(FolderName, "exportData.xml");
var response = api.PutExportFieldsFromPdfToXmlInStorage(name, outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormData.pdf";
UploadFile(name, name);
const string fdfFileName = "FormData.fdf";
UploadFile(fdfFileName, fdfFileName);
string fdfFilePath = Path.Combine(FolderName, fdfFileName);
var response = api.PutImportFieldsFromFdfInStorage(name, fdfFilePath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormDataXfdf_in.pdf";
UploadFile(name, name);
const string fdfxFileName = "FormDataXfdf_in.xfdf";
UploadFile(fdfxFileName, fdfxFileName);
string fdfxFilePath = Path.Combine(FolderName, fdfxFileName);
var response = api.PutImportFieldsFromXfdfInStorage(name, fdfxFilePath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "FormDataXfa_in.pdf";
UploadFile(name, name);
const string xmlFileName = "FormDataXfa_in.xml";
UploadFile(xmlFileName, xmlFileName);
string xmlFilePath = Path.Combine(FolderName, xmlFileName);
var response = api.PutImportFieldsFromXmlInStorage(name, xmlFilePath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentInkAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var Inkresponse = api.GetDocumentInkAnnotations(Name, folder: FolderName);
string annotationId = Inkresponse.Annotations.List[0].Id;
var response = api.GetInkAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageInkAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<InkAnnotation> annotations = new List<InkAnnotation>
{
new InkAnnotation()
{
Name = "Example Ink Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
InkList = new List<List<Point>>
{
new List<Point>
{
new Point(10, 40),
new Point(30, 40)
},
new List<Point>
{
new Point(10, 20),
new Point(20, 20),
new Point(30, 20)
}
},
CapStyle = CapStyle.Rounded,
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageInkAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
InkAnnotation annotation = new InkAnnotation()
{
Name = "Example Ink Annotation Updated",
Rect = new Rectangle(101, 101, 201, 201),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
InkList = new List<List<Point>>
{
new List<Point>
{
new Point(10, 40),
new Point(30, 40)
},
new List<Point>
{
new Point(10, 20),
new Point(20, 20),
new Point(30, 20)
}
},
CapStyle = CapStyle.Rounded,
Modified = "02/02/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentInkAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutInkAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var lineresponse = api.GetDocumentLineAnnotations(Name, folder: FolderName);
string annotationId = lineresponse.Annotations.List[0].Id;
var response = api.GetLineAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var lineresponse = api.GetDocumentLineAnnotations(Name, folder: FolderName);
string annotationId = lineresponse.Annotations.List[0].Id;
var response = api.GetLineAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
LineAnnotation annotation = new LineAnnotation()
{
Name = "Example Line Annotation",
Rect = new Rectangle(100, 100, 300, 300),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Updated Rich Text",
Subject = "Subj",
ZIndex = 1,
ShowCaption = true,
Title = "Title Updated",
Starting = new Point(10, 10),
Ending = new Point(100, 100)
};
var lineResponse = api.GetDocumentLineAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutLineAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
Name = "Test Line Annotation",
Rect = new Rectangle(100, 100, 300, 300),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Updated Rich Text",
Subject = "Subj",
ZIndex = 1,
ShowCaption = true,
Title = "Title Updated",
Starting = new Point(10, 10),
Ending = new Point(100, 100)
};
var lineResponse = api.GetDocumentLineAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutLineAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeleteDocumentLinkAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var getLinksResponse = api.GetPageLinkAnnotations(Name, 1, folder: FolderName);
string linkId = getLinksResponse.Links.List[0].Id;
var response = api.DeleteLinkAnnotation(Name, linkId: linkId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeletePageLinkAnnotations(Name, pageNumber: 1, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var getLinksResponse = api.GetPageLinkAnnotations(Name, 1, folder: FolderName);
string linkId = getLinksResponse.Links.List[0].Id;
var response = api.GetLinkAnnotation(Name, linkId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var getLinksResponse = api.GetPageLinkAnnotations(Name, 1, folder: FolderName);
string linkId = getLinksResponse.Links.List[0].Id;
var response = api.GetPageLinkAnnotation(Name, pageNumber: 1, linkId: linkId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageLinkAnnotations(Name, 1, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
LinkAnnotation linkAnnotation = new LinkAnnotation(null, LinkActionType.GoToURIAction, "https://products.aspose.cloud/pdf",
LinkHighlightingMode.Invert, new Color(0xFF, 0xAA, 0xAA, 0xAA), new Rectangle(100, 100, 500, 500));
var linkAnnotations = new List<LinkAnnotation>
{
linkAnnotation
};
var response = api.PostPageLinkAnnotations(Name, pageNumber: 1, links: linkAnnotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var getLinksResponse = api.GetPageLinkAnnotations(Name, 1, folder: FolderName);
string linkId = getLinksResponse.Links.List[0].Id;
LinkAnnotation linkAnnotation = new LinkAnnotation(null, LinkActionType.GoToURIAction, "https://products.aspose.cloud/pdf",
LinkHighlightingMode.Invert, new Color(0xFF, 0xAA, 0xAA, 0xAA), new Rectangle(100, 100, 500, 500));
var response = api.PutLinkAnnotation(Name, linkId: linkId, link: linkAnnotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var names = new[] { "4pages.pdf", "PdfWithImages2.pdf", "marketing.pdf" };
const string resultName = "MergingResult.pdf";
var mergeDocuments = new MergeDocuments(new List<string>());
foreach (var name in names)
{
UploadFile(name, name);
mergeDocuments.List.Add(Path.Combine(FolderName, name));
}
var response = api.PutMergeDocuments(resultName, mergeDocuments, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentMovieAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var Movieresponse = api.GetDocumentMovieAnnotations(Name, folder: FolderName);
string annotationId = Movieresponse.Annotations.List[0].Id;
var response = api.GetMovieAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageMovieAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(AttachmentFile, AttachmentFile);
List<MovieAnnotation> annotations = new List<MovieAnnotation>
{
new MovieAnnotation()
{
Name = "Example Movie Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
ZIndex = 1,
FilePath = AttachmentFile,
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageMovieAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(AttachmentFile, AttachmentFile);
MovieAnnotation annotation = new MovieAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
ZIndex = 1,
FilePath = AttachmentFile,
Modified = "01/01/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentMovieAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutMovieAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string name = "rusdoc.pdf";
UploadFile(name, name);
var response = api.PutSearchableDocument(name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageConvertToBmp(Name, pageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageConvertToEmf(Name, pageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageConvertToBmp(Name, pageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageConvertToJpeg(Name, pageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageConvertToPng(Name, pageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageConvertToTiff(Name, pageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string resultFile = "page.bmp";
string outPath = Path.Combine(FolderName, resultFile);
var response = api.PutPageConvertToBmp(Name, pageNumber, outPath: outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string resultFile = "page.emf";
string outPath = Path.Combine(FolderName, resultFile);
var response = api.PutPageConvertToEmf(Name, pageNumber, outPath: outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-tasks
string resultFile = "page.gif";
string outPath = Path.Combine(FolderName, resultFile);
var response = api.PutPageConvertToGif(Name, pageNumber, outPath: outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string resultFile = "page.jpeg";
string outPath = Path.Combine(FolderName, resultFile);
var response = api.PutPageConvertToJpeg(Name, pageNumber, outPath: outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string resultFile = "page.png";
string outPath = Path.Combine(FolderName, resultFile);
var response = api.PutPageConvertToPng(Name, pageNumber, outPath: outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string resultFile = "page.tiff";
string outPath = Path.Combine(FolderName, resultFile);
var response = api.PutPageConvertToTiff(Name, pageNumber, outPath: outPath, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeletePage(Name, 3, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPage(Name, pageNumber: 1, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPages(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetWordsPerPage(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.PostMovePage(Name, 3, 2, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.PutAddNewPage(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string stampFile = "Penguins.jpg";
UploadFile(stampFile, stampFile);
var stamp = new Stamp(
Type: StampType.Image,
FileName: Path.Combine(FolderName, stampFile),
Background: true,
Width: 200,
Height: 200,
XIndent: 100,
YIndent: 100);
var response = api.PutPageAddStamp(Name, 1, stamp, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-tasks
var response = api.GetDocumentPolygonAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPagePolygonAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var polygonresponse = api.GetDocumentPolygonAnnotations(Name, folder: FolderName);
string annotationId = polygonresponse.Annotations.List[0].Id;
var response = api.GetPolygonAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<PolygonAnnotation> annotations = new List<PolygonAnnotation>
{
new PolygonAnnotation()
{
Name = "Example Polygon Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
Vertices = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
}
}
};
var response = api.PostPagePolygonAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
PolygonAnnotation annotation = new PolygonAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
Vertices = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
}
};
var lineResponse = api.GetDocumentPolygonAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutPolygonAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentPolyLineAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPagePolyLineAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var polyLineResponse = api.GetDocumentPolyLineAnnotations(Name, folder: FolderName);
string annotationId = polyLineResponse.Annotations.List[0].Id;
var response = api.GetPolyLineAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<PolyLineAnnotation> annotations = new List<PolyLineAnnotation>
{
new PolyLineAnnotation()
{
Name = "Example PolyLine Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
Vertices = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
}
}
};
var response = api.PostPagePolyLineAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
PolyLineAnnotation annotation = new PolyLineAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
Vertices = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
}
};
var lineResponse = api.GetDocumentPolyLineAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutPolyLineAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string parentId = "GI5TAOZRGU3CYNZSGEWDCNZWFQ3TGOI";
var response = api.GetDocumentPopupAnnotationsByParent(Name, parentId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentPopupAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPagePopupAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var Popupresponse = api.GetDocumentPopupAnnotations(Name, folder: FolderName);
string annotationId = Popupresponse.Annotations.List[0].Id;
var response = api.GetPopupAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
const string parentId = "GI5TCMR3GE2TQLBSGM3CYMJYGUWDENRV";
PopupAnnotation annotation = new PopupAnnotation()
{
Name = "Example Popup Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
ZIndex = 1,
Modified = "01/01/2018 00:00:00.000 AM"
};
var response = api.PostPopupAnnotation(Name, parentId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
PopupAnnotation annotation = new PopupAnnotation()
{
Name = "Example Popup Annotation Updated",
Rect = new Rectangle(101, 101, 201, 201),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
ZIndex = 1,
Modified = "02/02/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentPopupAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutPopupAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
api.PutSetProperty(Name, PropertyNames[0], PropertyValues[0], folder: FolderName);
api.PutSetProperty(Name, PropertyNames[1], PropertyValues[1], folder: FolderName);
var response = api.DeleteProperties(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
api.PutSetProperty(Name, PropertyNames[0], PropertyValues[0], folder: FolderName);
var response = api.DeleteProperty(Name, PropertyNames[0], folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
api.PutSetProperty(Name, PropertyNames[0], PropertyValues[0], folder: FolderName);
api.PutSetProperty(Name, PropertyNames[1], PropertyValues[1], folder: FolderName);
var response = api.GetDocumentProperties(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
api.PutSetProperty(Name, PropertyNames[0], PropertyValues[0], folder: FolderName);
var response = api.GetDocumentProperty(Name, PropertyNames[0], folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.PutSetProperty(Name, PropertyNames[0], PropertyValues[0], folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentRedactionAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageRedactionAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var Redactionresponse = api.GetDocumentRedactionAnnotations(Name, folder: FolderName);
string annotationId = Redactionresponse.Annotations.List[0].Id;
var response = api.GetRedactionAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<RedactionAnnotation> annotations = new List<RedactionAnnotation>
{
new RedactionAnnotation()
{
Name = "Example Redaction Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
ZIndex = 1,
QuadPoint = new List<Point>
{
new Point(10, 40),
new Point(30, 40)
},
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageRedactionAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
RedactionAnnotation annotation = new RedactionAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
ZIndex = 1,
QuadPoint = new List<Point>
{
new Point(10, 20)
},
Modified = "01/01/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentRedactionAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutRedactionAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
UploadFile(SignatureName, SignatureName);
var responseSignature = api.PostSignDocument(Name, signature, folder: FolderName);
var response = api.GetVerifySignature(Name, signature.FormFieldName, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
UploadFile(SignatureName, SignatureName);
var response = api.PostSignPage(Name, pageNumber: 1, signature, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(Name, Name);
UploadFile(SignatureName, SignatureName);
var response = api.PostSignDocument(Name, signature, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentSoundAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageSoundAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var annotationresponse = api.GetDocumentSoundAnnotations(Name, folder: FolderName);
string annotationId = annotationresponse.Annotations.List[0].Id;
var response = api.GetSoundAnnotationData(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
}
public void PutSoundAnnotationDataExtractExample()
{
var annotationresponse = api.GetDocumentSoundAnnotations(Name, folder: FolderName);
string annotationId = annotationresponse.Annotations.List[0].Id;
var response = api.PutSoundAnnotationDataExtract(Name, annotationId, outFilePath: "outFile.dat", folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var annotationresponse = api.GetDocumentSoundAnnotations(Name, folder: FolderName);
string annotationId = annotationresponse.Annotations.List[0].Id;
var response = api.GetSoundAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UploadFile(AttachmentFile, AttachmentFile);
List<SoundAnnotation> annotations = new List<SoundAnnotation>
{
new SoundAnnotation()
{
Name = "Example Sound Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
Modified = "01/01/2018 00:00:00.000 AM",
FilePath = Path.Combine(FolderName, AttachmentFile)
}
};
var response = api.PostPageSoundAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
SoundAnnotation annotation = new SoundAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
Modified = "01/01/2018 00:00:00.000 AM",
FilePath = Path.Combine("", AttachmentFile)
};
var lineResponse = api.GetDocumentSoundAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutSoundAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentSquareAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageSquareAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var squareresponse = api.GetDocumentSquareAnnotations(Name, folder: FolderName);
string annotationId = squareresponse.Annotations.List[0].Id;
var response = api.GetSquareAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<SquareAnnotation> annotations = new List<SquareAnnotation>
{
new SquareAnnotation()
{
Name = "Example Square Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title"
}
};
var response = api.PostPageSquareAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
SquareAnnotation annotation = new SquareAnnotation()
{
Name = "Updated Example",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated"
};
var lineResponse = api.GetDocumentSquareAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutSquareAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentSquigglyAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageSquigglyAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var Squigglyresponse = api.GetDocumentSquigglyAnnotations(Name, folder: FolderName);
string annotationId = Squigglyresponse.Annotations.List[0].Id;
var response = api.GetSquigglyAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<SquigglyAnnotation> annotations = new List<SquigglyAnnotation>
{
new SquigglyAnnotation()
{
Name = "Example Squiggly Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
QuadPoints = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
},
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageSquigglyAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
SquigglyAnnotation annotation = new SquigglyAnnotation()
{
Name = "Example Squiggly Annotation Updated",
Rect = new Rectangle(101, 101, 201, 201),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
QuadPoints = new List<Point>
{
new Point(11, 11),
new Point(21, 11),
new Point(11, 21),
new Point(11, 11)
},
Modified = "02/02/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentSquigglyAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutSquigglyAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-tasks
var annotationresponse = api.GetDocumentStampAnnotations(Name, folder: FolderName);
string annotationId = annotationresponse.Annotations.List[0].Id;
var response = api.PutStampAnnotationDataExtract(Name, annotationId, outFilePath: "stamp.dat", folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string path = Path.Combine(FolderName, name);
api.DeleteFile(path);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string path = Path.Combine(FolderName, "ExampleFolderRenamed");
api.CreateFolder(path);
api.DeleteFolder(path);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDiscUsage();
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.DownloadFile(Path.Combine(FolderName, name));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.ObjectExists(Path.Combine(FolderName, name));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "PDF-CI";
var response = api.StorageExists(name);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetFilesList(FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
var response = api.GetFileVersions(Path.Combine(FolderName, name));
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
UploadFile(name, name);
string src = Path.Combine(FolderName, name);
string dest = Path.Combine(FolderName, "4pages_renamed.pdf");
api.MoveFile(src, dest);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string src = Path.Combine(FolderName, "ExampleFolder");
api.CreateFolder(src);
string dest = Path.Combine(FolderName, "ExampleFolderRenamed");
api.MoveFolder(src, dest);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string name = "4pages.pdf";
using (var file = System.IO.File.OpenRead(Path.Combine("", name)))
{
var response = api.UploadFile(Path.Combine(FolderName, name), file);
Console.WriteLine(response);
}
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
string path = Path.Combine(FolderName, "ExampleFolder");
api.CreateFolder(path);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentStrikeOutAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageStrikeOutAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var StrikeOutresponse = api.GetDocumentStrikeOutAnnotations(Name, folder: FolderName);
string annotationId = StrikeOutresponse.Annotations.List[0].Id;
var response = api.GetStrikeOutAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<StrikeOutAnnotation> annotations = new List<StrikeOutAnnotation>
{
new StrikeOutAnnotation()
{
Name = "Example StrikeOut Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
QuadPoints = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
},
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageStrikeOutAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
StrikeOutAnnotation annotation = new StrikeOutAnnotation()
{
Name = "Example StrikeOut Annotation Updated",
Rect = new Rectangle(101, 101, 201, 201),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
QuadPoints = new List<Point>
{
new Point(11, 11),
new Point(21, 11),
new Point(11, 21),
new Point(11, 11)
},
Modified = "02/02/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentStrikeOutAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutStrikeOutAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeletePageTables(Name, PageNumber, folder: "");
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var tablesResponse = api.GetDocumentTables(Name, folder: "");
string tableId = tablesResponse.Tables.List[0].Id;
var response = api.DeleteTable(Name, tableId, folder: "");
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentTables(Name, folder: "");
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageTables(Name, PageNumber, folder: "");
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var tablesResponse = api.GetDocumentTables(Name, folder: "");
string tableId = tablesResponse.Tables.List[0].Id;
var response = api.GetTable(Name, tableId, folder: "");
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.DeleteDocumentTables(Name, folder: "");
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
TextAnnotation annotation = new TextAnnotation()
{
Name = "Example Free Text",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> { AnnotationFlags.Default },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Updated Text",
Subject = "Text Box Subj",
ZIndex = 1,
Title = "Title"
};
var textresponse = api.GetDocumentTextAnnotations(Name, folder: FolderName);
string annotationId = textresponse.Annotations.List[0].Id;
var response = api.PutTextAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetDocumentTextAnnotations(Name, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageTextAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetText(Name, LLX: 0, LLY: 0, URX: 0, URY: 0, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var format = new List<string> { "First Page", "Second Page" };
var response = api.GetPageText(Name, pageNumber: 1, LLX: 0, LLY: 0, URX: 0, URY: 0, folder: FolderName, format: format);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var paragraph = new Paragraph(
Rectangle: new Rectangle(100, 100, 200, 200),
LeftMargin: 10,
RightMargin: 10,
TopMargin: 20,
BottomMargin: 20,
HorizontalAlignment: TextHorizontalAlignment.FullJustify,
LineSpacing: LineSpacing.FontSize,
Rotation: 10,
SubsequentLinesIndent: 20,
VerticalAlignment: VerticalAlignment.Center,
WrapMode: WrapMode.ByWords,
Lines: new List<TextLine>
{
new TextLine(
HorizontalAlignment: TextHorizontalAlignment.Right,
Segments: new List<Segment>
{
new Segment(
Value: "segment 1",
TextState: new TextState(
Font: "Arial",
FontSize: 10,
ForegroundColor: new Color(0x00, 0x00, 0xFF, 0x00),
BackgroundColor: new Color(0x00, 0xFF, 0x00, 0x00),
FontStyle: FontStyles.Bold
)
)
}
)
}
);
var response = api.PutAddText(Name, 1, paragraph, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var rect = new Rectangle(100, 100, 300, 300);
var textReplace = new TextReplace("market", "m_a_r_k_e_t", false, Rect: rect);
var textReplaceList = new TextReplaceListRequest(new List<TextReplace> { textReplace },
StartIndex: 0, CountReplace: 0);
var response = api.PostDocumentTextReplace(Name, textReplaceList, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var rect = new Rectangle(100, 100, 300, 300);
var textReplace = new TextReplace("market", "m_a_r_k_e_t", false, Rect: rect);
var textReplaceList = new TextReplaceListRequest(new List<TextReplace> { textReplace },
StartIndex: 0, CountReplace: 0);
var response = api.PostPageTextReplace(Name, 1, textReplaceList, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var response = api.GetPageUnderlineAnnotations(Name, PageNumber, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
var Underlineresponse = api.GetDocumentUnderlineAnnotations(Name, folder: FolderName);
string annotationId = Underlineresponse.Annotations.List[0].Id;
var response = api.GetUnderlineAnnotation(Name, annotationId, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
List<UnderlineAnnotation> annotations = new List<UnderlineAnnotation>
{
new UnderlineAnnotation()
{
Name = "Example Underline Annotation",
Rect = new Rectangle(100, 100, 200, 200),
Flags = new List<AnnotationFlags> {AnnotationFlags.Hidden, AnnotationFlags.NoView},
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text",
Subject = "Subj",
ZIndex = 1,
Title = "Title",
QuadPoints = new List<Point>
{
new Point(10, 10),
new Point(20, 10),
new Point(10, 20),
new Point(10, 10)
},
Modified = "01/01/2018 00:00:00.000 AM"
}
};
var response = api.PostPageUnderlineAnnotations(Name, 1, annotations, folder: FolderName);
Console.WriteLine(response);
// For complete examples and data files, please go to github.com/aspose-pdf-cloud
UnderlineAnnotation annotation = new UnderlineAnnotation()
{
Name = "Example Underline Annotation Updated",
Rect = new Rectangle(101, 101, 201, 201),
Flags = new List<AnnotationFlags> { AnnotationFlags.Hidden, AnnotationFlags.NoView },
HorizontalAlignment = HorizontalAlignment.Center,
RichText = "Rich Text Updated",
Subject = "Subj Updated",
ZIndex = 1,
Title = "Title Updated",
QuadPoints = new List<Point>
{
new Point(11, 11),
new Point(21, 11),
new Point(11, 21),
new Point(11, 11)
},
Modified = "02/02/2018 00:00:00.000 AM"
};
var lineResponse = api.GetDocumentUnderlineAnnotations(Name, folder: FolderName);
string annotationId = lineResponse.Annotations.List[0].Id;
var response = api.PutUnderlineAnnotation(Name, annotationId, annotation, folder: FolderName);
Console.WriteLine(response);
curl
-X GET "https://api.aspose.cloud/v3.0/pdf/sample.pdf/convert/doc?&format=DocX"
-H "Content-Type: application/octet-stream"
-H "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NjY4NDg0MzksImV4cCI6MTU2NjkzNDgzOSwiaXNzIjoiaHR0cHM6Ly9hcGkuYXNwb3NlLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmFzcG9zZS5jbG91ZC9yZXNvdXJjZXMiLCJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXSwiY2xpZW50X2lkIjoiOWYwYjI2ZDEtMGYxZi00MDNiLTliYTQtMTMzMzk4MGFjNmRiIiwiY2xpZW50X2lkU3J2SWQiOiIiLCJzY29wZSI6WyJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXX0.A4yNjRFi2kWWvY4ZHBs2T3ahx7-G9VhnvH6aKC-5oBLREVjqbhfSe4hNgqX3hSt0F6XWcKGLxAKti5FS5pZKOj0iyGTtwn4e6Nuj3PawAS5DkBcC_ouPa_zy8e8J-hw9JuQ1quxDFGGY3f7OuEF0K1xaG5enU6FASTK40hZWRG06sqVpJA43TENGk1cgzjlR8W5rstYXOZ-Q_5Tk2ZhXZ6wJ0K0OpZyKMigc1XQX8ylh-aqli0kaZ6Lq4JNi2WQIUYFg35c5sqQY9e4ZAHDRrLCWru6JGydB20TU2tT8rggnrVs7Xx2HYEtXluVgaNB147AHMg-M90y0JAh7vfcDOA"
curl -v
-X PUT "https://api.aspose.cloud/v3.0/pdf/sample.pdf/convert/doc?outPath=out.docx&format=DocX"
-H "Content-Type: application/octet-stream"
-H "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NTk3NTk3MjAsImV4cCI6MTU1OTg0NjEyMCwiaXNzIjoiaHR0cHM6Ly9hcGkuYXNwb3NlLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmFzcG9zZS5jbG91ZC9yZXNvdXJjZXMiLCJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXSwiY2xpZW50X2lkIjoiNzhCNjM3RjYtQjRDQy00MURFLUE2MTktRDhCRDlGQzJCNkI2Iiwic2NvcGUiOlsiYXBpLnBsYXRmb3JtIiwiYXBpLnByb2R1Y3RzIl19.Ml6w5M15JVNa730GNjUlXGutVakqbonbhHv8pFBNRk6CmpfYZZieL9s3q8cZP_EkX0ky4B5AcCDa9MpsTEMKNcbA6bnQJG1OnRuLjQrP34rP5ExKPvgJC3j2OEsNSToqZ8OAufjyvl1-iwK-NZyHm1qntE3SUm22Kqop467DBGvSeXkn7Fm92mpT-WPKtPcE5sZ3EKeUhcdV5T2z8ABM_z9Z95UK44Xm8Ta1pY5CXycChr8ydGxmKtks1A3XxI6tQYzOOdT6o2e2RAtdwbSoaz2U7kyLp79uFQ4GPwKHYQAYZCRsqjUD7C2Y-nnYl1Mf2tsDuWb9jxcnoEPB5Xckcw" --ssl-no-revoke
curl -v
-X PUT "https://api.aspose.cloud/v3.0/pdf/convert/doc?outPath=out.docx&format=DocX"
--data-binary @test.pdf
-H "Content-Type: application/octet-stream"
-H "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NTk3NTk3MjAsImV4cCI6MTU1OTg0NjEyMCwiaXNzIjoiaHR0cHM6Ly9hcGkuYXNwb3NlLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmFzcG9zZS5jbG91ZC9yZXNvdXJjZXMiLCJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXSwiY2xpZW50X2lkIjoiNzhCNjM3RjYtQjRDQy00MURFLUE2MTktRDhCRDlGQzJCNkI2Iiwic2NvcGUiOlsiYXBpLnBsYXRmb3JtIiwiYXBpLnByb2R1Y3RzIl19.Ml6w5M15JVNa730GNjUlXGutVakqbonbhHv8pFBNRk6CmpfYZZieL9s3q8cZP_EkX0ky4B5AcCDa9MpsTEMKNcbA6bnQJG1OnRuLjQrP34rP5ExKPvgJC3j2OEsNSToqZ8OAufjyvl1-iwK-NZyHm1qntE3SUm22Kqop467DBGvSeXkn7Fm92mpT-WPKtPcE5sZ3EKeUhcdV5T2z8ABM_z9Z95UK44Xm8Ta1pY5CXycChr8ydGxmKtks1A3XxI6tQYzOOdT6o2e2RAtdwbSoaz2U7kyLp79uFQ4GPwKHYQAYZCRsqjUD7C2Y-nnYl1Mf2tsDuWb9jxcnoEPB5Xckcw"
--ssl-no-revoke
{
"error": {
"code": "error",
"message": "You cannot change this document because it is certified.",
"description": "Operation Failed.",
"innerError": {
"requestId": null,
"date": "2019-09-02T10:03:28.5530128Z"
}
}
}
curl -X POST "https://api.aspose.cloud/v3.0/pdf/sample.pdf/pages/1/sign"
-H "accept: application/json"
-H "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1Njc0MTg1MTUsImV4cCI6MTU2NzUwNDkxNSwiaXNzIjoiaHR0cHM6Ly9hcGkuYXNwb3NlLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmFzcG9zZS5jbG91ZC9yZXNvdXJjZXMiLCJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXSwiY2xpZW50X2lkIjoiOWYwYjI2ZDEtMGYxZi00MDNiLTliYTQtMTMzMzk4MGFjNmRiIiwiY2xpZW50X2lkU3J2SWQiOiIiLCJzY29wZSI6WyJhcGkucGxhdGZvcm0iLCJhcGkucHJvZHVjdHMiXX0.MRnKcTp-McSE3s5Nb23PgSlAU3Msbro3sXriBWMAW75WaE5BPhGX7L9Y84fxOGoLMjF4jd0Y8up6_rII1sKnzwZQ9WVSXclG0E5AS-bzQ7bWaMviuDTFJt7th91NLKUOMh6-Mweq6IR3lgDIAB7wZroLr1NArYzvPRwsqX7MXUCKKLcdkGgSiJ_jPXT8174QABn_wNWQRcv7e2scqfZLpo_3NrdBoHj4D0vmUDPSo-j0HZNinXsrXUPML78X30KKLFmh8zylVj-ZfB-6eVHfaFWvBllK3RgNASGL5MXdGtrVHzUCP4b7-hYIvs6QH_MixPosl4cgc30RjsiVcDIA-A"
-H "Content-Type: application/json"
-d "{ \"SignaturePath\": \"33226.p12\", \"SignatureType\": \"PKCS7\", \"Password\": \"sIikZSmz\", \"Contact\": \"test@mail.ru\", \"Location\": \"Ukraine\", \"Visible\": true, \"Rectangle\": { \"LLX\": 100, \"LLY\": 100, \"URX\": 500, \"URY\": 200 }, \"FormFieldName\": \"Signature1\", \"Authority\": \"Sergey Smal\", \"Date\": \"08/01/2012 12:15:00.000 PM\", \"ShowProperties\": false}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment