Exemplo n.º 1
0
        public void Populate(IFunctionBuilder functionBuilder, IFunctionData functionData)
        {
            InputAuthenticationType = functionData.TryGetPropertyValue(PropertyNames.InputAuthenticationType, AuthenticationType.None);
            InputCertificateSource  = functionData.TryGetPropertyValue(PropertyNames.InputCertificateSource, CertificateSource.File);
            InputCertificate        = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.InputCertificate, null);

            InputFilePathParameterName                = functionBuilder.GetParamName(PropertyNames.InputFilePath);
            InputPasswordParameterName                = functionBuilder.GetParamName(PropertyNames.InputPassword);
            InputCertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePath);
            InputCertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePassword);

            FillFormFormDataParameterName = functionBuilder.GetParamName(PropertyNames.FillFormFormData);

            OutputFilePathParameterName = functionBuilder.GetParamName(PropertyNames.OutputFilePath);
            ContextParameterName        = functionBuilder.ContextParamName;
        }
Exemplo n.º 2
0
        public void Populate(IFunctionBuilder functionBuilder, IFunctionData functionData)
        {
            InputAuthenticationType = functionData.TryGetPropertyValue(Common.PropertyNames.InputAuthenticationType, AuthenticationType.None);
            InputCertificateSource  = functionData.TryGetPropertyValue(Common.PropertyNames.InputCertificateSource, CertificateSource.File);
            InputCertificate        = functionData.TryGetPropertyValue <StoredCertificate>(Common.PropertyNames.InputCertificate, null);
            SignCertificateSource   = functionData.TryGetPropertyValue(PropertyNames.CertificateSource, CertificateSource.File);
            SignCertificate         = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.Certificate, null);
            SignPlacement           = functionData.TryGetPropertyValue(PropertyNames.Placement, SignaturePosition.Hidden);
            SignLockAfterSigning    = functionData.TryGetPropertyValue(PropertyNames.LockAfterSigning, false);

            InputFilePathParameterName                = functionBuilder.GetParamName(Common.PropertyNames.InputFilePath);
            InputPasswordParameterName                = functionBuilder.GetParamName(Common.PropertyNames.InputPassword);
            InputCertificateFilePathParameterName     = functionBuilder.GetParamName(Common.PropertyNames.InputCertificateFilePath);
            InputCertificateFilePasswordParameterName = functionBuilder.GetParamName(Common.PropertyNames.InputCertificateFilePassword);

            SignSignedAtParameterName                = functionBuilder.GetParamName(PropertyNames.SignedAt);
            SignReasonParameterName                  = functionBuilder.GetParamName(PropertyNames.Reason);
            SignCertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.CertificateFilePath);
            SignCertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.CertificateFilePassword);
            SignFieldNameParameterName               = functionBuilder.GetParamName(PropertyNames.FieldName);
            SignBackgroundImageParameterName         = functionBuilder.GetParamName(PropertyNames.BackgroundImage);
            SignPositionXParameterName               = functionBuilder.GetParamName(PropertyNames.PositionX);
            SignPositionYParameterName               = functionBuilder.GetParamName(PropertyNames.PositionY);
            SignWidthParameterName  = functionBuilder.GetParamName(PropertyNames.Width);
            SignHeightParameterName = functionBuilder.GetParamName(PropertyNames.Height);
            SignPageParameterName   = functionBuilder.GetParamName(PropertyNames.Page);

            OutputFilePathParameterName = functionBuilder.GetParamName(Common.PropertyNames.OutputFilePath);
            ContextParameterName        = functionBuilder.ContextParamName;
        }
