Exemplo n.º 1
0
        public byte[] processDocumentURL([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] toolboxOptions options, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "anyURI")] string fileURL)
        {
            object[] results = this.Invoke("processDocumentURL", new object[] {
                options,
                fileURL
            });

            return((byte[])(results[0]));
        }
Exemplo n.º 2
0
        public byte[] processDocument([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] toolboxOptions options, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, DataType = "base64Binary")] byte[] fileContent)
        {
            object[] results = this.Invoke("processDocument", new object[] {
                options,
                fileContent
            });

            return((byte[])(results[0]));
        }
Exemplo n.º 3
0
 /// <remarks/>
 public void processDocumentAsync(toolboxOptions options, byte[] fileContent, object userState)
 {
     if ((this.processDocumentOperationCompleted == null))
     {
         this.processDocumentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnprocessDocumentOperationCompleted);
     }
     this.InvokeAsync("processDocument", new object[] {
         options,
         fileContent
     }, this.processDocumentOperationCompleted, userState);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void processDocumentURLAsync(toolboxOptions options, string fileURL, object userState)
 {
     if ((this.processDocumentURLOperationCompleted == null))
     {
         this.processDocumentURLOperationCompleted = new System.Threading.SendOrPostCallback(this.OnprocessDocumentURLOperationCompleted);
     }
     this.InvokeAsync("processDocumentURL", new object[] {
         options,
         fileURL
     }, this.processDocumentURLOperationCompleted, userState);
 }
Exemplo n.º 5
0
        private void mergeFiles(string file1, string file2)
        {
            this.t = new ToolboxService();
            this.o = new toolboxOptions();
            string p = file1;

            this.base64Encoder     = new Base64Encoder(this.ReadByteArray(file2));
            this.o.serviceOptions  = "pdf.pdfOperation=7";
            this.o.toolboxOptions1 = $"pdf.merge.pdfFile={new string(this.base64Encoder.GetEncoded())}";
            byte[] fileContent = this.ReadByteArray(p);
            byte[] buffer2     = this.t.processDocument(this.o, fileContent);
            this.WriteByteArray(buffer2, p);
        }
Exemplo n.º 6
0
 /// <remarks/>
 public void processDocumentAsync(toolboxOptions options, byte[] fileContent)
 {
     this.processDocumentAsync(options, fileContent, null);
 }
Exemplo n.º 7
0
 /// <remarks/>
 public void processDocumentURLAsync(toolboxOptions options, string fileURL)
 {
     this.processDocumentURLAsync(options, fileURL, null);
 }