(self, book)
Creates configuration file for booktype2mpdf.php script.

        Configuration file is read by the booktype2mpdf.php script. It is
        how we pass information to the PHP script which will finally
        create and format the PDF file.

        :Args:
          - book: EPUB Book object
Creates configuration file for booktype2mpdf.php script.
Creates configuration file for booktype2mpdf . php script .
def _write_configuration(self, book):
        """Creates configuration file for booktype2mpdf.php script.

        Configuration file is read by the booktype2mpdf.php script. It is
        how we pass information to the PHP script which will finally
        create and format the PDF file.

        :Args:
          - book: EPUB Book object
        """

        dc_metadata = self.get_metadata(book)

        data = {'metadata': dc_metadata, 'config': self.config}
        data.update(self.get_extra_configuration())

        f = codecs.open('{}/config.json'.format(self.sandbox_path), 'wt', 'utf8')
        f.write(unicode(json.dumps(data), 'utf8'))
        f.close()
def _write_configuration ( self , book ) : dc_metadata = self . get_metadata ( book ) data = { 'metadata' : dc_metadata , 'config' : self . config } data . update ( self . get_extra_configuration ( ) ) f = codecs . open ( '{}/config.json' . format ( self . sandbox_path ) , 'wt' , 'utf8' ) f . write ( unicode ( json . dumps ( data ) , 'utf8' ) ) f . close ( )