Skip to content

Commit b4cf86b

Browse files
Merge pull request #1 from kaferi/master
Create Go SDK
2 parents ae43e69 + ec7d71e commit b4cf86b

File tree

405 files changed

+56673
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+56673
-2
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.mht -crlf -diff

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
*.prof
25+
26+
.swagger-codegen
27+
api
28+
29+
# IDE
30+
.vscode

.swagger-codegen-ignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
24+
25+
*.yml
26+
*.sh

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Aspose.Pdf for Cloud
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 440 additions & 2 deletions
Large diffs are not rendered by default.

annotation.go

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
*
3+
* Copyright (c) 2018 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
package asposepdfcloud
22+
23+
// Provides annotation.
24+
type Annotation struct {
25+
// Link to the document.
26+
Links []Link `json:"Links,omitempty"`
27+
// Get the annotation content.
28+
Contents string `json:"Contents,omitempty"`
29+
// The date and time when the annotation was last modified.
30+
Modified string `json:"Modified,omitempty"`
31+
// Gets ID of the annotation.
32+
Id string `json:"Id,omitempty"`
33+
// Gets Flags of the annotation.
34+
Flags []AnnotationFlags `json:"Flags,omitempty"`
35+
// Gets Name of the annotation.
36+
Name string `json:"Name,omitempty"`
37+
// Gets Rect of the annotation.
38+
Rect *RectanglePdf `json:"Rect,omitempty"`
39+
// Gets PageIndex of the annotation.
40+
PageIndex int32 `json:"PageIndex,omitempty"`
41+
// Gets ZIndex of the annotation.
42+
ZIndex int32 `json:"ZIndex,omitempty"`
43+
// Gets HorizontalAlignment of the annotation.
44+
HorizontalAlignment HorizontalAlignment `json:"HorizontalAlignment,omitempty"`
45+
// Gets VerticalAlignment of the annotation.
46+
VerticalAlignment VerticalAlignment `json:"VerticalAlignment,omitempty"`
47+
}

annotation_flags.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
*
3+
* Copyright (c) 2018 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
package asposepdfcloud
22+
// AnnotationFlags : A set of flags specifying various characteristics of the annotation.
23+
type AnnotationFlags string
24+
25+
// List of AnnotationFlags
26+
const (
27+
AnnotationFlagsDefault AnnotationFlags = "Default"
28+
AnnotationFlagsInvisible AnnotationFlags = "Invisible"
29+
AnnotationFlagsHidden AnnotationFlags = "Hidden"
30+
AnnotationFlagsPrint AnnotationFlags = "Print"
31+
AnnotationFlagsNoZoom AnnotationFlags = "NoZoom"
32+
AnnotationFlagsNoRotate AnnotationFlags = "NoRotate"
33+
AnnotationFlagsNoView AnnotationFlags = "NoView"
34+
AnnotationFlagsReadOnly AnnotationFlags = "ReadOnly"
35+
AnnotationFlagsLocked AnnotationFlags = "Locked"
36+
AnnotationFlagsToggleNoView AnnotationFlags = "ToggleNoView"
37+
AnnotationFlagsLockedContents AnnotationFlags = "LockedContents"
38+
)

