docstamp/template.py
def render(self, file_path, **kwargs):
        """ Save the content of the .text file in the PDF.

        Parameters
        ----------
        file_path: str
            Path to the output file.
        """
        temp = get_tempfile(suffix='.tex')
        self.save_content(temp.name)

        try:
            self._render_function(temp.name, file_path, output_format='pdf')
        except:
            log.exception('Error exporting file {} to PDF.'.format(file_path))
            raise
def render(self, file_path, **kwargs):
        """ Save the content of the .text file in the PDF.

        Parameters
        ----------
        file_path: str
            Path to the output file.
        """
        temp = get_tempfile(suffix='.tex')
        self.save_content(temp.name)

        try:
            self._render_function(temp.name, file_path, output_format='pdf')
        except:
            log.exception('Error exporting file {} to PDF.'.format(file_path))
            raise
def render ( self , file_path , * * kwargs ) : temp = get_tempfile ( suffix = '.tex' ) self . save_content ( temp . name ) try : self . _render_function ( temp . name , file_path , output_format = 'pdf' ) except : log . exception ( 'Error exporting file {} to PDF.' . format ( file_path ) ) raise
Save the content of the .text file in the PDF.

        Parameters
        ----------
        file_path: str
            Path to the output file.
Save the content of the . text file in the PDF .