Reading Polyline Annotations from PDF Document
Contents
[
Hide
]
Introduction
Aspose.PDF Cloud allows you to read Polyline Annotation information from a PDF Document. Aspose.PDF Cloud provide the following API to achieve this
API Information
API | Type | Description | Swagger Link |
---|---|---|---|
/pdf/{name}/annotations/polyline | GET | Read Document Polyline Annotations | GetDocumentPolyLineAnnotations |
/pdf/{name}/pages/{pageNumber}/annotations/polyline | GET | Read Document Annotations from a Page in PDF Document | GetPagePolyLineAnnotations |
/pdf/{name}/annotations/polyline/{annotationId} | GET | Read Annotation by ID | GetPolyLineAnnotation |
cURL Example
We have used PdfWithAnnotations.pdf for the example below. In this example we are demonstration /pdf/{name}/annotations/polyline/{annotationId} resource to read Annotation Information by ID. You can use /pdf/{name}/annotations/polyline or /pdf/{name}/annotations/polyline to get the desired annotation identifier. The above resources return the following Line Annotation information for the document
{
"Annotations":{
"List":[
{
"InteriorColor":{
"A":255,
"R":220,
"G":220,
"B":220
},
"StartingStyle":"Circle",
"EndingStyle":"OpenArrow",
"Intent":"PolyLineDimension",
"Vertices":[
{
"X":164.611,
"Y":499.629
},
{
"X":192.858,
"Y":509.857
},
{
"X":226.461,
"Y":493.785
}
],
"CreationDate":"02/25/2011 01:23:45.000 PM",
"Subject":"Polygonal Line",
"Title":"Maxim",
"RichText":"<?xml version=\"1.0\"?><body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:APIVersion=\"Acrobat:7.0.0\" xfa:spec=\"2.0.2\" ><p><span style=\"text-decoration:;font-size:10.0pt\">Contents</span></p></body>",
"Color":{
"A":255,
"R":70,
"G":162,
"B":185
},
"Contents":"Contents",
"Modified":"02/25/2011 01:34:18.000 PM",
"Id":"GI5TGOZRGU3CYNBZGEWDEMRZFQ2TCMQ",
"Flags":[
"Print"
],
"Name":"982c6c2d-07b1-498b-bb7d-10143fd3f59c",
"Rect":{
"LLX":156.611,
"LLY":491.254,
"URX":228.462,
"URY":511.857
},
"PageIndex":2,
"ZIndex":0,
"HorizontalAlignment":"Left",
"VerticalAlignment":"Top",
"Links":[
{
"Href":"http://api.aspose.cloud/v2.0/pdf/PdfWithAnnotations.pdf/pages/2/annotations/GI5TGOZRGU3CYNBZGEWDEMRZFQ2TCMQ",
"Rel":"self",
"Type":null,
"Title":null
}
]
}
],
"Links":[
{
"Href":"http://api.aspose.cloud/v2.0/pdf/PdfWithAnnotations.pdf/pages/2/annotations/GI5TGOZRGU3CYNBZGEWDEMRZFQ2TCMQ",
"Rel":"self",
"Type":null,
"Title":null
}
]
},
"Code":200,
"Status":"OK"
}
SDK Source
The Aspose.PDF Cloud SDKs can be downloaded from the following page: Available SDKs
SDK Examples
GetDocumentPolyLineAnnotations Examples
GetPagePolyLineAnnotations Examples
GetPolyLineAnnotation Examples