annotation_info.go

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/**
2+
*
3+
* Copyright (c) 2018 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
package asposepdfcloud
22+
23+
// Provides annotation.
24+
type AnnotationInfo struct {
25+
// Link to the document.
26+
Links []Link `json:"Links,omitempty"`
27+
// Get the annotation content.
28+
Contents string `json:"Contents,omitempty"`
29+
// The date and time when the annotation was last modified.
30+
Modified string `json:"Modified,omitempty"`
31+
// Gets ID of the annotation.
32+
Id string `json:"Id,omitempty"`
33+
// Gets Flags of the annotation.
34+
Flags []AnnotationFlags `json:"Flags,omitempty"`
35+
// Gets Name of the annotation.
36+
Name string `json:"Name,omitempty"`
37+
// Gets Rect of the annotation.
38+
Rect *RectanglePdf `json:"Rect,omitempty"`
39+
// Gets PageIndex of the annotation.
40+
PageIndex int32 `json:"PageIndex,omitempty"`
41+
// Gets ZIndex of the annotation.
42+
ZIndex int32 `json:"ZIndex,omitempty"`
43+
// Gets HorizontalAlignment of the annotation.
44+
HorizontalAlignment HorizontalAlignment `json:"HorizontalAlignment,omitempty"`
45+
// Gets VerticalAlignment of the annotation.
46+
VerticalAlignment VerticalAlignment `json:"VerticalAlignment,omitempty"`
47+
// Gets annotation type.
48+
AnnotationType AnnotationType `json:"AnnotationType,omitempty"`
49+
}

annotation_state.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
*
3+
* Copyright (c) 2018 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
package asposepdfcloud
22+
// AnnotationState : The enumeration of states to which the original annotation can be set.
23+
type AnnotationState string
24+
25+
// List of AnnotationState
26+
const (
27+
AnnotationStateUndefined AnnotationState = "Undefined"
28+
AnnotationStateMarked AnnotationState = "Marked"
29+
AnnotationStateUnmarked AnnotationState = "Unmarked"
30+
AnnotationStateAccepted AnnotationState = "Accepted"
31+
AnnotationStateRejected AnnotationState = "Rejected"
32+
AnnotationStateCancelled AnnotationState = "Cancelled"
33+
AnnotationStateCompleted AnnotationState = "Completed"
34+
AnnotationStateNone AnnotationState = "None"
35+
)

annotation_type.go

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/**
2+
*
3+
* Copyright (c) 2018 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
package asposepdfcloud
22+
// AnnotationType :
23+
type AnnotationType string
24+
25+
// List of AnnotationType
26+
const (
27+
AnnotationTypeText AnnotationType = "Text"
28+
AnnotationTypeCircle AnnotationType = "Circle"
29+
AnnotationTypePolygon AnnotationType = "Polygon"
30+
AnnotationTypePolyLine AnnotationType = "PolyLine"
31+
AnnotationTypeLine AnnotationType = "Line"
32+
AnnotationTypeSquare AnnotationType = "Square"
33+
AnnotationTypeFreeText AnnotationType = "FreeText"
34+
AnnotationTypeHighlight AnnotationType = "Highlight"
35+
AnnotationTypeUnderline AnnotationType = "Underline"
36+
AnnotationTypeSquiggly AnnotationType = "Squiggly"
37+
AnnotationTypeStrikeOut AnnotationType = "StrikeOut"
38+
AnnotationTypeCaret AnnotationType = "Caret"
39+
AnnotationTypeInk AnnotationType = "Ink"
40+
AnnotationTypeLink AnnotationType = "Link"
41+
AnnotationTypePopup AnnotationType = "Popup"
42+
AnnotationTypeFileAttachment AnnotationType = "FileAttachment"
43+
AnnotationTypeSound AnnotationType = "Sound"
44+
AnnotationTypeMovie AnnotationType = "Movie"
45+
AnnotationTypeScreen AnnotationType = "Screen"
46+
AnnotationTypeWidget AnnotationType = "Widget"
47+
AnnotationTypeWatermark AnnotationType = "Watermark"
48+
AnnotationTypeTrapNet AnnotationType = "TrapNet"
49+
AnnotationTypePrinterMark AnnotationType = "PrinterMark"
50+
AnnotationTypeRedaction AnnotationType = "Redaction"
51+
AnnotationTypeStamp AnnotationType = "Stamp"
52+
AnnotationTypeRichMedia AnnotationType = "RichMedia"
53+
AnnotationTypeUnknown AnnotationType = "Unknown"
54+
AnnotationTypePDF3D AnnotationType = "PDF3D"
55+
)

0 commit comments

Comments
 (0)