Class PDFFormData


  • public class PDFFormData
    extends RenderElement
    It is possible to fill in the forms using Cloud Office Print. The data object inside the files array should contain an object with the key aop_pdf_form_data.
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFFormData​(java.util.HashMap<java.lang.String,​java.lang.String> formData)
      It is possible to fill in the forms using Cloud Office Print.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.HashMap<java.lang.String,​java.lang.String> getFormData()  
      com.google.gson.JsonObject getJSON()  
      java.util.Set<java.lang.String> getTemplateTags()  
      void setFormData​(java.util.HashMap<java.lang.String,​java.lang.String> formData)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFFormData

        public PDFFormData​(java.util.HashMap<java.lang.String,​java.lang.String> formData)
        It is possible to fill in the forms using Cloud Office Print. The data object inside the files array should contain an object with the key aop_pdf_form_data.
        Parameters:
        formData - Hashmap of the fieldname and value to fill in. Two options : inputfieldname : value and radio/checkbox : true/false.
    • Method Detail

      • getFormData

        public java.util.HashMap<java.lang.String,​java.lang.String> getFormData()
        Returns:
        Hashmap of the fieldname and value to fill in. Two options : inputfieldname : value and radio/checkbox : true/false.
      • setFormData

        public void setFormData​(java.util.HashMap<java.lang.String,​java.lang.String> formData)
        Parameters:
        formData - Hashmap of the fieldname and value to fill in. Two options : inputfieldname : value and radio/checkbox : true/false.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Specified by:
        getJSON in class RenderElement
        Returns:
        JSONObject with the tags for this element for the Cloud Office Print server.
      • getTemplateTags

        public java.util.Set<java.lang.String> getTemplateTags()
        Specified by:
        getTemplateTags in class RenderElement
        Returns:
        An immutable set containing all available template tags this element can replace.