Exemplo n.º 3
0
        public void Populate(IFunctionBuilder functionBuilder, IFunctionData functionData)
        {
            InputAuthenticationType = functionData.TryGetPropertyValue(PropertyNames.InputAuthenticationType, AuthenticationType.None);
            InputCertificateSource  = functionData.TryGetPropertyValue(PropertyNames.InputCertificateSource, CertificateSource.File);
            InputCertificate        = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.InputCertificate, null);
            SplitLoopResults        = functionData.TryGetPropertyValue(PropertyNames.SplitLoopResults, false);

            InputFilePathParameterName                = functionBuilder.GetParamName(PropertyNames.InputFilePath);
            InputPasswordParameterName                = functionBuilder.GetParamName(PropertyNames.InputPassword);
            InputCertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePath);
            InputCertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePassword);

            OutputFilePathParameterName = functionBuilder.GetParamName(PropertyNames.OutputFilePath);
            ContextParameterName        = functionBuilder.ContextParamName;

            ExecutionPathOutputParameterName   = functionBuilder.ExecutionPathOutParamName;
            ExecutionPathPageFilesPropertyName = functionBuilder.GetParamName(ExecutionPathNames.PageFiles);

            OutputTypeName = functionBuilder.GetTypeName(functionData.Output);
            OutputNumberOfPagesPropertyName = functionBuilder.GetParamName(OutputNames.NumberOfPages);
            OutputPageFilesPropertyName     = functionBuilder.GetParamName(OutputNames.PageFiles);
        }
        public void Populate(IFunctionBuilder functionBuilder, IFunctionData functionData)
        {
            AuthenticationType = functionData.TryGetPropertyValue(PropertyNames.AuthenticationType, AuthenticationType.None);
            CertificateSource  = functionData.TryGetPropertyValue(PropertyNames.CertificateSource, CertificateSource.File);
            Certificate        = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.Certificate, null);
            ReadText           = functionData.TryGetPropertyValue(PropertyNames.ReadText, false);
            TextSplit          = functionData.TryGetPropertyValue(PropertyNames.SplitText, TextSplit.Never);
            ReadFormData       = functionData.TryGetPropertyValue(PropertyNames.ReadFormData, false);
            FormExtraction     = functionData.TryGetPropertyValue(PropertyNames.ReturnFormDataAs, FormExtraction.CustomType);
            ReadSignature      = functionData.TryGetPropertyValue(PropertyNames.ReadSignature, false);
            HasOutput          = (ReadText || ReadFormData || ReadSignature);

            PdfFilePathParameterName             = functionBuilder.GetParamName(PropertyNames.PdfFilePath);
            PdfPasswordParameterName             = functionBuilder.GetParamName(PropertyNames.PdfPassword);
            CertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.CertificateFilePath);
            CertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.CertificateFilePassword);
            if (HasOutput)
            {
                OutputTypeName = functionBuilder.GetTypeName(functionData.Output);
            }
            OutputTextPropertyName            = functionBuilder.GetParamName(OutputNames.Text);
            OutputFormDataPropertyName        = functionBuilder.GetParamName(OutputNames.FormData);
            OutputFormDataTypeName            = functionBuilder.GetTypeName(functionData?.Output?.GetProperty(OutputNames.FormData)?.TypeReference ?? TypeReference.Create(typeof(object)));
            OutputFormDataListPropertyName    = functionBuilder.GetParamName(OutputNames.FormDataList);
            OutputSignaturesPropertyName      = functionBuilder.GetParamName(OutputNames.Signatures);
            OutputSignaturesTypeName          = functionBuilder.GetTypeName(functionData?.Output?.GetProperty(OutputNames.Signatures)?.TypeReference ?? TypeReference.Create(typeof(object)));
            OutputIsSignedPropertyName        = functionBuilder.GetParamName(OutputNames.IsSigned);
            OutputLatestSignaturePropertyName = functionBuilder.GetParamName(OutputNames.LatestSignature);
            OutputLatestSignatureTypeName     = functionBuilder.GetTypeName(functionData?.Output?.GetProperty(OutputNames.Signatures)?.TypeReference?.GetProperty(OutputNames.LatestSignature)?.TypeReference ?? TypeReference.Create(typeof(object)));
            OutputAllSignaturesPropertyName   = functionBuilder.GetParamName(OutputNames.AllSignatures);
            OutputSignedByName            = functionBuilder.GetParamName(OutputNames.SignedBy);
            OutputSignedAtName            = functionBuilder.GetParamName(OutputNames.SignedAt);
            OutputReasonName              = functionBuilder.GetParamName(OutputNames.Reason);
            OutputSignedOnName            = functionBuilder.GetParamName(OutputNames.SignedOn);
            OutputUnmodifiedName          = functionBuilder.GetParamName(OutputNames.Unmodified);
            OutputSignedRevisionName      = functionBuilder.GetParamName(OutputNames.SignedRevision);
            OutputIsLatestRevisionName    = functionBuilder.GetParamName(OutputNames.IsLatestRevision);
            OutputVerifiedName            = functionBuilder.GetParamName(OutputNames.Verified);
            OutputVerificationMessageName = functionBuilder.GetParamName(OutputNames.VerificationMessage);

            ContextParameterName = functionBuilder.ContextParamName;
        }
        public void Populate(IFunctionBuilder functionBuilder, IFunctionData functionData)
        {
            InputAuthenticationType     = functionData.TryGetPropertyValue(PropertyNames.InputAuthenticationType, AuthenticationType.None);
            InputCertificateSource      = functionData.TryGetPropertyValue(PropertyNames.InputCertificateSource, CertificateSource.File);
            InputCertificate            = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.InputCertificate, null);
            WatermarkAuthenticationType = functionData.TryGetPropertyValue(PropertyNames.WatermarkAuthenticationType, AuthenticationType.None);
            WatermarkCertificateSource  = functionData.TryGetPropertyValue(PropertyNames.WatermarkCertificateSource, CertificateSource.File);
            WatermarkPosition           = functionData.TryGetPropertyValue(PropertyNames.WatermarkPosition, WatermarkPosition.Above);
            WatermarkCertificate        = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.WatermarkCertificate, null);

            InputFilePathParameterName                = functionBuilder.GetParamName(PropertyNames.InputFilePath);
            InputPasswordParameterName                = functionBuilder.GetParamName(PropertyNames.InputPassword);
            InputCertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePath);
            InputCertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePassword);

            WatermarkFilePathParameterName                = functionBuilder.GetParamName(PropertyNames.WatermarkFilePath);
            WatermarkPasswordParameterName                = functionBuilder.GetParamName(PropertyNames.WatermarkPassword);
            WatermarkCertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.WatermarkCertificateFilePath);
            WatermarkCertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.WatermarkCertificateFilePassword);
            WatermarkPagesParameterName = functionBuilder.GetParamName(PropertyNames.WatermarkPages);

            OutputFilePathParameterName = functionBuilder.GetParamName(PropertyNames.OutputFilePath);
            ContextParameterName        = functionBuilder.ContextParamName;
        }
