/// <summary> /// Set the Pages per Sheet /// </summary> /// <param name="pages">Set the pages per sheet for the document using the PagesPerSheet enum </param> /// <param name="addPageBorders">If set to <c>True</c> Page borders are added ; otherwise page borders are not added </param> public void SetPagesPerSheet(PagesPerSheet pages, bool addPageBorders) { OpenOptionsPanel(); if (!_controlPanel.ScrollPressWait("#hpid-option-pages-per-sheet", "#hpid-option-pages-per-sheet-screen", TimeSpan.FromSeconds(5))) { throw new DeviceWorkflowException("Unable to select pages per sheet option."); } _controlPanel.ScrollPress($"#hpid-option-pages-per-sheet-selection-{pages.GetDescription()}"); if (pages != PagesPerSheet.OneUp) { _controlPanel.WaitForState("#hpid-option-pages-per-sheet-add-borders", OmniElementState.Constrained, false, TimeSpan.FromSeconds(2)); SetCheckBoxState("#hpid-option-pages-per-sheet-add-borders", addPageBorders); } Pacekeeper.Sync(); _controlPanel.PressWait(".hp-button-done", ".hp-option-list"); }
/// <summary> /// Creates new Scan Options /// </summary> public ScanOptions() { ResolutionType = ResolutionType.None; FileType = FileType.DeviceDefault; Color = ColorType.None; OriginalSize = OriginalSize.None; OriginalSides = OriginalSides.None; ContentOrientationOption = ContentOrientation.None; OptimizeTextorPic = OptimizeTextPic.None; Cropping = Cropping.None; BlankPageSupressoption = BlankPageSupress.None; notificationCondition = NotifyCondition.NeverNotify; CreateMultiFile = false; EraseEdgesValue = new EraseEdges { AllEdges = "0.00", BackBottom = "0.00", BackLeft = "0.00", BackRight = "0.00", BackTop = "0.00", FrontBottom = "0.00", FrontLeft = "0.00", FrontRight = "0.00", FrontTop = "0.00" }; UseInches = true; ImageAdjustSharpness = 2; ImageAdjustDarkness = 4; ImageAdjustContrast = 4; ImageAdjustbackgroundCleanup = 2; SignOrEncrypt = -1; ScanModes = ScanMode.Standard; PagesPerSheetElement = new PagesPerSheet(); PagesPerSheetAddBorder = false; ScanModes = ScanMode.Standard; BookLetFormat = false; BorderOnEachPage = false; ReduceEnlargeOptions = true; OriginalOneSided = true; OutputOneSided = true; Collate = true; EdgeToEdge = false; LockTimeouts = new LockTimeoutData(TimeSpan.FromMinutes(2), TimeSpan.FromMinutes(5)); PageCount = 1; UseAdf = false; AutomaticTone = false; SetSides = false; SetPagesPerSheet = false; }
/// <summary> /// Creates new Copy Preferences Options /// </summary> /// public CopyOptions() { Collate = true; EdgeToEdge = false; Color = "Automatically detect"; Copies = 1; OptimizeTextPicOptions = OptimizeTextPic.Photo; ReduceEnlargeOptions = true; OriginalOneSided = true; OutputOneSided = true; StampContents = new List <StampContents>(); ScanModes = ScanMode.Standard; BookLetFormat = false; BorderOnEachPage = false; WatermarkText = string.Empty; EraseEdgesValue = new EraseEdges(); PagesPerSheetElement = new PagesPerSheet(); PagesPerSheetAddBorder = false; ImageAdjustSharpness = 0; ImageAdjustDarkness = 0; ImageAdjustContrast = 0; ImageAdjustbackgroundCleanup = 0; EraseEdgesValue.FrontTop = "0.00"; EraseEdgesValue.FrontLeft = "0.00"; EraseEdgesValue.FrontBottom = "0.00"; EraseEdgesValue.FrontRight = "0.00"; EraseEdgesValue.BackTop = "0.00"; EraseEdgesValue.BackBottom = "0.00"; EraseEdgesValue.BackLeft = "0.00"; EraseEdgesValue.BackRight = "0.00"; EraseEdgesValue.AllEdges = "0.00"; UseInches = true; SetImageAdjustment = false; setStamps = false; SetEraseEdges = false; SetPagesPerSheet = false; SetSides = false; OriginalSizeType = OriginalSize.Letter; }
/// <summary> /// Converts the document NUp setting to human-readable string. /// </summary> /// <returns>A string that represents this document NUp setting.</returns> public override string ToString() { return(PagesPerSheet.ToString(CultureInfo.CurrentCulture) + ", " + PresentationDirection.ToString()); }
/// <summary> /// Set the Pages per Sheet /// </summary> /// <param name="pages">Set the pages per sheet for the document using the PagesPerSheet enum </param> /// <param name="addPageBorders">If set to <c>True</c> Page borders are added ; otherwise page borders are not added </param> public virtual void SetPagesPerSheet(PagesPerSheet pages, bool addPageBorders) { throw new NotImplementedException("Setpagespersheet feature is not implemented on Jediwindjammer devices"); }
/// <summary> /// Set the Pages per Sheet /// </summary> /// <param name="pages">Set the pages per sheet for the document using the PagesPerSheet enum </param> /// <param name="addPageBorders">If set to <c>true</c> Page borders are added ; otherwise page borders are not added </param> public void SetPagesPerSheet(PagesPerSheet pages, bool addPageBorders) { throw new NotImplementedException("Set Pages per sheet job not implemented"); }