diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-19 14:36:17 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-19 14:36:17 +0100 |
commit | 3329f1bf3d855849ee2b3f8333be542d53b62fb8 (patch) | |
tree | 5515752870fb8f6f03e64e0519b04b73897166ea /inc/poche | |
parent | 90c67dbd12b2045245265bde7cb6fe1e2f6aa9d9 (diff) | |
download | wallabag-3329f1bf3d855849ee2b3f8333be542d53b62fb8.tar.gz wallabag-3329f1bf3d855849ee2b3f8333be542d53b62fb8.tar.zst wallabag-3329f1bf3d855849ee2b3f8333be542d53b62fb8.zip |
tcpdf via composer
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/WallabagEBooks.class.php | 7 | ||||
-rwxr-xr-x | inc/poche/global.inc.php | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/inc/poche/WallabagEBooks.class.php b/inc/poche/WallabagEBooks.class.php index bc40990b..a9c62af9 100644 --- a/inc/poche/WallabagEBooks.class.php +++ b/inc/poche/WallabagEBooks.class.php | |||
@@ -213,9 +213,8 @@ class WallabagPDF extends WallabagEbooks | |||
213 | $pdf->SetCreator(PDF_CREATOR); | 213 | $pdf->SetCreator(PDF_CREATOR); |
214 | $pdf->SetAuthor(''); | 214 | $pdf->SetAuthor(''); |
215 | $pdf->SetTitle($this->bookTitle); | 215 | $pdf->SetTitle($this->bookTitle); |
216 | $pdf->SetSubject('TCPDF Tutorial'); | 216 | $pdf->SetSubject($this->bookTitle); |
217 | $pdf->SetKeywords('TCPDF, PDF, example, test, guide'); | 217 | |
218 | |||
219 | Tools::logm('Adding introduction...'); | 218 | Tools::logm('Adding introduction...'); |
220 | $pdf->AddPage(); | 219 | $pdf->AddPage(); |
221 | $intro = '<h1>' . $this->bookTitle . '</h1><div style="text-align:center;" > | 220 | $intro = '<h1>' . $this->bookTitle . '</h1><div style="text-align:center;" > |
@@ -240,7 +239,7 @@ class WallabagPDF extends WallabagEbooks | |||
240 | $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); | 239 | $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); |
241 | 240 | ||
242 | 241 | ||
243 | $pdf->Output($this->bookFileName . '.pdf', 'FD'); | 242 | $pdf->Output(CACHE . '/' . $this->bookFileName . '.pdf', 'FD'); |
244 | 243 | ||
245 | } | 244 | } |
246 | } | 245 | } |
diff --git a/inc/poche/global.inc.php b/inc/poche/global.inc.php index 8b62d5de..95bf8ef1 100755 --- a/inc/poche/global.inc.php +++ b/inc/poche/global.inc.php | |||
@@ -30,9 +30,6 @@ require_once INCLUDES . '/poche/FlattrItem.class.php'; | |||
30 | require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php'; | 30 | require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php'; |
31 | require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php'; | 31 | require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php'; |
32 | 32 | ||
33 | # pdf library | ||
34 | require_once INCLUDES . '/3rdparty/libraries/tcpdf/tcpdf.php'; | ||
35 | |||
36 | # system configuration; database credentials et caetera | 33 | # system configuration; database credentials et caetera |
37 | require_once INCLUDES . '/poche/config.inc.php'; | 34 | require_once INCLUDES . '/poche/config.inc.php'; |
38 | require_once INCLUDES . '/poche/config.inc.default.php'; | 35 | require_once INCLUDES . '/poche/config.inc.default.php'; |