{{tag>Programmers_Reference Methods DataPresentationTemplate_Class DataPresentationTemplate_Class_Methods getLoadedTemplate}} ====getLoadedTemplate ()==== public BinaryResource getLoadedTemplate () This method returns the data for the document template as a ''BinaryResource''. ''BinaryResource'' is a structure that contains the document file name and the binary data of the document as an array of bytes. This method should be used by [[pr_methods:fillwithdata|fillWithData]] method to retrieve the document template so that it can find tags and replace them with values. ===Parameters=== none ===Returns=== the document template as a ''BinaryResource'' structure.