aspose_pdf_cloud 18.11.0 → 19.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,219 @@
|
|
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
|
+
|
27
|
+
class FileExist
|
28
|
+
attr_accessor :is_exist
|
29
|
+
|
30
|
+
attr_accessor :is_folder
|
31
|
+
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'is_exist' => :'IsExist',
|
37
|
+
:'is_folder' => :'IsFolder'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.swagger_types
|
43
|
+
{
|
44
|
+
:'is_exist' => :'BOOLEAN',
|
45
|
+
:'is_folder' => :'BOOLEAN'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
56
|
+
|
57
|
+
if attributes.has_key?(:'IsExist')
|
58
|
+
self.is_exist = attributes[:'IsExist']
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'IsFolder')
|
62
|
+
self.is_folder = attributes[:'IsFolder']
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properies with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
if @is_exist.nil?
|
72
|
+
invalid_properties.push("invalid value for 'is_exist', is_exist cannot be nil.")
|
73
|
+
end
|
74
|
+
|
75
|
+
if @is_folder.nil?
|
76
|
+
invalid_properties.push("invalid value for 'is_folder', is_folder cannot be nil.")
|
77
|
+
end
|
78
|
+
|
79
|
+
return invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
return false if @is_exist.nil?
|
86
|
+
return false if @is_folder.nil?
|
87
|
+
return true
|
88
|
+
end
|
89
|
+
|
90
|
+
# Checks equality by comparing each attribute.
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def ==(o)
|
93
|
+
return true if self.equal?(o)
|
94
|
+
self.class == o.class &&
|
95
|
+
is_exist == o.is_exist &&
|
96
|
+
is_folder == o.is_folder
|
97
|
+
end
|
98
|
+
|
99
|
+
# @see the `==` method
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def eql?(o)
|
102
|
+
self == o
|
103
|
+
end
|
104
|
+
|
105
|
+
# Calculates hash code according to all attributes.
|
106
|
+
# @return [Fixnum] Hash code
|
107
|
+
def hash
|
108
|
+
[is_exist, is_folder].hash
|
109
|
+
end
|
110
|
+
|
111
|
+
# Builds the object from hash
|
112
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
+
# @return [Object] Returns the model itself
|
114
|
+
def build_from_hash(attributes)
|
115
|
+
return nil unless attributes.is_a?(Hash)
|
116
|
+
self.class.swagger_types.each_pair do |key, type|
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
121
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
122
|
+
end
|
123
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
126
|
+
end
|
127
|
+
|
128
|
+
self
|
129
|
+
end
|
130
|
+
|
131
|
+
# Deserializes the data based on type
|
132
|
+
# @param string type Data type
|
133
|
+
# @param string value Value to be deserialized
|
134
|
+
# @return [Object] Deserialized data
|
135
|
+
def _deserialize(type, value)
|
136
|
+
case type.to_sym
|
137
|
+
when :DateTime
|
138
|
+
format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
|
139
|
+
Time.strptime(value, format).utc.to_datetime
|
140
|
+
when :Date
|
141
|
+
format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
|
142
|
+
Time.strptime(value, format).utc.to_datetime.to_date
|
143
|
+
when :String
|
144
|
+
value.to_s
|
145
|
+
when :Integer
|
146
|
+
value.to_i
|
147
|
+
when :Float
|
148
|
+
value.to_f
|
149
|
+
when :BOOLEAN
|
150
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
151
|
+
true
|
152
|
+
else
|
153
|
+
false
|
154
|
+
end
|
155
|
+
when :Object
|
156
|
+
# generic object (usually a Hash), return directly
|
157
|
+
value
|
158
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
159
|
+
inner_type = Regexp.last_match[:inner_type]
|
160
|
+
value.map { |v| _deserialize(inner_type, v) }
|
161
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
162
|
+
k_type = Regexp.last_match[:k_type]
|
163
|
+
v_type = Regexp.last_match[:v_type]
|
164
|
+
{}.tap do |hash|
|
165
|
+
value.each do |k, v|
|
166
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
else # model
|
170
|
+
temp_model = AsposePdfCloud.const_get(type).new
|
171
|
+
temp_model.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
next if value.nil?
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map{ |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
@@ -0,0 +1,225 @@
|
|
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
|
+
|
27
|
+
class FileExistResponse
|
28
|
+
# Response status code.
|
29
|
+
attr_accessor :code
|
30
|
+
|
31
|
+
# Response status.
|
32
|
+
attr_accessor :status
|
33
|
+
|
34
|
+
attr_accessor :file_exist
|
35
|
+
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'code' => :'Code',
|
41
|
+
:'status' => :'Status',
|
42
|
+
:'file_exist' => :'FileExist'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.swagger_types
|
48
|
+
{
|
49
|
+
:'code' => :'Integer',
|
50
|
+
:'status' => :'String',
|
51
|
+
:'file_exist' => :'FileExist'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
return unless attributes.is_a?(Hash)
|
59
|
+
|
60
|
+
# convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
62
|
+
|
63
|
+
if attributes.has_key?(:'Code')
|
64
|
+
self.code = attributes[:'Code']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'Status')
|
68
|
+
self.status = attributes[:'Status']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'FileExist')
|
72
|
+
self.file_exist = attributes[:'FileExist']
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
78
|
+
# @return Array for valid properies with the reasons
|
79
|
+
def list_invalid_properties
|
80
|
+
invalid_properties = Array.new
|
81
|
+
if @code.nil?
|
82
|
+
invalid_properties.push("invalid value for 'code', code cannot be nil.")
|
83
|
+
end
|
84
|
+
|
85
|
+
return invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
return false if @code.nil?
|
92
|
+
return true
|
93
|
+
end
|
94
|
+
|
95
|
+
# Checks equality by comparing each attribute.
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def ==(o)
|
98
|
+
return true if self.equal?(o)
|
99
|
+
self.class == o.class &&
|
100
|
+
code == o.code &&
|
101
|
+
status == o.status &&
|
102
|
+
file_exist == o.file_exist
|
103
|
+
end
|
104
|
+
|
105
|
+
# @see the `==` method
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def eql?(o)
|
108
|
+
self == o
|
109
|
+
end
|
110
|
+
|
111
|
+
# Calculates hash code according to all attributes.
|
112
|
+
# @return [Fixnum] Hash code
|
113
|
+
def hash
|
114
|
+
[code, status, file_exist].hash
|
115
|
+
end
|
116
|
+
|
117
|
+
# Builds the object from hash
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
# @return [Object] Returns the model itself
|
120
|
+
def build_from_hash(attributes)
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
122
|
+
self.class.swagger_types.each_pair do |key, type|
|
123
|
+
if type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :DateTime
|
144
|
+
format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
|
145
|
+
Time.strptime(value, format).utc.to_datetime
|
146
|
+
when :Date
|
147
|
+
format = (value.include? '+') ? '/Date(%Q%z)/' : '/Date(%Q)/'
|
148
|
+
Time.strptime(value, format).utc.to_datetime.to_date
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :BOOLEAN
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else # model
|
176
|
+
temp_model = AsposePdfCloud.const_get(type).new
|
177
|
+
temp_model.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
next if value.nil?
|
200
|
+
hash[param] = _to_hash(value)
|
201
|
+
end
|
202
|
+
hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Outputs non-array value in the form of hash
|
206
|
+
# For object, use to_hash. Otherwise, just return the value
|
207
|
+
# @param [Object] value Any valid value
|
208
|
+
# @return [Hash] Returns the value in the form of hash
|
209
|
+
def _to_hash(value)
|
210
|
+
if value.is_a?(Array)
|
211
|
+
value.compact.map{ |v| _to_hash(v) }
|
212
|
+
elsif value.is_a?(Hash)
|
213
|
+
{}.tap do |hash|
|
214
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
215
|
+
end
|
216
|
+
elsif value.respond_to? :to_hash
|
217
|
+
value.to_hash
|
218
|
+
else
|
219
|
+
value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
224
|
+
|
225
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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
|
+
class FileIcon
|
27
|
+
|
28
|
+
PUSH_PIN = "PushPin".freeze
|
29
|
+
GRAPH = "Graph".freeze
|
30
|
+
PAPERCLIP = "Paperclip".freeze
|
31
|
+
TAG = "Tag".freeze
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
# resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME)
|
38
|
+
# consantValues = FileIcon.constants.select{|c| c.to_s == value}
|
39
|
+
constantValues = FileIcon.constants.select{ |const_name| FileIcon.const_get(const_name) == value}
|
40
|
+
|
41
|
+
raise "Invalid ENUM value #{value} for class #FileIcon" if constantValues.empty?
|
42
|
+
value
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|