forked from wallabag/wallabag
Add export notice at the end of the epub
The text "Produced by wallabag with PHPePub" is the first page of any epub. On ebooks reader, it is common (e.g. kobo) to use the first page as the cover of unread books, which makes it more difficult to differentiate the books. Move the Notices chapter at the end of the book.
This commit is contained in:
@ -148,8 +148,6 @@ class EntriesExport
|
|||||||
$book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png');
|
$book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png');
|
||||||
}
|
}
|
||||||
|
|
||||||
$book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd);
|
|
||||||
|
|
||||||
$book->buildTOC();
|
$book->buildTOC();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -170,6 +168,8 @@ class EntriesExport
|
|||||||
$book->addChapter($entry->getTitle(), htmlspecialchars($filename).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
|
$book->addChapter($entry->getTitle(), htmlspecialchars($filename).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd);
|
||||||
|
|
||||||
return Response::create(
|
return Response::create(
|
||||||
$book->getBook(),
|
$book->getBook(),
|
||||||
200,
|
200,
|
||||||
|
|||||||
Reference in New Issue
Block a user