コード例 #1
0
		private static string CallCleanThread(PDFCleanActionPropertySet cleanProperties, string input, ref Dictionary<string, string> streamProperties, PDFCleanPropertiesDisplayTranslator strings)
		{
            var password = String.Empty;    
            if (streamProperties.ContainsKey("OpenPassword"))
            {
	            password = streamProperties["OpenPassword"];
	        }
		    
            RunCleanThread(new CleanData()
                { 
                    CleanProperties = cleanProperties, 
                    File = input, 
                    OpenPassword = password 
                });

			return input;
		}
コード例 #2
0
		private void AddInvisibleProperty(string key, PDFCleanPropertiesDisplayTranslator displayer, bool value, bool readOnly)
		{
			AddProperty(key, displayer, typeof(bool), PropertyDisplayType.Checkbox, false, false, value, readOnly);
		}
コード例 #3
0
		private void AddProperty(string key, PDFCleanPropertiesDisplayTranslator displayer, Type dataType, PropertyDisplayType displayType, bool visible, bool allowOverride, object value, bool readOnly)
		{
			string name = (displayer == null ? key : displayer.GetDisplayType(key));
			ActionProperty property = new ActionProperty(name, dataType, displayType, visible, allowOverride, value, readOnly);
			Add(key, property);
		}
コード例 #4
0
		private void AddProperty(string key, PDFCleanPropertiesDisplayTranslator displayer, string value, bool readOnly)
		{
			AddProperty(key, displayer, typeof(string), PropertyDisplayType.TextBox, true, true, value, readOnly);
		}