aspose_pdf_cloud 18.11.0 → 19.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +66 -6
- data/aspose_pdf_cloud.gemspec +1 -1
- data/docs/Annotation.md +3 -2
- data/docs/AnnotationFlags.md +14 -14
- data/docs/AnnotationInfo.md +3 -2
- data/docs/AnnotationState.md +11 -11
- data/docs/AnnotationType.md +31 -31
- data/docs/AnnotationsInfo.md +3 -3
- data/docs/AnnotationsInfoResponse.md +3 -3
- data/docs/AntialiasingProcessingType.md +5 -5
- data/docs/AppendDocument.md +1 -1
- data/docs/AsposeResponse.md +1 -1
- data/docs/Attachment.md +1 -1
- data/docs/AttachmentResponse.md +3 -3
- data/docs/Attachments.md +3 -3
- data/docs/AttachmentsResponse.md +3 -3
- data/docs/CapStyle.md +5 -5
- data/docs/CaptionPosition.md +6 -6
- data/docs/CaretAnnotation.md +4 -4
- data/docs/CaretAnnotationResponse.md +3 -3
- data/docs/CaretAnnotations.md +3 -3
- data/docs/CaretAnnotationsResponse.md +3 -3
- data/docs/CaretSymbol.md +5 -5
- data/docs/CircleAnnotation.md +4 -4
- data/docs/CircleAnnotationResponse.md +3 -3
- data/docs/CircleAnnotations.md +3 -3
- data/docs/CircleAnnotationsResponse.md +3 -3
- data/docs/Color.md +5 -5
- data/docs/ColorDepth.md +7 -7
- data/docs/CommonFigureAnnotation.md +4 -3
- data/docs/CompressionType.md +8 -8
- data/docs/DiscUsage.md +10 -0
- data/docs/DiscUsageResponse.md +11 -0
- data/docs/DocFormat.md +5 -5
- data/docs/DocRecognitionMode.md +5 -5
- data/docs/Document.md +1 -1
- data/docs/DocumentPageResponse.md +3 -3
- data/docs/DocumentPagesResponse.md +3 -3
- data/docs/DocumentPrivilege.md +1 -1
- data/docs/DocumentProperties.md +3 -3
- data/docs/DocumentPropertiesResponse.md +3 -3
- data/docs/DocumentProperty.md +4 -4
- data/docs/DocumentPropertyResponse.md +3 -3
- data/docs/DocumentResponse.md +4 -4
- data/docs/EpubRecognitionMode.md +6 -6
- data/docs/Field.md +2 -2
- data/docs/FieldResponse.md +3 -3
- data/docs/FieldType.md +7 -7
- data/docs/Fields.md +3 -3
- data/docs/FieldsResponse.md +3 -3
- data/docs/File.md +1 -1
- data/docs/FileAttachmentAnnotation.md +29 -0
- data/docs/FileAttachmentAnnotationResponse.md +11 -0
- data/docs/FileAttachmentAnnotations.md +10 -0
- data/docs/FileAttachmentAnnotationsResponse.md +11 -0
- data/docs/FileExist.md +10 -0
- data/docs/FileExistResponse.md +11 -0
- data/docs/FileIcon.md +13 -0
- data/docs/FileVersion.md +15 -0
- data/docs/FileVersionsResponse.md +11 -0
- data/docs/FilesResponse.md +1 -1
- data/docs/FontEncodingRules.md +5 -5
- data/docs/FontSavingModes.md +7 -7
- data/docs/FontStyles.md +7 -7
- data/docs/FreeTextAnnotation.md +3 -2
- data/docs/FreeTextAnnotationResponse.md +3 -3
- data/docs/FreeTextAnnotations.md +3 -3
- data/docs/FreeTextAnnotationsResponse.md +3 -3
- data/docs/FreeTextIntent.md +6 -6
- data/docs/HighlightAnnotation.md +3 -3
- data/docs/HighlightAnnotationResponse.md +3 -3
- data/docs/HighlightAnnotations.md +3 -3
- data/docs/HighlightAnnotationsResponse.md +3 -3
- data/docs/HorizontalAlignment.md +8 -8
- data/docs/HtmlDocumentType.md +5 -5
- data/docs/HtmlMarkupGenerationModes.md +5 -5
- data/docs/Image.md +2 -2
- data/docs/ImageResponse.md +3 -3
- data/docs/ImageSrcType.md +5 -5
- data/docs/ImageTemplate.md +1 -1
- data/docs/ImageTemplatesRequest.md +1 -1
- data/docs/Images.md +3 -3
- data/docs/ImagesResponse.md +3 -3
- data/docs/InkAnnotation.md +3 -3
- data/docs/InkAnnotationResponse.md +3 -3
- data/docs/InkAnnotations.md +3 -3
- data/docs/InkAnnotationsResponse.md +3 -3
- data/docs/Justification.md +7 -7
- data/docs/LettersPositioningMethods.md +5 -5
- data/docs/LineAnnotation.md +3 -3
- data/docs/LineAnnotationResponse.md +3 -3
- data/docs/LineAnnotations.md +3 -3
- data/docs/LineAnnotationsResponse.md +3 -3
- data/docs/LineEnding.md +13 -13
- data/docs/LineIntent.md +6 -6
- data/docs/LineSpacing.md +6 -6
- data/docs/Link.md +1 -1
- data/docs/LinkActionType.md +9 -9
- data/docs/LinkAnnotation.md +2 -2
- data/docs/LinkAnnotationResponse.md +3 -3
- data/docs/LinkAnnotations.md +3 -3
- data/docs/LinkAnnotationsResponse.md +3 -3
- data/docs/LinkElement.md +1 -1
- data/docs/LinkHighlightingMode.md +9 -9
- data/docs/MarginInfo.md +1 -1
- data/docs/MarkupAnnotation.md +3 -2
- data/docs/MergeDocuments.md +1 -1
- data/docs/MovieAnnotation.md +23 -0
- data/docs/MovieAnnotationResponse.md +11 -0
- data/docs/MovieAnnotations.md +10 -0
- data/docs/MovieAnnotationsResponse.md +11 -0
- data/docs/OptimizeOptions.md +1 -1
- data/docs/Page.md +3 -3
- data/docs/PageWordCount.md +1 -1
- data/docs/Pages.md +3 -3
- data/docs/Paragraph.md +14 -14
- data/docs/PartsEmbeddingModes.md +6 -6
- data/docs/PdfAType.md +5 -5
- data/docs/PdfApi.md +909 -28
- data/docs/Point.md +1 -1
- data/docs/PolyAnnotation.md +4 -3
- data/docs/PolyIntent.md +7 -7
- data/docs/PolyLineAnnotation.md +4 -4
- data/docs/PolyLineAnnotationResponse.md +3 -3
- data/docs/PolyLineAnnotations.md +3 -3
- data/docs/PolyLineAnnotationsResponse.md +3 -3
- data/docs/PolygonAnnotation.md +4 -4
- data/docs/PolygonAnnotationResponse.md +3 -3
- data/docs/PolygonAnnotations.md +3 -3
- data/docs/PolygonAnnotationsResponse.md +3 -3
- data/docs/PopupAnnotation.md +3 -3
- data/docs/PopupAnnotationResponse.md +3 -3
- data/docs/PopupAnnotationWithParent.md +3 -3
- data/docs/PopupAnnotations.md +3 -3
- data/docs/PopupAnnotationsResponse.md +3 -3
- data/docs/RasterImagesSavingModes.md +6 -6
- data/docs/Rectangle.md +12 -0
- data/docs/RedactionAnnotation.md +26 -0
- data/docs/RedactionAnnotationResponse.md +11 -0
- data/docs/RedactionAnnotations.md +10 -0
- data/docs/RedactionAnnotationsResponse.md +11 -0
- data/docs/Rotation.md +7 -7
- data/docs/Segment.md +4 -4
- data/docs/ShapeType.md +6 -6
- data/docs/Signature.md +3 -3
- data/docs/SignatureType.md +7 -7
- data/docs/SignatureVerifyResponse.md +3 -3
- data/docs/SoundAnnotation.md +30 -0
- data/docs/SoundAnnotationResponse.md +11 -0
- data/docs/SoundAnnotations.md +10 -0
- data/docs/SoundAnnotationsResponse.md +11 -0
- data/docs/SoundEncoding.md +13 -0
- data/docs/SoundIcon.md +11 -0
- data/docs/SplitResult.md +1 -1
- data/docs/SplitResultDocument.md +1 -1
- data/docs/SplitResultResponse.md +3 -3
- data/docs/SquareAnnotation.md +4 -4
- data/docs/SquareAnnotationResponse.md +3 -3
- data/docs/SquareAnnotations.md +3 -3
- data/docs/SquareAnnotationsResponse.md +3 -3
- data/docs/SquigglyAnnotation.md +3 -3
- data/docs/SquigglyAnnotationResponse.md +3 -3
- data/docs/SquigglyAnnotations.md +3 -3
- data/docs/SquigglyAnnotationsResponse.md +3 -3
- data/docs/Stamp.md +1 -1
- data/docs/StampType.md +7 -7
- data/docs/StorageExistResponse.md +11 -0
- data/docs/StrikeOutAnnotation.md +3 -3
- data/docs/StrikeOutAnnotationResponse.md +3 -3
- data/docs/StrikeOutAnnotations.md +3 -3
- data/docs/StrikeOutAnnotationsResponse.md +3 -3
- data/docs/TextAnnotation.md +3 -3
- data/docs/TextAnnotationResponse.md +3 -3
- data/docs/TextAnnotations.md +3 -3
- data/docs/TextAnnotationsResponse.md +3 -3
- data/docs/TextHorizontalAlignment.md +10 -10
- data/docs/TextIcon.md +14 -14
- data/docs/TextLine.md +2 -2
- data/docs/TextRect.md +5 -5
- data/docs/TextRects.md +3 -3
- data/docs/TextRectsResponse.md +3 -3
- data/docs/TextReplace.md +2 -2
- data/docs/TextReplaceListRequest.md +3 -3
- data/docs/TextReplaceResponse.md +3 -3
- data/docs/TextState.md +1 -1
- data/docs/TextStyle.md +1 -1
- data/docs/UnderlineAnnotation.md +3 -3
- data/docs/UnderlineAnnotationResponse.md +3 -3
- data/docs/UnderlineAnnotations.md +3 -3
- data/docs/UnderlineAnnotationsResponse.md +3 -3
- data/docs/VerticalAlignment.md +7 -7
- data/docs/WordCount.md +1 -1
- data/docs/WordCountResponse.md +1 -1
- data/docs/WrapMode.md +7 -7
- data/lib/aspose_pdf_cloud.rb +28 -2
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +4613 -1980
- data/lib/aspose_pdf_cloud/api_client.rb +1 -1
- data/lib/aspose_pdf_cloud/api_error.rb +1 -1
- data/lib/aspose_pdf_cloud/configuration.rb +1 -1
- data/lib/aspose_pdf_cloud/models/annotation.rb +13 -3
- data/lib/aspose_pdf_cloud/models/annotation_flags.rb +1 -1
- data/lib/aspose_pdf_cloud/models/annotation_info.rb +13 -3
- data/lib/aspose_pdf_cloud/models/annotation_state.rb +1 -1
- data/lib/aspose_pdf_cloud/models/annotation_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/annotations_info.rb +3 -2
- data/lib/aspose_pdf_cloud/models/annotations_info_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/antialiasing_processing_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/append_document.rb +1 -1
- data/lib/aspose_pdf_cloud/models/aspose_response.rb +1 -1
- data/lib/aspose_pdf_cloud/models/attachment.rb +1 -1
- data/lib/aspose_pdf_cloud/models/attachment_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/attachments.rb +3 -2
- data/lib/aspose_pdf_cloud/models/attachments_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/cap_style.rb +1 -1
- data/lib/aspose_pdf_cloud/models/caption_position.rb +1 -1
- data/lib/aspose_pdf_cloud/models/caret_annotation.rb +14 -14
- data/lib/aspose_pdf_cloud/models/caret_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/caret_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/caret_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/caret_symbol.rb +1 -1
- data/lib/aspose_pdf_cloud/models/circle_annotation.rb +16 -16
- data/lib/aspose_pdf_cloud/models/circle_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/circle_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/circle_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/color.rb +5 -1
- data/lib/aspose_pdf_cloud/models/color_depth.rb +1 -1
- data/lib/aspose_pdf_cloud/models/common_figure_annotation.rb +14 -4
- data/lib/aspose_pdf_cloud/models/compression_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/disc_usage.rb +219 -0
- data/lib/aspose_pdf_cloud/models/disc_usage_response.rb +225 -0
- data/lib/aspose_pdf_cloud/models/doc_format.rb +1 -1
- data/lib/aspose_pdf_cloud/models/doc_recognition_mode.rb +1 -1
- data/lib/aspose_pdf_cloud/models/document.rb +1 -1
- data/lib/aspose_pdf_cloud/models/document_page_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/document_pages_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/document_privilege.rb +1 -1
- data/lib/aspose_pdf_cloud/models/document_properties.rb +3 -2
- data/lib/aspose_pdf_cloud/models/document_properties_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/document_property.rb +4 -1
- data/lib/aspose_pdf_cloud/models/document_property_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/document_response.rb +4 -2
- data/lib/aspose_pdf_cloud/models/epub_recognition_mode.rb +1 -1
- data/lib/aspose_pdf_cloud/models/field.rb +2 -2
- data/lib/aspose_pdf_cloud/models/field_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/field_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/fields.rb +3 -2
- data/lib/aspose_pdf_cloud/models/fields_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/file.rb +1 -1
- data/lib/aspose_pdf_cloud/models/file_attachment_annotation.rb +405 -0
- data/lib/aspose_pdf_cloud/models/file_attachment_annotation_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/file_attachment_annotations.rb +215 -0
- data/lib/aspose_pdf_cloud/models/file_attachment_annotations_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/file_exist.rb +219 -0
- data/lib/aspose_pdf_cloud/models/file_exist_response.rb +225 -0
- data/lib/aspose_pdf_cloud/models/file_icon.rb +46 -0
- data/lib/aspose_pdf_cloud/models/file_version.rb +264 -0
- data/lib/aspose_pdf_cloud/models/file_versions_response.rb +227 -0
- data/lib/aspose_pdf_cloud/models/files_response.rb +1 -1
- data/lib/aspose_pdf_cloud/models/font_encoding_rules.rb +1 -1
- data/lib/aspose_pdf_cloud/models/font_saving_modes.rb +1 -1
- data/lib/aspose_pdf_cloud/models/font_styles.rb +1 -1
- data/lib/aspose_pdf_cloud/models/free_text_annotation.rb +13 -3
- data/lib/aspose_pdf_cloud/models/free_text_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/free_text_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/free_text_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/free_text_intent.rb +1 -1
- data/lib/aspose_pdf_cloud/models/highlight_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/highlight_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/highlight_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/highlight_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/horizontal_alignment.rb +1 -1
- data/lib/aspose_pdf_cloud/models/html_document_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/html_markup_generation_modes.rb +1 -1
- data/lib/aspose_pdf_cloud/models/image.rb +2 -2
- data/lib/aspose_pdf_cloud/models/image_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/image_src_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/image_template.rb +1 -1
- data/lib/aspose_pdf_cloud/models/image_templates_request.rb +1 -1
- data/lib/aspose_pdf_cloud/models/images.rb +3 -2
- data/lib/aspose_pdf_cloud/models/images_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/ink_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/ink_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/ink_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/ink_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/justification.rb +1 -1
- data/lib/aspose_pdf_cloud/models/letters_positioning_methods.rb +1 -1
- data/lib/aspose_pdf_cloud/models/line_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/line_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/line_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/line_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/line_ending.rb +1 -1
- data/lib/aspose_pdf_cloud/models/line_intent.rb +1 -1
- data/lib/aspose_pdf_cloud/models/line_spacing.rb +1 -1
- data/lib/aspose_pdf_cloud/models/link.rb +1 -1
- data/lib/aspose_pdf_cloud/models/link_action_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/link_annotation.rb +2 -2
- data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/link_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/link_element.rb +1 -1
- data/lib/aspose_pdf_cloud/models/link_highlighting_mode.rb +1 -1
- data/lib/aspose_pdf_cloud/models/margin_info.rb +1 -1
- data/lib/aspose_pdf_cloud/models/markup_annotation.rb +13 -3
- data/lib/aspose_pdf_cloud/models/merge_documents.rb +1 -1
- data/lib/aspose_pdf_cloud/models/movie_annotation.rb +345 -0
- data/lib/aspose_pdf_cloud/models/movie_annotation_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/movie_annotations.rb +215 -0
- data/lib/aspose_pdf_cloud/models/movie_annotations_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/optimize_options.rb +1 -1
- data/lib/aspose_pdf_cloud/models/page.rb +4 -2
- data/lib/aspose_pdf_cloud/models/page_word_count.rb +1 -1
- data/lib/aspose_pdf_cloud/models/pages.rb +3 -2
- data/lib/aspose_pdf_cloud/models/paragraph.rb +15 -3
- data/lib/aspose_pdf_cloud/models/parts_embedding_modes.rb +1 -1
- data/lib/aspose_pdf_cloud/models/pdf_a_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/point.rb +1 -1
- data/lib/aspose_pdf_cloud/models/poly_annotation.rb +14 -4
- data/lib/aspose_pdf_cloud/models/poly_intent.rb +1 -1
- data/lib/aspose_pdf_cloud/models/poly_line_annotation.rb +17 -17
- data/lib/aspose_pdf_cloud/models/poly_line_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/poly_line_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/poly_line_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/polygon_annotation.rb +17 -17
- data/lib/aspose_pdf_cloud/models/polygon_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/polygon_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/polygon_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/popup_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/popup_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/popup_annotation_with_parent.rb +13 -13
- data/lib/aspose_pdf_cloud/models/popup_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/popup_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/raster_images_saving_modes.rb +1 -1
- data/lib/aspose_pdf_cloud/models/{rectangle_pdf.rb → rectangle.rb} +6 -2
- data/lib/aspose_pdf_cloud/models/redaction_annotation.rb +377 -0
- data/lib/aspose_pdf_cloud/models/redaction_annotation_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/redaction_annotations.rb +215 -0
- data/lib/aspose_pdf_cloud/models/redaction_annotations_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/rotation.rb +1 -1
- data/lib/aspose_pdf_cloud/models/segment.rb +4 -2
- data/lib/aspose_pdf_cloud/models/shape_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/signature.rb +3 -3
- data/lib/aspose_pdf_cloud/models/signature_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/signature_verify_response.rb +3 -3
- data/lib/aspose_pdf_cloud/models/sound_annotation.rb +415 -0
- data/lib/aspose_pdf_cloud/models/sound_annotation_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/sound_annotations.rb +215 -0
- data/lib/aspose_pdf_cloud/models/sound_annotations_response.rb +226 -0
- data/lib/aspose_pdf_cloud/models/sound_encoding.rb +46 -0
- data/lib/aspose_pdf_cloud/models/sound_icon.rb +44 -0
- data/lib/aspose_pdf_cloud/models/split_result.rb +1 -1
- data/lib/aspose_pdf_cloud/models/split_result_document.rb +1 -1
- data/lib/aspose_pdf_cloud/models/split_result_response.rb +3 -3
- data/lib/aspose_pdf_cloud/models/square_annotation.rb +16 -16
- data/lib/aspose_pdf_cloud/models/square_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/square_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/square_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/squiggly_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/squiggly_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/squiggly_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/squiggly_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/stamp.rb +1 -1
- data/lib/aspose_pdf_cloud/models/stamp_type.rb +1 -1
- data/lib/aspose_pdf_cloud/models/storage_exist_response.rb +225 -0
- data/lib/aspose_pdf_cloud/models/strike_out_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/strike_out_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/strike_out_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/strike_out_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/text_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/text_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/text_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/text_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb +1 -1
- data/lib/aspose_pdf_cloud/models/text_icon.rb +1 -1
- data/lib/aspose_pdf_cloud/models/text_line.rb +2 -2
- data/lib/aspose_pdf_cloud/models/text_rect.rb +6 -3
- data/lib/aspose_pdf_cloud/models/text_rects.rb +3 -2
- data/lib/aspose_pdf_cloud/models/text_rects_response.rb +10 -9
- data/lib/aspose_pdf_cloud/models/text_replace.rb +2 -2
- data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +3 -1
- data/lib/aspose_pdf_cloud/models/text_replace_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/text_state.rb +1 -1
- data/lib/aspose_pdf_cloud/models/text_style.rb +1 -1
- data/lib/aspose_pdf_cloud/models/underline_annotation.rb +13 -13
- data/lib/aspose_pdf_cloud/models/underline_annotation_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/underline_annotations.rb +3 -2
- data/lib/aspose_pdf_cloud/models/underline_annotations_response.rb +3 -2
- data/lib/aspose_pdf_cloud/models/vertical_alignment.rb +1 -1
- data/lib/aspose_pdf_cloud/models/word_count.rb +1 -1
- data/lib/aspose_pdf_cloud/models/word_count_response.rb +1 -1
- data/lib/aspose_pdf_cloud/models/wrap_mode.rb +1 -1
- data/lib/aspose_pdf_cloud/version.rb +2 -2
- data/test/pdf_tests.rb +595 -41
- data/test_data/PdfWithAnnotations.pdf +0 -0
- data/test_data/PdfWithAnnotations1.pdf +0 -0
- metadata +57 -4
- data/docs/RectanglePdf.md +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -28,6 +28,9 @@ module AsposePdfCloud
|
|
|
28
28
|
# Link to the document.
|
|
29
29
|
attr_accessor :links
|
|
30
30
|
|
|
31
|
+
# Color of the annotation.
|
|
32
|
+
attr_accessor :color
|
|
33
|
+
|
|
31
34
|
# Get the annotation content.
|
|
32
35
|
attr_accessor :contents
|
|
33
36
|
|
|
@@ -76,9 +79,6 @@ module AsposePdfCloud
|
|
|
76
79
|
# Gets or sets is the annotation open.
|
|
77
80
|
attr_accessor :open
|
|
78
81
|
|
|
79
|
-
# Color of the annotation.
|
|
80
|
-
attr_accessor :color
|
|
81
|
-
|
|
82
82
|
# Gets or sets an icon to be used in displaying the annotation.
|
|
83
83
|
attr_accessor :icon
|
|
84
84
|
|
|
@@ -87,6 +87,7 @@ module AsposePdfCloud
|
|
|
87
87
|
def self.attribute_map
|
|
88
88
|
{
|
|
89
89
|
:'links' => :'Links',
|
|
90
|
+
:'color' => :'Color',
|
|
90
91
|
:'contents' => :'Contents',
|
|
91
92
|
:'modified' => :'Modified',
|
|
92
93
|
:'id' => :'Id',
|
|
@@ -103,7 +104,6 @@ module AsposePdfCloud
|
|
|
103
104
|
:'rich_text' => :'RichText',
|
|
104
105
|
:'state' => :'State',
|
|
105
106
|
:'open' => :'Open',
|
|
106
|
-
:'color' => :'Color',
|
|
107
107
|
:'icon' => :'Icon'
|
|
108
108
|
}
|
|
109
109
|
end
|
|
@@ -112,12 +112,13 @@ module AsposePdfCloud
|
|
|
112
112
|
def self.swagger_types
|
|
113
113
|
{
|
|
114
114
|
:'links' => :'Array<Link>',
|
|
115
|
+
:'color' => :'Color',
|
|
115
116
|
:'contents' => :'String',
|
|
116
117
|
:'modified' => :'String',
|
|
117
118
|
:'id' => :'String',
|
|
118
119
|
:'flags' => :'Array<AnnotationFlags>',
|
|
119
120
|
:'name' => :'String',
|
|
120
|
-
:'rect' => :'
|
|
121
|
+
:'rect' => :'Rectangle',
|
|
121
122
|
:'page_index' => :'Integer',
|
|
122
123
|
:'z_index' => :'Integer',
|
|
123
124
|
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
@@ -128,7 +129,6 @@ module AsposePdfCloud
|
|
|
128
129
|
:'rich_text' => :'String',
|
|
129
130
|
:'state' => :'AnnotationState',
|
|
130
131
|
:'open' => :'BOOLEAN',
|
|
131
|
-
:'color' => :'Color',
|
|
132
132
|
:'icon' => :'TextIcon'
|
|
133
133
|
}
|
|
134
134
|
end
|
|
@@ -147,6 +147,10 @@ module AsposePdfCloud
|
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
+
if attributes.has_key?(:'Color')
|
|
151
|
+
self.color = attributes[:'Color']
|
|
152
|
+
end
|
|
153
|
+
|
|
150
154
|
if attributes.has_key?(:'Contents')
|
|
151
155
|
self.contents = attributes[:'Contents']
|
|
152
156
|
end
|
|
@@ -213,10 +217,6 @@ module AsposePdfCloud
|
|
|
213
217
|
self.open = attributes[:'Open']
|
|
214
218
|
end
|
|
215
219
|
|
|
216
|
-
if attributes.has_key?(:'Color')
|
|
217
|
-
self.color = attributes[:'Color']
|
|
218
|
-
end
|
|
219
|
-
|
|
220
220
|
if attributes.has_key?(:'Icon')
|
|
221
221
|
self.icon = attributes[:'Icon']
|
|
222
222
|
end
|
|
@@ -242,6 +242,7 @@ module AsposePdfCloud
|
|
|
242
242
|
return true if self.equal?(o)
|
|
243
243
|
self.class == o.class &&
|
|
244
244
|
links == o.links &&
|
|
245
|
+
color == o.color &&
|
|
245
246
|
contents == o.contents &&
|
|
246
247
|
modified == o.modified &&
|
|
247
248
|
id == o.id &&
|
|
@@ -258,7 +259,6 @@ module AsposePdfCloud
|
|
|
258
259
|
rich_text == o.rich_text &&
|
|
259
260
|
state == o.state &&
|
|
260
261
|
open == o.open &&
|
|
261
|
-
color == o.color &&
|
|
262
262
|
icon == o.icon
|
|
263
263
|
end
|
|
264
264
|
|
|
@@ -271,7 +271,7 @@ module AsposePdfCloud
|
|
|
271
271
|
# Calculates hash code according to all attributes.
|
|
272
272
|
# @return [Fixnum] Hash code
|
|
273
273
|
def hash
|
|
274
|
-
[links, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment, creation_date, subject, title, rich_text, state, open,
|
|
274
|
+
[links, color, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment, creation_date, subject, title, rich_text, state, open, icon].hash
|
|
275
275
|
end
|
|
276
276
|
|
|
277
277
|
# Builds the object from hash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,7 +23,7 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
|
|
26
|
+
# Represents response containing single text annotation object
|
|
27
27
|
class TextAnnotationResponse
|
|
28
28
|
# Response status code.
|
|
29
29
|
attr_accessor :code
|
|
@@ -31,6 +31,7 @@ module AsposePdfCloud
|
|
|
31
31
|
# Response status.
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
|
+
# Text annotation object
|
|
34
35
|
attr_accessor :annotation
|
|
35
36
|
|
|
36
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,11 +23,12 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
#
|
|
26
|
+
# Object representing a list of text annotations.
|
|
27
27
|
class TextAnnotations
|
|
28
28
|
# Link to the document.
|
|
29
29
|
attr_accessor :links
|
|
30
30
|
|
|
31
|
+
# List of text annotations.
|
|
31
32
|
attr_accessor :list
|
|
32
33
|
|
|
33
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,7 +23,7 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
|
|
26
|
+
# Represents response containing multiple text annotation objects
|
|
27
27
|
class TextAnnotationsResponse
|
|
28
28
|
# Response status code.
|
|
29
29
|
attr_accessor :code
|
|
@@ -31,6 +31,7 @@ module AsposePdfCloud
|
|
|
31
31
|
# Response status.
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
|
+
# Text annotations object
|
|
34
35
|
attr_accessor :annotations
|
|
35
36
|
|
|
36
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,7 +23,7 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
# A line of text to be inserted into .
|
|
26
|
+
# A line of text to be inserted into paragraph.
|
|
27
27
|
class TextLine
|
|
28
28
|
# Line's horizontal alignment
|
|
29
29
|
attr_accessor :horizontal_alignment
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,12 +23,15 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
# Represents text
|
|
26
|
+
# Represents text occurrence.
|
|
27
27
|
class TextRect
|
|
28
|
+
# Text of the occurrence.
|
|
28
29
|
attr_accessor :text
|
|
29
30
|
|
|
31
|
+
# Page on which the occurrence is found.
|
|
30
32
|
attr_accessor :page
|
|
31
33
|
|
|
34
|
+
# Rectangle of the occurrence.
|
|
32
35
|
attr_accessor :rect
|
|
33
36
|
|
|
34
37
|
|
|
@@ -46,7 +49,7 @@ module AsposePdfCloud
|
|
|
46
49
|
{
|
|
47
50
|
:'text' => :'String',
|
|
48
51
|
:'page' => :'Integer',
|
|
49
|
-
:'rect' => :'
|
|
52
|
+
:'rect' => :'Rectangle'
|
|
50
53
|
}
|
|
51
54
|
end
|
|
52
55
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,8 +23,9 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
# Represents text
|
|
26
|
+
# Represents multiple text occurrences DTO.
|
|
27
27
|
class TextRects
|
|
28
|
+
# The list of text occurrences.
|
|
28
29
|
attr_accessor :list
|
|
29
30
|
|
|
30
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,7 +23,7 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
|
|
26
|
+
# Represents response containing multiple text occurrences info
|
|
27
27
|
class TextRectsResponse
|
|
28
28
|
# Response status code.
|
|
29
29
|
attr_accessor :code
|
|
@@ -31,7 +31,8 @@ module AsposePdfCloud
|
|
|
31
31
|
# Response status.
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
# TextRects object
|
|
35
|
+
attr_accessor :text_occurrences
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -39,7 +40,7 @@ module AsposePdfCloud
|
|
|
39
40
|
{
|
|
40
41
|
:'code' => :'Code',
|
|
41
42
|
:'status' => :'Status',
|
|
42
|
-
:'
|
|
43
|
+
:'text_occurrences' => :'TextOccurrences'
|
|
43
44
|
}
|
|
44
45
|
end
|
|
45
46
|
|
|
@@ -48,7 +49,7 @@ module AsposePdfCloud
|
|
|
48
49
|
{
|
|
49
50
|
:'code' => :'Integer',
|
|
50
51
|
:'status' => :'String',
|
|
51
|
-
:'
|
|
52
|
+
:'text_occurrences' => :'TextRects'
|
|
52
53
|
}
|
|
53
54
|
end
|
|
54
55
|
|
|
@@ -68,8 +69,8 @@ module AsposePdfCloud
|
|
|
68
69
|
self.status = attributes[:'Status']
|
|
69
70
|
end
|
|
70
71
|
|
|
71
|
-
if attributes.has_key?(:'
|
|
72
|
-
self.
|
|
72
|
+
if attributes.has_key?(:'TextOccurrences')
|
|
73
|
+
self.text_occurrences = attributes[:'TextOccurrences']
|
|
73
74
|
end
|
|
74
75
|
|
|
75
76
|
end
|
|
@@ -99,7 +100,7 @@ module AsposePdfCloud
|
|
|
99
100
|
self.class == o.class &&
|
|
100
101
|
code == o.code &&
|
|
101
102
|
status == o.status &&
|
|
102
|
-
|
|
103
|
+
text_occurrences == o.text_occurrences
|
|
103
104
|
end
|
|
104
105
|
|
|
105
106
|
# @see the `==` method
|
|
@@ -111,7 +112,7 @@ module AsposePdfCloud
|
|
|
111
112
|
# Calculates hash code according to all attributes.
|
|
112
113
|
# @return [Fixnum] Hash code
|
|
113
114
|
def hash
|
|
114
|
-
[code, status,
|
|
115
|
+
[code, status, text_occurrences].hash
|
|
115
116
|
end
|
|
116
117
|
|
|
117
118
|
# Builds the object from hash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -59,7 +59,7 @@ module AsposePdfCloud
|
|
|
59
59
|
:'new_value' => :'String',
|
|
60
60
|
:'regex' => :'BOOLEAN',
|
|
61
61
|
:'text_state' => :'TextState',
|
|
62
|
-
:'rect' => :'
|
|
62
|
+
:'rect' => :'Rectangle'
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -30,8 +30,10 @@ module AsposePdfCloud
|
|
|
30
30
|
|
|
31
31
|
attr_accessor :default_font
|
|
32
32
|
|
|
33
|
+
# The index of first match to be replaced.
|
|
33
34
|
attr_accessor :start_index
|
|
34
35
|
|
|
36
|
+
# The number of matches to be replaced.
|
|
35
37
|
attr_accessor :count_replace
|
|
36
38
|
|
|
37
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -23,7 +23,7 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
|
|
26
|
+
# Represents response containing the result of text replacement
|
|
27
27
|
class TextReplaceResponse
|
|
28
28
|
# Response status code.
|
|
29
29
|
attr_accessor :code
|
|
@@ -31,6 +31,7 @@ module AsposePdfCloud
|
|
|
31
31
|
# Response status.
|
|
32
32
|
attr_accessor :status
|
|
33
33
|
|
|
34
|
+
# Number of matches
|
|
34
35
|
attr_accessor :matches
|
|
35
36
|
|
|
36
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Aspose.PDF Cloud
|
|
4
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
6
6
|
in the Software without restriction, including without limitation the rights
|
|
@@ -28,6 +28,9 @@ module AsposePdfCloud
|
|
|
28
28
|
# Link to the document.
|
|
29
29
|
attr_accessor :links
|
|
30
30
|
|
|
31
|
+
# Color of the annotation.
|
|
32
|
+
attr_accessor :color
|
|
33
|
+
|
|
31
34
|
# Get the annotation content.
|
|
32
35
|
attr_accessor :contents
|
|
33
36
|
|
|
@@ -70,9 +73,6 @@ module AsposePdfCloud
|
|
|
70
73
|
# Get the annotation RichText.
|
|
71
74
|
attr_accessor :rich_text
|
|
72
75
|
|
|
73
|
-
# Color of the annotation.
|
|
74
|
-
attr_accessor :color
|
|
75
|
-
|
|
76
76
|
# Gets or sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.
|
|
77
77
|
attr_accessor :quad_points
|
|
78
78
|
|
|
@@ -81,6 +81,7 @@ module AsposePdfCloud
|
|
|
81
81
|
def self.attribute_map
|
|
82
82
|
{
|
|
83
83
|
:'links' => :'Links',
|
|
84
|
+
:'color' => :'Color',
|
|
84
85
|
:'contents' => :'Contents',
|
|
85
86
|
:'modified' => :'Modified',
|
|
86
87
|
:'id' => :'Id',
|
|
@@ -95,7 +96,6 @@ module AsposePdfCloud
|
|
|
95
96
|
:'subject' => :'Subject',
|
|
96
97
|
:'title' => :'Title',
|
|
97
98
|
:'rich_text' => :'RichText',
|
|
98
|
-
:'color' => :'Color',
|
|
99
99
|
:'quad_points' => :'QuadPoints'
|
|
100
100
|
}
|
|
101
101
|
end
|
|
@@ -104,12 +104,13 @@ module AsposePdfCloud
|
|
|
104
104
|
def self.swagger_types
|
|
105
105
|
{
|
|
106
106
|
:'links' => :'Array<Link>',
|
|
107
|
+
:'color' => :'Color',
|
|
107
108
|
:'contents' => :'String',
|
|
108
109
|
:'modified' => :'String',
|
|
109
110
|
:'id' => :'String',
|
|
110
111
|
:'flags' => :'Array<AnnotationFlags>',
|
|
111
112
|
:'name' => :'String',
|
|
112
|
-
:'rect' => :'
|
|
113
|
+
:'rect' => :'Rectangle',
|
|
113
114
|
:'page_index' => :'Integer',
|
|
114
115
|
:'z_index' => :'Integer',
|
|
115
116
|
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
@@ -118,7 +119,6 @@ module AsposePdfCloud
|
|
|
118
119
|
:'subject' => :'String',
|
|
119
120
|
:'title' => :'String',
|
|
120
121
|
:'rich_text' => :'String',
|
|
121
|
-
:'color' => :'Color',
|
|
122
122
|
:'quad_points' => :'Array<Point>'
|
|
123
123
|
}
|
|
124
124
|
end
|
|
@@ -137,6 +137,10 @@ module AsposePdfCloud
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
+
if attributes.has_key?(:'Color')
|
|
141
|
+
self.color = attributes[:'Color']
|
|
142
|
+
end
|
|
143
|
+
|
|
140
144
|
if attributes.has_key?(:'Contents')
|
|
141
145
|
self.contents = attributes[:'Contents']
|
|
142
146
|
end
|
|
@@ -195,10 +199,6 @@ module AsposePdfCloud
|
|
|
195
199
|
self.rich_text = attributes[:'RichText']
|
|
196
200
|
end
|
|
197
201
|
|
|
198
|
-
if attributes.has_key?(:'Color')
|
|
199
|
-
self.color = attributes[:'Color']
|
|
200
|
-
end
|
|
201
|
-
|
|
202
202
|
if attributes.has_key?(:'QuadPoints')
|
|
203
203
|
if (value = attributes[:'QuadPoints']).is_a?(Array)
|
|
204
204
|
self.quad_points = value
|
|
@@ -226,6 +226,7 @@ module AsposePdfCloud
|
|
|
226
226
|
return true if self.equal?(o)
|
|
227
227
|
self.class == o.class &&
|
|
228
228
|
links == o.links &&
|
|
229
|
+
color == o.color &&
|
|
229
230
|
contents == o.contents &&
|
|
230
231
|
modified == o.modified &&
|
|
231
232
|
id == o.id &&
|
|
@@ -240,7 +241,6 @@ module AsposePdfCloud
|
|
|
240
241
|
subject == o.subject &&
|
|
241
242
|
title == o.title &&
|
|
242
243
|
rich_text == o.rich_text &&
|
|
243
|
-
color == o.color &&
|
|
244
244
|
quad_points == o.quad_points
|
|
245
245
|
end
|
|
246
246
|
|
|
@@ -253,7 +253,7 @@ module AsposePdfCloud
|
|
|
253
253
|
# Calculates hash code according to all attributes.
|
|
254
254
|
# @return [Fixnum] Hash code
|
|
255
255
|
def hash
|
|
256
|
-
[links, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment, creation_date, subject, title, rich_text,
|
|
256
|
+
[links, color, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment, creation_date, subject, title, rich_text, quad_points].hash
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
# Builds the object from hash
|