Exemplo n.º 6
0
        public void Populate(IFunctionBuilder functionBuilder, IFunctionData functionData)
        {
            InputAuthenticationType        = functionData.TryGetPropertyValue(PropertyNames.InputAuthenticationType, AuthenticationType.None);
            InputCertificateSource         = functionData.TryGetPropertyValue(PropertyNames.InputCertificateSource, CertificateSource.File);
            InputCertificate               = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.InputCertificate, null);
            ProtectProtection              = functionData.TryGetPropertyValue(PropertyNames.ProtectProtection, AuthenticationType.None);
            ProtectCertificateSource       = functionData.TryGetPropertyValue(PropertyNames.ProtectCertificateSource, CertificateSource.File);
            ProtectCertificate             = functionData.TryGetPropertyValue <StoredCertificate>(PropertyNames.ProtectCertificate, null);
            ProtectAddDocumentRestrictions = functionData.TryGetPropertyValue(PropertyNames.ProtectAddDocumentRestrictions, false);
            ProtectAllowPrinting           = functionData.TryGetPropertyValue(PropertyNames.ProtectAllowPrinting, Printing.None);
            ProtectAllowChanges            = functionData.TryGetPropertyValue(PropertyNames.ProtectAllowChanges, Changes.None);
            ProtectAllowCopying            = functionData.TryGetPropertyValue(PropertyNames.ProtectAllowCopying, false);
            ProtectAllowScreenReaders      = functionData.TryGetPropertyValue(PropertyNames.ProtectAllowScreenReaders, false);
            ProtectEncryption              = functionData.TryGetPropertyValue(PropertyNames.ProtectEncryption, Encryption.AES128);
            ProtectDontEncryptMetadata     = functionData.TryGetPropertyValue(PropertyNames.ProtectDontEncryptMetadata, false);

            InputFilePathParameterName                = functionBuilder.GetParamName(PropertyNames.InputFilePath);
            InputPasswordParameterName                = functionBuilder.GetParamName(PropertyNames.InputPassword);
            InputCertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePath);
            InputCertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.InputCertificateFilePassword);

            ProtectDocumentOpenPasswordParameterName    = functionBuilder.GetParamName(PropertyNames.ProtectDocumentOpenPassword);
            ProtectPermissionsPasswordParameterName     = functionBuilder.GetParamName(PropertyNames.ProtectPermissionsPassword);
            ProtectCertificateFilePathParameterName     = functionBuilder.GetParamName(PropertyNames.ProtectCertificateFilePath);
            ProtectCertificateFilePasswordParameterName = functionBuilder.GetParamName(PropertyNames.ProtectCertificateFilePassword);

            OutputFilePathParameterName = functionBuilder.GetParamName(PropertyNames.OutputFilePath);
            ContextParameterName        = functionBuilder.ContextParamName;
        }