Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if ImageSaveAsPDFParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of ImageSaveAsPDFParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ImageSaveAsPDFParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     PageRange == input.PageRange ||
                     (PageRange != null &&
                      PageRange.Equals(input.PageRange))
                 ) &&
                 (
                     Conformance == input.Conformance ||
                     Conformance.Equals(input.Conformance)
                 ) &&
                 (
                     ColorImageCompression == input.ColorImageCompression ||
                     ColorImageCompression.Equals(input.ColorImageCompression)
                 ) &&
                 (
                     BitonalImageCompression == input.BitonalImageCompression ||
                     BitonalImageCompression.Equals(input.BitonalImageCompression)
                 ) &&
                 (
                     EnableColorDetection == input.EnableColorDetection ||
                     EnableColorDetection.Equals(input.EnableColorDetection)
                 ) &&
                 (
                     ImageQuality == input.ImageQuality ||
                     ImageQuality.Equals(input.ImageQuality)
                 ) &&
                 (
                     DownscaleResolution == input.DownscaleResolution ||
                     DownscaleResolution.Equals(input.DownscaleResolution)
                 ) &&
                 (
                     FastWebView == input.FastWebView ||
                     FastWebView.Equals(input.FastWebView)
                 ));
        }
        /// <summary>
        /// Returns true if PdfLoadDocumentParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfLoadDocumentParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfLoadDocumentParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileName == input.FileName ||
                     (FileName != null &&
                      FileName.Equals(input.FileName))
                     ) &&
                 (
                     Password == input.Password ||
                     (Password != null &&
                      Password.Equals(input.Password))
                 ) &&
                 (
                     Conformance == input.Conformance ||
                     Conformance.Equals(input.Conformance)
                 ) &&
                 (
                     ContentEncoding == input.ContentEncoding ||
                     ContentEncoding.Equals(input.ContentEncoding)
                 ) &&
                 (
                     EnableColorDetection == input.EnableColorDetection ||
                     EnableColorDetection.Equals(input.EnableColorDetection)
                 ) &&
                 (
                     GetPreview == input.GetPreview ||
                     GetPreview.Equals(input.GetPreview)
                 ) &&
                 (
                     ThumbnailWidth == input.ThumbnailWidth ||
                     ThumbnailWidth.Equals(input.ThumbnailWidth)
                 ) &&
                 (
                     ThumbnailHeight == input.ThumbnailHeight ||
                     ThumbnailHeight.Equals(input.ThumbnailHeight)
                 ) &&
                 (
                     ThumbnailBackgroundColor == input.ThumbnailBackgroundColor ||
                     (ThumbnailBackgroundColor != null &&
                      ThumbnailBackgroundColor.Equals(input.ThumbnailBackgroundColor))
                 ) &&
                 (
                     ThumbnailFitToPageSize == input.ThumbnailFitToPageSize ||
                     ThumbnailFitToPageSize.Equals(input.ThumbnailFitToPageSize)
                 ) &&
                 (
                     TxtPageWidth == input.TxtPageWidth ||
                     TxtPageWidth.Equals(input.TxtPageWidth)
                 ) &&
                 (
                     TxtPageHeight == input.TxtPageHeight ||
                     TxtPageHeight.Equals(input.TxtPageHeight)
                 ) &&
                 (
                     TxtPageMarginLeft == input.TxtPageMarginLeft ||
                     TxtPageMarginLeft.Equals(input.TxtPageMarginLeft)
                 ) &&
                 (
                     TxtPageMarginTop == input.TxtPageMarginTop ||
                     TxtPageMarginTop.Equals(input.TxtPageMarginTop)
                 ) &&
                 (
                     TxtPageMarginRight == input.TxtPageMarginRight ||
                     TxtPageMarginRight.Equals(input.TxtPageMarginRight)
                 ) &&
                 (
                     TxtPageMarginBottom == input.TxtPageMarginBottom ||
                     TxtPageMarginBottom.Equals(input.TxtPageMarginBottom)
                 ) &&
                 (
                     TxtHorizontalTextAlignment == input.TxtHorizontalTextAlignment ||
                     TxtHorizontalTextAlignment.Equals(input.TxtHorizontalTextAlignment)
                 ) &&
                 (
                     TxtFontSize == input.TxtFontSize ||
                     TxtFontSize.Equals(input.TxtFontSize)
                 ) &&
                 (
                     TxtFontFamily == input.TxtFontFamily ||
                     (TxtFontFamily != null &&
                      TxtFontFamily.Equals(input.TxtFontFamily))
                 ) &&
                 (
                     TxtFontBold == input.TxtFontBold ||
                     TxtFontBold.Equals(input.TxtFontBold)
                 ) &&
                 (
                     TxtFontItalic == input.TxtFontItalic ||
                     TxtFontItalic.Equals(input.TxtFontItalic)
                 ));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns true if PdfReduceParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfReduceParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfReduceParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     OutputVersion == input.OutputVersion ||
                     OutputVersion.Equals(input.OutputVersion)
                 ) &&
                 (
                     ImageQuality == input.ImageQuality ||
                     ImageQuality.Equals(input.ImageQuality)
                 ) &&
                 (
                     RecompressImages == input.RecompressImages ||
                     RecompressImages.Equals(input.RecompressImages)
                 ) &&
                 (
                     EnableColorDetection == input.EnableColorDetection ||
                     EnableColorDetection.Equals(input.EnableColorDetection)
                 ) &&
                 (
                     PackDocument == input.PackDocument ||
                     PackDocument.Equals(input.PackDocument)
                 ) &&
                 (
                     PackFonts == input.PackFonts ||
                     PackFonts.Equals(input.PackFonts)
                 ) &&
                 (
                     DownscaleImages == input.DownscaleImages ||
                     DownscaleImages.Equals(input.DownscaleImages)
                 ) &&
                 (
                     DownscaleResolution == input.DownscaleResolution ||
                     DownscaleResolution.Equals(input.DownscaleResolution)
                 ) &&
                 (
                     FastWebView == input.FastWebView ||
                     FastWebView.Equals(input.FastWebView)
                 ) &&
                 (
                     RemoveFormFields == input.RemoveFormFields ||
                     RemoveFormFields.Equals(input.RemoveFormFields)
                 ) &&
                 (
                     RemoveAnnotations == input.RemoveAnnotations ||
                     RemoveAnnotations.Equals(input.RemoveAnnotations)
                 ) &&
                 (
                     RemoveBookmarks == input.RemoveBookmarks ||
                     RemoveBookmarks.Equals(input.RemoveBookmarks)
                 ) &&
                 (
                     RemoveHyperlinks == input.RemoveHyperlinks ||
                     RemoveHyperlinks.Equals(input.RemoveHyperlinks)
                 ) &&
                 (
                     RemoveEmbeddedFiles == input.RemoveEmbeddedFiles ||
                     RemoveEmbeddedFiles.Equals(input.RemoveEmbeddedFiles)
                 ) &&
                 (
                     RemoveBlankPages == input.RemoveBlankPages ||
                     RemoveBlankPages.Equals(input.RemoveBlankPages)
                 ) &&
                 (
                     RemoveJavaScript == input.RemoveJavaScript ||
                     RemoveJavaScript.Equals(input.RemoveJavaScript)
                 ) &&
                 (
                     EnableJPEG2000 == input.EnableJPEG2000 ||
                     EnableJPEG2000.Equals(input.EnableJPEG2000)
                 ) &&
                 (
                     EnableJBIG2 == input.EnableJBIG2 ||
                     EnableJBIG2.Equals(input.EnableJBIG2)
                 ) &&
                 (
                     EnableCharRepair == input.EnableCharRepair ||
                     EnableCharRepair.Equals(input.EnableCharRepair)
                 ) &&
                 (
                     EnableMRC == input.EnableMRC ||
                     EnableMRC.Equals(input.EnableMRC)
                 ) &&
                 (
                     PreserveSmoothing == input.PreserveSmoothing ||
                     PreserveSmoothing.Equals(input.PreserveSmoothing)
                 ) &&
                 (
                     DownscaleResolutionMRC == input.DownscaleResolutionMRC ||
                     DownscaleResolutionMRC.Equals(input.DownscaleResolutionMRC)
                 ) &&
                 (
                     RemoveMetadata == input.RemoveMetadata ||
                     RemoveMetadata.Equals(input.RemoveMetadata)
                 ) &&
                 (
                     RemovePageThumbnails == input.RemovePageThumbnails ||
                     RemovePageThumbnails.Equals(input.RemovePageThumbnails)
                 ) &&
                 (
                     RemovePagePieceInfo == input.RemovePagePieceInfo ||
                     RemovePagePieceInfo.Equals(input.RemovePagePieceInfo)
                 ) &&
                 (
                     JBIG2PMSThreshold == input.JBIG2PMSThreshold ||
                     JBIG2PMSThreshold.Equals(input.JBIG2PMSThreshold)
                 ));
        }