예제 #1
0
 public function testGetGeneratorPdfLetter()
 {
     $generator = GeneratorSelector::select('pdf-letter');
     $this->assertInstanceOf('ConvertGenerator', $generator);
     $this->assertEquals('application/pdf', $generator->getMimeType());
 }
예제 #2
0
 static function forLanguage($language, $format, $options)
 {
     return new BookCreator(new BookProvider(new Api($language), $options), GeneratorSelector::select($format));
 }