Sha256: c63e5cbe4cafee594f326b6f98d884fa1e404aa0193552ea8e3856d9ceba88e5

Contents?: true

Size: 1.69 KB

Versions: 4

Compression:

Stored size: 1.69 KB

Contents

%h3{:style => 'text-align:center;'}
  %a{:href => '/'} GroupDocs Ruby SDK Samples
  \- Sample6
.samplecontent{:style => 'padding:10px;'}
  %i This sample will show how to add provided signature to provided document using Ruby SDK. Signed file will be uploaded to GroupDocs account and its GUID will be returned and embed into webpage with GroupDocs Ebedded Viewer.
  %br/
  %br/
  %span.documentation
    %a{:href => '/docs/sample6.html'} Builtin documentation for this sample
  %br/
  %br/
  %p
    You entered:
  %p
    UserId = #{(defined? userId) ? userId : ''}
  %p
    PrivateKey = #{(defined? privateKey) ? privateKey : ''}
  %p
    %font{:color => 'red'} #{(defined? err) ? err : ''}
  #files_form
    %form{:action => '/sample6', :enctype => 'multipart/form-data', :method => 'post'}
      %br/
      %label{:for => 'client_id'} GroupDocs ClientID
      %br/
      %input{:type=>'text', :id=>'client_id', :name => 'client_id'}
      %br/
      %label{:for => 'private_key'} GroupDocs PrivateKey
      %br/
      %input{:type=>'text', :id=>'private_key', :name => 'private_key'}
      %br/
      %label{:for => 'file_document'} Document to sign
      %br/
      %input#fi_document{:type => 'file', :name => 'document'}/
      %br/
      %label{:for => 'file_signature'} Signature
      %br/
      %input#fi_signature{:type => 'file', :name => 'signature'}/
      %br/
      %br/
      %input{:type => 'submit', :value => 'Upload and sign the document'}/
      %br/
      %br/
  %div{:style => 'padding:20px; border:1px solid black;'}
    %p
      Results:
      %span#results_status{:style => 'color:red;display:none;'} (Please wait for ajax response)
    #{(defined? iframe) ? iframe : ''}
    
= partial :_others_samples

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
groupdocs-1.5.7 examples/api-samples/views/sample6.haml
groupdocs-1.5.6 examples/api-samples/views/sample6.haml
groupdocs-1.5.5 examples/api-samples/views/sample6.haml
groupdocs-1.5.4 examples/api-samples/views/sample6.haml