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
|
|
@@ -23,7 +23,7 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
|
|
26
|
+
# Represents response containing single polygon annotation object
|
|
27
27
|
class PolygonAnnotationResponse
|
|
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
|
+
# Polygon 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 polygon annotations.
|
|
27
27
|
class PolygonAnnotations
|
|
28
28
|
# Link to the document.
|
|
29
29
|
attr_accessor :links
|
|
30
30
|
|
|
31
|
+
# List of polygon 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 polygon annotation objects
|
|
27
27
|
class PolygonAnnotationsResponse
|
|
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
|
+
# Polygon 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
|
|
@@ -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
|
|
|
@@ -58,9 +61,6 @@ module AsposePdfCloud
|
|
|
58
61
|
# Gets VerticalAlignment of the annotation.
|
|
59
62
|
attr_accessor :vertical_alignment
|
|
60
63
|
|
|
61
|
-
# Color of the annotation.
|
|
62
|
-
attr_accessor :color
|
|
63
|
-
|
|
64
64
|
# Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open.
|
|
65
65
|
attr_accessor :open
|
|
66
66
|
|
|
@@ -69,6 +69,7 @@ module AsposePdfCloud
|
|
|
69
69
|
def self.attribute_map
|
|
70
70
|
{
|
|
71
71
|
:'links' => :'Links',
|
|
72
|
+
:'color' => :'Color',
|
|
72
73
|
:'contents' => :'Contents',
|
|
73
74
|
:'modified' => :'Modified',
|
|
74
75
|
:'id' => :'Id',
|
|
@@ -79,7 +80,6 @@ module AsposePdfCloud
|
|
|
79
80
|
:'z_index' => :'ZIndex',
|
|
80
81
|
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
81
82
|
:'vertical_alignment' => :'VerticalAlignment',
|
|
82
|
-
:'color' => :'Color',
|
|
83
83
|
:'open' => :'Open'
|
|
84
84
|
}
|
|
85
85
|
end
|
|
@@ -88,17 +88,17 @@ module AsposePdfCloud
|
|
|
88
88
|
def self.swagger_types
|
|
89
89
|
{
|
|
90
90
|
:'links' => :'Array<Link>',
|
|
91
|
+
:'color' => :'Color',
|
|
91
92
|
:'contents' => :'String',
|
|
92
93
|
:'modified' => :'String',
|
|
93
94
|
:'id' => :'String',
|
|
94
95
|
:'flags' => :'Array<AnnotationFlags>',
|
|
95
96
|
:'name' => :'String',
|
|
96
|
-
:'rect' => :'
|
|
97
|
+
:'rect' => :'Rectangle',
|
|
97
98
|
:'page_index' => :'Integer',
|
|
98
99
|
:'z_index' => :'Integer',
|
|
99
100
|
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
100
101
|
:'vertical_alignment' => :'VerticalAlignment',
|
|
101
|
-
:'color' => :'Color',
|
|
102
102
|
:'open' => :'BOOLEAN'
|
|
103
103
|
}
|
|
104
104
|
end
|
|
@@ -117,6 +117,10 @@ module AsposePdfCloud
|
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
if attributes.has_key?(:'Color')
|
|
121
|
+
self.color = attributes[:'Color']
|
|
122
|
+
end
|
|
123
|
+
|
|
120
124
|
if attributes.has_key?(:'Contents')
|
|
121
125
|
self.contents = attributes[:'Contents']
|
|
122
126
|
end
|
|
@@ -159,10 +163,6 @@ module AsposePdfCloud
|
|
|
159
163
|
self.vertical_alignment = attributes[:'VerticalAlignment']
|
|
160
164
|
end
|
|
161
165
|
|
|
162
|
-
if attributes.has_key?(:'Color')
|
|
163
|
-
self.color = attributes[:'Color']
|
|
164
|
-
end
|
|
165
|
-
|
|
166
166
|
if attributes.has_key?(:'Open')
|
|
167
167
|
self.open = attributes[:'Open']
|
|
168
168
|
end
|
|
@@ -188,6 +188,7 @@ module AsposePdfCloud
|
|
|
188
188
|
return true if self.equal?(o)
|
|
189
189
|
self.class == o.class &&
|
|
190
190
|
links == o.links &&
|
|
191
|
+
color == o.color &&
|
|
191
192
|
contents == o.contents &&
|
|
192
193
|
modified == o.modified &&
|
|
193
194
|
id == o.id &&
|
|
@@ -198,7 +199,6 @@ module AsposePdfCloud
|
|
|
198
199
|
z_index == o.z_index &&
|
|
199
200
|
horizontal_alignment == o.horizontal_alignment &&
|
|
200
201
|
vertical_alignment == o.vertical_alignment &&
|
|
201
|
-
color == o.color &&
|
|
202
202
|
open == o.open
|
|
203
203
|
end
|
|
204
204
|
|
|
@@ -211,7 +211,7 @@ module AsposePdfCloud
|
|
|
211
211
|
# Calculates hash code according to all attributes.
|
|
212
212
|
# @return [Fixnum] Hash code
|
|
213
213
|
def hash
|
|
214
|
-
[links, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment,
|
|
214
|
+
[links, color, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment, open].hash
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# 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 popup annotation object
|
|
27
27
|
class PopupAnnotationResponse
|
|
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
|
+
# Popup 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
|
|
@@ -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
|
|
|
@@ -58,9 +61,6 @@ module AsposePdfCloud
|
|
|
58
61
|
# Gets VerticalAlignment of the annotation.
|
|
59
62
|
attr_accessor :vertical_alignment
|
|
60
63
|
|
|
61
|
-
# Color of the annotation.
|
|
62
|
-
attr_accessor :color
|
|
63
|
-
|
|
64
64
|
# Gets or sets a flag specifying whether the pop-up annotation should initially be displayed open.
|
|
65
65
|
attr_accessor :open
|
|
66
66
|
|
|
@@ -72,6 +72,7 @@ module AsposePdfCloud
|
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
74
|
:'links' => :'Links',
|
|
75
|
+
:'color' => :'Color',
|
|
75
76
|
:'contents' => :'Contents',
|
|
76
77
|
:'modified' => :'Modified',
|
|
77
78
|
:'id' => :'Id',
|
|
@@ -82,7 +83,6 @@ module AsposePdfCloud
|
|
|
82
83
|
:'z_index' => :'ZIndex',
|
|
83
84
|
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
84
85
|
:'vertical_alignment' => :'VerticalAlignment',
|
|
85
|
-
:'color' => :'Color',
|
|
86
86
|
:'open' => :'Open',
|
|
87
87
|
:'parent' => :'Parent'
|
|
88
88
|
}
|
|
@@ -92,17 +92,17 @@ module AsposePdfCloud
|
|
|
92
92
|
def self.swagger_types
|
|
93
93
|
{
|
|
94
94
|
:'links' => :'Array<Link>',
|
|
95
|
+
:'color' => :'Color',
|
|
95
96
|
:'contents' => :'String',
|
|
96
97
|
:'modified' => :'String',
|
|
97
98
|
:'id' => :'String',
|
|
98
99
|
:'flags' => :'Array<AnnotationFlags>',
|
|
99
100
|
:'name' => :'String',
|
|
100
|
-
:'rect' => :'
|
|
101
|
+
:'rect' => :'Rectangle',
|
|
101
102
|
:'page_index' => :'Integer',
|
|
102
103
|
:'z_index' => :'Integer',
|
|
103
104
|
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
104
105
|
:'vertical_alignment' => :'VerticalAlignment',
|
|
105
|
-
:'color' => :'Color',
|
|
106
106
|
:'open' => :'BOOLEAN',
|
|
107
107
|
:'parent' => :'AnnotationInfo'
|
|
108
108
|
}
|
|
@@ -122,6 +122,10 @@ module AsposePdfCloud
|
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
if attributes.has_key?(:'Color')
|
|
126
|
+
self.color = attributes[:'Color']
|
|
127
|
+
end
|
|
128
|
+
|
|
125
129
|
if attributes.has_key?(:'Contents')
|
|
126
130
|
self.contents = attributes[:'Contents']
|
|
127
131
|
end
|
|
@@ -164,10 +168,6 @@ module AsposePdfCloud
|
|
|
164
168
|
self.vertical_alignment = attributes[:'VerticalAlignment']
|
|
165
169
|
end
|
|
166
170
|
|
|
167
|
-
if attributes.has_key?(:'Color')
|
|
168
|
-
self.color = attributes[:'Color']
|
|
169
|
-
end
|
|
170
|
-
|
|
171
171
|
if attributes.has_key?(:'Open')
|
|
172
172
|
self.open = attributes[:'Open']
|
|
173
173
|
end
|
|
@@ -197,6 +197,7 @@ module AsposePdfCloud
|
|
|
197
197
|
return true if self.equal?(o)
|
|
198
198
|
self.class == o.class &&
|
|
199
199
|
links == o.links &&
|
|
200
|
+
color == o.color &&
|
|
200
201
|
contents == o.contents &&
|
|
201
202
|
modified == o.modified &&
|
|
202
203
|
id == o.id &&
|
|
@@ -207,7 +208,6 @@ module AsposePdfCloud
|
|
|
207
208
|
z_index == o.z_index &&
|
|
208
209
|
horizontal_alignment == o.horizontal_alignment &&
|
|
209
210
|
vertical_alignment == o.vertical_alignment &&
|
|
210
|
-
color == o.color &&
|
|
211
211
|
open == o.open &&
|
|
212
212
|
parent == o.parent
|
|
213
213
|
end
|
|
@@ -221,7 +221,7 @@ module AsposePdfCloud
|
|
|
221
221
|
# Calculates hash code according to all attributes.
|
|
222
222
|
# @return [Fixnum] Hash code
|
|
223
223
|
def hash
|
|
224
|
-
[links, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment,
|
|
224
|
+
[links, color, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment, open, parent].hash
|
|
225
225
|
end
|
|
226
226
|
|
|
227
227
|
# 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,11 +23,12 @@ require 'date'
|
|
|
23
23
|
require 'time'
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
|
-
#
|
|
26
|
+
# Object representing a list of popup annotations.
|
|
27
27
|
class PopupAnnotations
|
|
28
28
|
# Link to the document.
|
|
29
29
|
attr_accessor :links
|
|
30
30
|
|
|
31
|
+
# List of popup 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 popup annotation objects
|
|
27
27
|
class PopupAnnotationsResponse
|
|
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
|
+
# Popup 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
|
|
@@ -24,13 +24,17 @@ require 'time'
|
|
|
24
24
|
|
|
25
25
|
module AsposePdfCloud
|
|
26
26
|
# Represents rectangle DTO.
|
|
27
|
-
class
|
|
27
|
+
class Rectangle
|
|
28
|
+
# X-coordinate of lower - left corner.
|
|
28
29
|
attr_accessor :llx
|
|
29
30
|
|
|
31
|
+
# Y - coordinate of lower-left corner.
|
|
30
32
|
attr_accessor :lly
|
|
31
33
|
|
|
34
|
+
# X - coordinate of upper-right corner.
|
|
32
35
|
attr_accessor :urx
|
|
33
36
|
|
|
37
|
+
# Y - coordinate of upper-right corner.
|
|
34
38
|
attr_accessor :ury
|
|
35
39
|
|
|
36
40
|
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
Copyright (c) 2019 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
|
+
=end
|
|
21
|
+
|
|
22
|
+
require 'date'
|
|
23
|
+
require 'time'
|
|
24
|
+
|
|
25
|
+
module AsposePdfCloud
|
|
26
|
+
# Provides RedactionAnnotation.
|
|
27
|
+
class RedactionAnnotation
|
|
28
|
+
# Link to the document.
|
|
29
|
+
attr_accessor :links
|
|
30
|
+
|
|
31
|
+
# Color of the annotation.
|
|
32
|
+
attr_accessor :color
|
|
33
|
+
|
|
34
|
+
# Get the annotation content.
|
|
35
|
+
attr_accessor :contents
|
|
36
|
+
|
|
37
|
+
# The date and time when the annotation was last modified.
|
|
38
|
+
attr_accessor :modified
|
|
39
|
+
|
|
40
|
+
# Gets ID of the annotation.
|
|
41
|
+
attr_accessor :id
|
|
42
|
+
|
|
43
|
+
# Gets Flags of the annotation.
|
|
44
|
+
attr_accessor :flags
|
|
45
|
+
|
|
46
|
+
# Gets Name of the annotation.
|
|
47
|
+
attr_accessor :name
|
|
48
|
+
|
|
49
|
+
# Gets Rect of the annotation.
|
|
50
|
+
attr_accessor :rect
|
|
51
|
+
|
|
52
|
+
# Gets PageIndex of the annotation.
|
|
53
|
+
attr_accessor :page_index
|
|
54
|
+
|
|
55
|
+
# Gets ZIndex of the annotation.
|
|
56
|
+
attr_accessor :z_index
|
|
57
|
+
|
|
58
|
+
# Gets HorizontalAlignment of the annotation.
|
|
59
|
+
attr_accessor :horizontal_alignment
|
|
60
|
+
|
|
61
|
+
# Gets VerticalAlignment of the annotation.
|
|
62
|
+
attr_accessor :vertical_alignment
|
|
63
|
+
|
|
64
|
+
# An array of 8xN numbers specifying the coordinates of content region that is intended to be removed.
|
|
65
|
+
attr_accessor :quad_point
|
|
66
|
+
|
|
67
|
+
# Gets or sets color to fill annotation.
|
|
68
|
+
attr_accessor :fill_color
|
|
69
|
+
|
|
70
|
+
# Gets or sets color of border which is drawn when redaction is not active.
|
|
71
|
+
attr_accessor :border_color
|
|
72
|
+
|
|
73
|
+
# Text to print on redact annotation.
|
|
74
|
+
attr_accessor :overlay_text
|
|
75
|
+
|
|
76
|
+
# If true overlay text will be repated on the annotation.
|
|
77
|
+
attr_accessor :repeat
|
|
78
|
+
|
|
79
|
+
# Gets or sets. Alignment of Overlay Text.
|
|
80
|
+
attr_accessor :text_alignment
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
|
+
def self.attribute_map
|
|
85
|
+
{
|
|
86
|
+
:'links' => :'Links',
|
|
87
|
+
:'color' => :'Color',
|
|
88
|
+
:'contents' => :'Contents',
|
|
89
|
+
:'modified' => :'Modified',
|
|
90
|
+
:'id' => :'Id',
|
|
91
|
+
:'flags' => :'Flags',
|
|
92
|
+
:'name' => :'Name',
|
|
93
|
+
:'rect' => :'Rect',
|
|
94
|
+
:'page_index' => :'PageIndex',
|
|
95
|
+
:'z_index' => :'ZIndex',
|
|
96
|
+
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
97
|
+
:'vertical_alignment' => :'VerticalAlignment',
|
|
98
|
+
:'quad_point' => :'QuadPoint',
|
|
99
|
+
:'fill_color' => :'FillColor',
|
|
100
|
+
:'border_color' => :'BorderColor',
|
|
101
|
+
:'overlay_text' => :'OverlayText',
|
|
102
|
+
:'repeat' => :'Repeat',
|
|
103
|
+
:'text_alignment' => :'TextAlignment'
|
|
104
|
+
}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Attribute type mapping.
|
|
108
|
+
def self.swagger_types
|
|
109
|
+
{
|
|
110
|
+
:'links' => :'Array<Link>',
|
|
111
|
+
:'color' => :'Color',
|
|
112
|
+
:'contents' => :'String',
|
|
113
|
+
:'modified' => :'String',
|
|
114
|
+
:'id' => :'String',
|
|
115
|
+
:'flags' => :'Array<AnnotationFlags>',
|
|
116
|
+
:'name' => :'String',
|
|
117
|
+
:'rect' => :'Rectangle',
|
|
118
|
+
:'page_index' => :'Integer',
|
|
119
|
+
:'z_index' => :'Integer',
|
|
120
|
+
:'horizontal_alignment' => :'HorizontalAlignment',
|
|
121
|
+
:'vertical_alignment' => :'VerticalAlignment',
|
|
122
|
+
:'quad_point' => :'Array<Point>',
|
|
123
|
+
:'fill_color' => :'Color',
|
|
124
|
+
:'border_color' => :'Color',
|
|
125
|
+
:'overlay_text' => :'String',
|
|
126
|
+
:'repeat' => :'BOOLEAN',
|
|
127
|
+
:'text_alignment' => :'HorizontalAlignment'
|
|
128
|
+
}
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Initializes the object
|
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
133
|
+
def initialize(attributes = {})
|
|
134
|
+
return unless attributes.is_a?(Hash)
|
|
135
|
+
|
|
136
|
+
# convert string to symbol for hash key
|
|
137
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
138
|
+
|
|
139
|
+
if attributes.has_key?(:'Links')
|
|
140
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
|
141
|
+
self.links = value
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.has_key?(:'Color')
|
|
146
|
+
self.color = attributes[:'Color']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.has_key?(:'Contents')
|
|
150
|
+
self.contents = attributes[:'Contents']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.has_key?(:'Modified')
|
|
154
|
+
self.modified = attributes[:'Modified']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.has_key?(:'Id')
|
|
158
|
+
self.id = attributes[:'Id']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.has_key?(:'Flags')
|
|
162
|
+
if (value = attributes[:'Flags']).is_a?(Array)
|
|
163
|
+
self.flags = value
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if attributes.has_key?(:'Name')
|
|
168
|
+
self.name = attributes[:'Name']
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.has_key?(:'Rect')
|
|
172
|
+
self.rect = attributes[:'Rect']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.has_key?(:'PageIndex')
|
|
176
|
+
self.page_index = attributes[:'PageIndex']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.has_key?(:'ZIndex')
|
|
180
|
+
self.z_index = attributes[:'ZIndex']
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.has_key?(:'HorizontalAlignment')
|
|
184
|
+
self.horizontal_alignment = attributes[:'HorizontalAlignment']
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.has_key?(:'VerticalAlignment')
|
|
188
|
+
self.vertical_alignment = attributes[:'VerticalAlignment']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.has_key?(:'QuadPoint')
|
|
192
|
+
if (value = attributes[:'QuadPoint']).is_a?(Array)
|
|
193
|
+
self.quad_point = value
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.has_key?(:'FillColor')
|
|
198
|
+
self.fill_color = attributes[:'FillColor']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.has_key?(:'BorderColor')
|
|
202
|
+
self.border_color = attributes[:'BorderColor']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.has_key?(:'OverlayText')
|
|
206
|
+
self.overlay_text = attributes[:'OverlayText']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.has_key?(:'Repeat')
|
|
210
|
+
self.repeat = attributes[:'Repeat']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.has_key?(:'TextAlignment')
|
|
214
|
+
self.text_alignment = attributes[:'TextAlignment']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
220
|
+
# @return Array for valid properies with the reasons
|
|
221
|
+
def list_invalid_properties
|
|
222
|
+
invalid_properties = Array.new
|
|
223
|
+
return invalid_properties
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Check to see if the all the properties in the model are valid
|
|
227
|
+
# @return true if the model is valid
|
|
228
|
+
def valid?
|
|
229
|
+
return true
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Checks equality by comparing each attribute.
|
|
233
|
+
# @param [Object] Object to be compared
|
|
234
|
+
def ==(o)
|
|
235
|
+
return true if self.equal?(o)
|
|
236
|
+
self.class == o.class &&
|
|
237
|
+
links == o.links &&
|
|
238
|
+
color == o.color &&
|
|
239
|
+
contents == o.contents &&
|
|
240
|
+
modified == o.modified &&
|
|
241
|
+
id == o.id &&
|
|
242
|
+
flags == o.flags &&
|
|
243
|
+
name == o.name &&
|
|
244
|
+
rect == o.rect &&
|
|
245
|
+
page_index == o.page_index &&
|
|
246
|
+
z_index == o.z_index &&
|
|
247
|
+
horizontal_alignment == o.horizontal_alignment &&
|
|
248
|
+
vertical_alignment == o.vertical_alignment &&
|
|
249
|
+
quad_point == o.quad_point &&
|
|
250
|
+
fill_color == o.fill_color &&
|
|
251
|
+
border_color == o.border_color &&
|
|
252
|
+
overlay_text == o.overlay_text &&
|
|
253
|
+
repeat == o.repeat &&
|
|
254
|
+
text_alignment == o.text_alignment
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# @see the `==` method
|
|
258
|
+
# @param [Object] Object to be compared
|
|
259
|
+
def eql?(o)
|
|
260
|
+
self == o
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Calculates hash code according to all attributes.
|
|
264
|
+
# @return [Fixnum] Hash code
|
|
265
|
+
def hash
|
|
266
|
+
[links, color, contents, modified, id, flags, name, rect, page_index, z_index, horizontal_alignment, vertical_alignment, quad_point, fill_color, border_color, overlay_text, repeat, text_alignment].hash
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Builds the object from hash
|
|
270
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
271
|
+
# @return [Object] Returns the model itself
|
|
272
|
+
def build_from_hash(attributes)
|
|
273
|
+
return nil unless attributes.is_a?(Hash)
|
|
274
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
275
|
+
if type =~ /\AArray<(.*)>/i
|
|
276
|
+
# check to ensure the input is an array given that the the attribute
|
|
277
|
+
# is documented as an array but the input is not
|
|
278
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
279
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
280
|
+
end
|
|
281
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
282
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
283
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
self
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Deserializes the data based on type
|
|
290
|
+
# @param string type Data type
|
|
291
|
+
# @param string value Value to be deserialized
|
|
292
|
+
# @return [Object] Deserialized data
|
|
293
|
+
def _deserialize(type, value)
|
|
294
|
+
case type.to_sym
|
|
295
|
+
when :DateTime
|
|
296
|
+
format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
|
|
297
|
+
Time.strptime(value, format).utc.to_datetime
|
|
298
|
+
when :Date
|
|
299
|
+
format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
|
|
300
|
+
Time.strptime(value, format).utc.to_datetime.to_date
|
|
301
|
+
when :String
|
|
302
|
+
value.to_s
|
|
303
|
+
when :Integer
|
|
304
|
+
value.to_i
|
|
305
|
+
when :Float
|
|
306
|
+
value.to_f
|
|
307
|
+
when :BOOLEAN
|
|
308
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
309
|
+
true
|
|
310
|
+
else
|
|
311
|
+
false
|
|
312
|
+
end
|
|
313
|
+
when :Object
|
|
314
|
+
# generic object (usually a Hash), return directly
|
|
315
|
+
value
|
|
316
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
317
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
318
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
319
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
320
|
+
k_type = Regexp.last_match[:k_type]
|
|
321
|
+
v_type = Regexp.last_match[:v_type]
|
|
322
|
+
{}.tap do |hash|
|
|
323
|
+
value.each do |k, v|
|
|
324
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
else # model
|
|
328
|
+
temp_model = AsposePdfCloud.const_get(type).new
|
|
329
|
+
temp_model.build_from_hash(value)
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Returns the string representation of the object
|
|
334
|
+
# @return [String] String presentation of the object
|
|
335
|
+
def to_s
|
|
336
|
+
to_hash.to_s
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
340
|
+
# @return [Hash] Returns the object in the form of hash
|
|
341
|
+
def to_body
|
|
342
|
+
to_hash
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Returns the object in the form of hash
|
|
346
|
+
# @return [Hash] Returns the object in the form of hash
|
|
347
|
+
def to_hash
|
|
348
|
+
hash = {}
|
|
349
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
350
|
+
value = self.send(attr)
|
|
351
|
+
next if value.nil?
|
|
352
|
+
hash[param] = _to_hash(value)
|
|
353
|
+
end
|
|
354
|
+
hash
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# Outputs non-array value in the form of hash
|
|
358
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
359
|
+
# @param [Object] value Any valid value
|
|
360
|
+
# @return [Hash] Returns the value in the form of hash
|
|
361
|
+
def _to_hash(value)
|
|
362
|
+
if value.is_a?(Array)
|
|
363
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
364
|
+
elsif value.is_a?(Hash)
|
|
365
|
+
{}.tap do |hash|
|
|
366
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
367
|
+
end
|
|
368
|
+
elsif value.respond_to? :to_hash
|
|
369
|
+
value.to_hash
|
|
370
|
+
else
|
|
371
|
+
value
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
end
|