add contents
This commit is contained in:
95
lib/plugins/dw2pdf/DokuImageProcessorDecorator.php
Normal file
95
lib/plugins/dw2pdf/DokuImageProcessorDecorator.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
namespace dokuwiki\plugin\dw2pdf;
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
class DokuImageProcessorDecorator extends \Mpdf\Image\ImageProcessor {
|
||||
|
||||
/**
|
||||
* Override the mpdf _getImage function
|
||||
*
|
||||
* This function takes care of gathering the image data from HTTP or
|
||||
* local files before passing the data back to mpdf's original function
|
||||
* making sure that only cached file paths are passed to mpdf. It also
|
||||
* takes care of checking image ACls.
|
||||
*/
|
||||
public function getImage (&$file, $firsttime = true, $allowvector = true, $orig_srcpath = false, $interpolation = false) {
|
||||
list($file, $orig_srcpath) = self::adjustGetImageLinks($file, $orig_srcpath);
|
||||
|
||||
return parent::getImage($file, $firsttime, $allowvector, $orig_srcpath, $interpolation);
|
||||
}
|
||||
|
||||
|
||||
public static function adjustGetImageLinks($file, $orig_srcpath) {
|
||||
global $conf;
|
||||
|
||||
// build regex to parse URL back to media info
|
||||
$re = preg_quote(ml('xxx123yyy', '', true, '&', true), '/');
|
||||
$re = str_replace('xxx123yyy', '([^&\?]*)', $re);
|
||||
|
||||
// extract the real media from a fetch.php uri and determine mime
|
||||
if(preg_match("/^$re/", $file, $m) ||
|
||||
preg_match('/[&?]media=([^&?]*)/', $file, $m)
|
||||
) {
|
||||
$media = rawurldecode($m[1]);
|
||||
list($ext, $mime) = mimetype($media);
|
||||
} else {
|
||||
list($ext, $mime) = mimetype($file);
|
||||
}
|
||||
|
||||
// local files
|
||||
$local = '';
|
||||
if(substr($file, 0, 9) == 'dw2pdf://') {
|
||||
// support local files passed from plugins
|
||||
$local = substr($file, 9);
|
||||
} elseif(!preg_match('/(\.php|\?)/', $file)) {
|
||||
$re = preg_quote(DOKU_URL, '/');
|
||||
// directly access local files instead of using HTTP, skip dynamic content
|
||||
$local = preg_replace("/^$re/i", DOKU_INC, $file);
|
||||
}
|
||||
|
||||
if(substr($mime, 0, 6) == 'image/') {
|
||||
if(!empty($media)) {
|
||||
// any size restrictions?
|
||||
$w = $h = 0;
|
||||
$rev = '';
|
||||
if(preg_match('/[?&]w=(\d+)/', $file, $m)) $w = $m[1];
|
||||
if(preg_match('/[?&]h=(\d+)/', $file, $m)) $h = $m[1];
|
||||
if(preg_match('/[&?]rev=(\d+)/', $file, $m)) $rev = $m[1];
|
||||
|
||||
if(media_isexternal($media)) {
|
||||
$local = media_get_from_URL($media, $ext, -1);
|
||||
if(!$local) $local = $media; // let mpdf try again
|
||||
} else {
|
||||
$media = cleanID($media);
|
||||
//check permissions (namespace only)
|
||||
if(auth_quickaclcheck(getNS($media) . ':X') < AUTH_READ) {
|
||||
$file = '';
|
||||
$local = '';
|
||||
} else {
|
||||
$local = mediaFN($media, $rev);
|
||||
}
|
||||
}
|
||||
|
||||
//handle image resizing/cropping
|
||||
if($w && file_exists($local)) {
|
||||
if($h) {
|
||||
$local = media_crop_image($local, $ext, $w, $h);
|
||||
} else {
|
||||
$local = media_resize_image($local, $ext, $w, $h);
|
||||
}
|
||||
}
|
||||
} elseif(!file_exists($local) && media_isexternal($file)) { // fixed external URLs
|
||||
$local = media_get_from_URL($file, $ext, $conf['cachetime']);
|
||||
}
|
||||
|
||||
if($local) {
|
||||
$file = $local;
|
||||
$orig_srcpath = $local;
|
||||
}
|
||||
}
|
||||
|
||||
return [$file, $orig_srcpath];
|
||||
}
|
||||
}
|
93
lib/plugins/dw2pdf/DokuPDF.class.php
Normal file
93
lib/plugins/dw2pdf/DokuPDF.class.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
/**
|
||||
* Wrapper around the mpdf library class
|
||||
*
|
||||
* This class overrides some functions to make mpdf make use of DokuWiki'
|
||||
* standard tools instead of its own.
|
||||
*
|
||||
* @author Andreas Gohr <andi@splitbrain.org>
|
||||
*/
|
||||
|
||||
use dokuwiki\plugin\dw2pdf\DokuImageProcessorDecorator;
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
/**
|
||||
* Class DokuPDF
|
||||
* Some DokuWiki specific extentions
|
||||
*/
|
||||
class DokuPDF extends \Mpdf\Mpdf
|
||||
{
|
||||
|
||||
/**
|
||||
* DokuPDF constructor.
|
||||
*
|
||||
* @param string $pagesize
|
||||
* @param string $orientation
|
||||
* @param int $fontsize
|
||||
*/
|
||||
function __construct($pagesize = 'A4', $orientation = 'portrait', $fontsize = 11)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (!defined('_MPDF_TEMP_PATH')) define('_MPDF_TEMP_PATH', $conf['tmpdir'] . '/dwpdf/' . rand(1, 1000) . '/');
|
||||
io_mkdir_p(_MPDF_TEMP_PATH);
|
||||
|
||||
$format = $pagesize;
|
||||
if ($orientation == 'landscape') {
|
||||
$format .= '-L';
|
||||
}
|
||||
|
||||
switch ($conf['lang']) {
|
||||
case 'zh':
|
||||
case 'zh-tw':
|
||||
case 'ja':
|
||||
case 'ko':
|
||||
$mode = '+aCJK';
|
||||
break;
|
||||
default:
|
||||
$mode = 'UTF-8-s';
|
||||
|
||||
}
|
||||
|
||||
// we're always UTF-8
|
||||
parent::__construct(
|
||||
array(
|
||||
'mode' => $mode,
|
||||
'format' => $format,
|
||||
'fontsize' => $fontsize,
|
||||
'ImageProcessorClass' => DokuImageProcessorDecorator::class,
|
||||
'tempDir' => _MPDF_TEMP_PATH //$conf['tmpdir'] . '/tmp/dwpdf'
|
||||
)
|
||||
);
|
||||
|
||||
$this->autoScriptToLang = true;
|
||||
$this->baseScript = 1;
|
||||
$this->autoVietnamese = true;
|
||||
$this->autoArabic = true;
|
||||
$this->autoLangToFont = true;
|
||||
|
||||
$this->ignore_invalid_utf8 = true;
|
||||
$this->tabSpaces = 4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleanup temp dir
|
||||
*/
|
||||
function __destruct()
|
||||
{
|
||||
io_rmdir(_MPDF_TEMP_PATH, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Decode all paths, since DokuWiki uses XHTML compliant URLs
|
||||
*
|
||||
* @param string $path
|
||||
* @param string $basepath
|
||||
*/
|
||||
function GetFullPath(&$path, $basepath = '')
|
||||
{
|
||||
$path = htmlspecialchars_decode($path);
|
||||
parent::GetFullPath($path, $basepath);
|
||||
}
|
||||
}
|
45
lib/plugins/dw2pdf/MenuItem.php
Normal file
45
lib/plugins/dw2pdf/MenuItem.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace dokuwiki\plugin\dw2pdf;
|
||||
|
||||
use dokuwiki\Menu\Item\AbstractItem;
|
||||
|
||||
/**
|
||||
* Class MenuItem
|
||||
*
|
||||
* Implements the PDF export button for DokuWiki's menu system
|
||||
*
|
||||
* @package dokuwiki\plugin\dw2pdf
|
||||
*/
|
||||
class MenuItem extends AbstractItem {
|
||||
|
||||
/** @var string do action for this plugin */
|
||||
protected $type = 'export_pdf';
|
||||
|
||||
/** @var string icon file */
|
||||
protected $svg = __DIR__ . '/file-pdf.svg';
|
||||
|
||||
/**
|
||||
* MenuItem constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
global $REV, $DATE_AT;
|
||||
|
||||
if($DATE_AT) {
|
||||
$this->params['at'] = $DATE_AT;
|
||||
} elseif($REV) {
|
||||
$this->params['rev'] = $REV;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get label from plugin language file
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLabel() {
|
||||
$hlp = plugin_load('action', 'dw2pdf');
|
||||
return $hlp->getLang('export_pdf_button');
|
||||
}
|
||||
}
|
40
lib/plugins/dw2pdf/README
Normal file
40
lib/plugins/dw2pdf/README
Normal file
@@ -0,0 +1,40 @@
|
||||
dw2pdf Plugin for DokuWiki
|
||||
|
||||
Export DokuWiki pages to PDF
|
||||
|
||||
All documentation for this plugin can be found at
|
||||
http://www.dokuwiki.org/plugin:dw2pdf
|
||||
|
||||
If you install this plugin manually, make sure it is installed in
|
||||
lib/plugins/dw2pdf/ - if the folder is called different it
|
||||
will not work!
|
||||
|
||||
Please refer to http://www.dokuwiki.org/plugins for additional info
|
||||
on how to install plugins in DokuWiki.
|
||||
|
||||
----
|
||||
|
||||
Notes on updating the mpdf library. The library is installed by composer
|
||||
but results are checked into the plugin repository. Similar to what we do
|
||||
in DokuWiki core. Because mpdf has some dependencies that are already
|
||||
satisfied in DokuWiki core, they do not need to be installed by the plugin
|
||||
again. To do so we declare them as replaced in the composer.json. The
|
||||
.gitignore is used to skip checking in unneeded library files like examples
|
||||
etc.
|
||||
|
||||
Updating should be done via composer update --no-dev --prefer-dist
|
||||
|
||||
----
|
||||
Copyright (C) Andreas Gohr <gohr@cosmocode.de>,
|
||||
Luigi Micco <l.micco@tiscali.it>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 of the License
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
See the COPYING file in your DokuWiki folder for details
|
104
lib/plugins/dw2pdf/_test/ActionPagenameSortTest.php
Normal file
104
lib/plugins/dw2pdf/_test/ActionPagenameSortTest.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
namespace dokuwiki\plugin\dw2pdf\test;
|
||||
|
||||
use DokuWikiTest;
|
||||
|
||||
/**
|
||||
* @group plugin_dw2pdf
|
||||
* @group plugins
|
||||
*/
|
||||
class ActionPagenameSortTest extends DokuWikiTest
|
||||
{
|
||||
|
||||
protected $pluginsEnabled = array('dw2pdf');
|
||||
|
||||
public function testDirectPagenameSort()
|
||||
{
|
||||
$action = new \action_plugin_dw2pdf();
|
||||
|
||||
$this->assertLessThan(0, $action->_pagenamesort(['id' => 'bar'], ['id' => 'bar:start']));
|
||||
$this->assertGreaterThan(0, $action->_pagenamesort(['id' => 'bar:bar'], ['id' => 'bar:start']));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @see testPageNameSort
|
||||
*/
|
||||
public function providerPageNameSort()
|
||||
{
|
||||
return [
|
||||
[
|
||||
'start pages sorted',
|
||||
[
|
||||
'bar',
|
||||
'bar:start',
|
||||
'bar:alpha',
|
||||
'bar:bar',
|
||||
],
|
||||
],
|
||||
[
|
||||
'pages and subspaces mixed',
|
||||
[
|
||||
'alpha',
|
||||
'beta:foo',
|
||||
'gamma',
|
||||
],
|
||||
],
|
||||
[
|
||||
'full test',
|
||||
[
|
||||
'start',
|
||||
'01_page',
|
||||
'10_page',
|
||||
'bar',
|
||||
'bar:start',
|
||||
'bar:1_page',
|
||||
'bar:2_page',
|
||||
'bar:10_page',
|
||||
'bar:22_page',
|
||||
'bar:aa_page',
|
||||
'bar:aa_page:detail1',
|
||||
'bar:zz_page',
|
||||
'foo',
|
||||
'foo:start',
|
||||
'foo:01_page',
|
||||
'foo:10_page',
|
||||
'foo:foo',
|
||||
'foo:zz_page',
|
||||
'ns',
|
||||
'ns:01_page',
|
||||
'ns:10_page',
|
||||
'ns:ns',
|
||||
'ns:zz_page',
|
||||
'zz_page',
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider providerPageNameSort
|
||||
* @param string $comment
|
||||
* @param array $expected
|
||||
*/
|
||||
public function testPagenameSort($comment, $expected)
|
||||
{
|
||||
// prepare the array as expected in the sort function
|
||||
$prepared = [];
|
||||
foreach ($expected as $line) {
|
||||
$prepared[] = ['id' => $line];
|
||||
}
|
||||
|
||||
// the input is random
|
||||
$input = $prepared;
|
||||
shuffle($input);
|
||||
|
||||
// run sort
|
||||
$action = new \action_plugin_dw2pdf();
|
||||
usort($input, [$action, '_pagenamesort']);
|
||||
|
||||
$this->assertSame($prepared, $input);
|
||||
}
|
||||
}
|
||||
|
67
lib/plugins/dw2pdf/_test/DokuImageProcessorTest.php
Normal file
67
lib/plugins/dw2pdf/_test/DokuImageProcessorTest.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace dokuwiki\plugin\dw2pdf\test;
|
||||
|
||||
use dokuwiki\plugin\dw2pdf\DokuImageProcessorDecorator;
|
||||
use DokuWikiTest;
|
||||
|
||||
/**
|
||||
* General tests for the imagemap plugin
|
||||
*
|
||||
* @group plugin_dw2pdf
|
||||
* @group plugins
|
||||
*/
|
||||
class DokuImageProcessorTest extends DokuWikiTest
|
||||
{
|
||||
|
||||
/**
|
||||
* @return array the Testdata
|
||||
*/
|
||||
public function provideGetImageTestdata() {
|
||||
global $conf;
|
||||
|
||||
return [
|
||||
[
|
||||
DOKU_URL . 'lib/exe/fetch.php?tok=b0b7a3&media=http%3A%2F%2Fphp.net%2Fimages%2Fphp.gif',
|
||||
DOKU_REL . 'lib/exe/fetch.php?tok=b0b7a3&media=http%3A%2F%2Fphp.net%2Fimages%2Fphp.gif',
|
||||
'http://php.net/images/php.gif',
|
||||
'http://php.net/images/php.gif',
|
||||
'external image',
|
||||
],
|
||||
[
|
||||
DOKU_URL . 'lib/images/throbber.gif',
|
||||
DOKU_REL . 'lib/images/throbber.gif',
|
||||
DOKU_INC . 'lib/images/throbber.gif',
|
||||
DOKU_INC . 'lib/images/throbber.gif',
|
||||
'fixed standard image',
|
||||
],
|
||||
[
|
||||
DOKU_URL . 'lib/exe/fetch.php?media=wiki:dokuwiki-128.png',
|
||||
DOKU_REL . 'lib/exe/fetch.php?media=wiki:dokuwiki-128.png',
|
||||
$conf['mediadir'] . '/wiki/dokuwiki-128.png',
|
||||
$conf['mediadir'] . '/wiki/dokuwiki-128.png',
|
||||
'Internal image',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider provideGetImageTestdata
|
||||
*
|
||||
* @param $input_file
|
||||
* @param $input_orig_srcpath
|
||||
* @param $expected_file
|
||||
* @param $expected_orig_srcpath
|
||||
* @param $msg
|
||||
*/
|
||||
public function testGetImage($input_file, $input_orig_srcpath, $expected_file, $expected_orig_srcpath, $msg)
|
||||
{
|
||||
|
||||
list($actual_file, $actual_orig_srcpath) = DokuImageProcessorDecorator::adjustGetImageLinks($input_file,
|
||||
$input_orig_srcpath);
|
||||
|
||||
$this->assertEquals($expected_file, $actual_file, '$file ' . $msg);
|
||||
$this->assertEquals($expected_orig_srcpath, $actual_orig_srcpath, '$orig_srcpath ' . $msg);
|
||||
}
|
||||
|
||||
}
|
86
lib/plugins/dw2pdf/_test/GeneralTest.php
Normal file
86
lib/plugins/dw2pdf/_test/GeneralTest.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
namespace dokuwiki\plugin\dw2pdf\test;
|
||||
|
||||
use DokuWikiTest;
|
||||
|
||||
/**
|
||||
* General tests for the dw2pdf plugin
|
||||
*
|
||||
* @group plugin_dw2pdf
|
||||
* @group plugins
|
||||
*/
|
||||
class GeneralTest extends DokuWikiTest
|
||||
{
|
||||
|
||||
/**
|
||||
* Simple test to make sure the plugin.info.txt is in correct format
|
||||
*/
|
||||
public function testPluginInfo(): void
|
||||
{
|
||||
$file = __DIR__ . '/../plugin.info.txt';
|
||||
$this->assertFileExists($file);
|
||||
|
||||
$info = confToHash($file);
|
||||
|
||||
$this->assertArrayHasKey('base', $info);
|
||||
$this->assertArrayHasKey('author', $info);
|
||||
$this->assertArrayHasKey('email', $info);
|
||||
$this->assertArrayHasKey('date', $info);
|
||||
$this->assertArrayHasKey('name', $info);
|
||||
$this->assertArrayHasKey('desc', $info);
|
||||
$this->assertArrayHasKey('url', $info);
|
||||
|
||||
$this->assertEquals('dw2pdf', $info['base']);
|
||||
$this->assertRegExp('/^https?:\/\//', $info['url']);
|
||||
$this->assertTrue(mail_isvalid($info['email']));
|
||||
$this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']);
|
||||
$this->assertTrue(false !== strtotime($info['date']));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test to ensure that every conf['...'] entry in conf/default.php has a corresponding meta['...'] entry in
|
||||
* conf/metadata.php.
|
||||
*/
|
||||
public function testPluginConf(): void
|
||||
{
|
||||
$conf_file = __DIR__ . '/../conf/default.php';
|
||||
$meta_file = __DIR__ . '/../conf/metadata.php';
|
||||
|
||||
if (!file_exists($conf_file) && !file_exists($meta_file)) {
|
||||
self::markTestSkipped('No config files exist -> skipping test');
|
||||
}
|
||||
|
||||
if (file_exists($conf_file)) {
|
||||
include($conf_file);
|
||||
}
|
||||
if (file_exists($meta_file)) {
|
||||
include($meta_file);
|
||||
}
|
||||
|
||||
$this->assertEquals(
|
||||
gettype($conf),
|
||||
gettype($meta),
|
||||
'Both ' . DOKU_PLUGIN . 'dw2pdf/conf/default.php and ' . DOKU_PLUGIN . 'dw2pdf/conf/metadata.php have to exist and contain the same keys.'
|
||||
);
|
||||
|
||||
if ($conf !== null && $meta !== null) {
|
||||
foreach ($conf as $key => $value) {
|
||||
$this->assertArrayHasKey(
|
||||
$key,
|
||||
$meta,
|
||||
'Key $meta[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'dw2pdf/conf/metadata.php'
|
||||
);
|
||||
}
|
||||
|
||||
foreach ($meta as $key => $value) {
|
||||
$this->assertArrayHasKey(
|
||||
$key,
|
||||
$conf,
|
||||
'Key $conf[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'dw2pdf/conf/default.php'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
43
lib/plugins/dw2pdf/_test/RendererTest.php
Normal file
43
lib/plugins/dw2pdf/_test/RendererTest.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace dokuwiki\plugin\dw2pdf\test;
|
||||
|
||||
use DokuWikiTest;
|
||||
|
||||
/**
|
||||
* Class dw2pdf_renderer_dw2pdf_test
|
||||
*
|
||||
* @group plugin_dw2pdf
|
||||
* @group plugins
|
||||
*/
|
||||
class RendererTest extends DokuWikiTest {
|
||||
|
||||
public function test() {
|
||||
$Renderer = new \renderer_plugin_dw2pdf();
|
||||
|
||||
$levels = [
|
||||
1,2,2,2,3,4,5,6,5,4,3,2,1, // index:0-12
|
||||
3,4,3,1, // 13-16
|
||||
2,3,4,2,3,4,1, // 17-23
|
||||
3,4,3,2,1, // 24-28
|
||||
3,4,2,1, // 29-32
|
||||
3,5,6,5,6,4,6,3,1, // 33-41
|
||||
3,6,4,5,6,4,3,6,2,1, // 42-51
|
||||
2,3,2,3,3 // 52-56
|
||||
];
|
||||
$expectedbookmarklevels = [
|
||||
0,1,1,1,2,3,4,5,4,3,2,1,0,
|
||||
1,2,1,0,
|
||||
1,2,3,1,2,3,0,
|
||||
1,2,1,1,0,
|
||||
1,2,1,0,
|
||||
1,2,3,2,3,2,3,2,0,
|
||||
1,2,2,3,4,2,2,3,1,0,
|
||||
1,2,1,2,2
|
||||
];
|
||||
foreach ($levels as $i => $level) {
|
||||
$actualbookmarklevel = $this->callInaccessibleMethod($Renderer, 'calculateBookmarklevel', [$level]);
|
||||
$this->assertEquals($expectedbookmarklevels[$i], $actualbookmarklevel, "index:$i, lvl:$level");
|
||||
}
|
||||
}
|
||||
}
|
46
lib/plugins/dw2pdf/_test/SyntaxExportLinkTest.php
Normal file
46
lib/plugins/dw2pdf/_test/SyntaxExportLinkTest.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace dokuwiki\plugin\dw2pdf\test;
|
||||
|
||||
use DokuWikiTest;
|
||||
|
||||
/**
|
||||
* Export link tests for the dw2pdf plugin
|
||||
*
|
||||
* @group plugin_dw2pdf
|
||||
* @group plugins
|
||||
*/
|
||||
class SyntaxExportLinkTest extends DokuWikiTest
|
||||
{
|
||||
|
||||
protected $pluginsEnabled = array('dw2pdf');
|
||||
|
||||
function testParser()
|
||||
{
|
||||
global $ID;
|
||||
$ID = 'foo:bar:start';
|
||||
$parser_response = p_get_instructions('~~PDFNS>.:|Foo~~');
|
||||
$expected_parser_response = array(
|
||||
'plugin',
|
||||
array(
|
||||
'dw2pdf_exportlink',
|
||||
array(
|
||||
'link' => '?do=export_pdfns&book_ns=foo:bar&book_title=Foo',
|
||||
'title' => 'Export namespace "foo:bar:" to file Foo.pdf',
|
||||
5,
|
||||
1,
|
||||
),
|
||||
5,
|
||||
'~~PDFNS>.:|Foo~~',
|
||||
),
|
||||
1,
|
||||
);
|
||||
$this->assertEquals($expected_parser_response, $parser_response[2]);
|
||||
$renderer_response = p_render('xhtml', $parser_response, $info);
|
||||
$expected_renderer_response = 'doku.php?id=foo:bar:start&do=export_pdfns&book_ns=foo:bar&book_title=Foo" class="wikilink2" title="foo:bar:start" rel="nofollow" data-wiki-id="foo:bar:start">Export namespace "foo:bar:" to file Foo.pdf</a>';
|
||||
$trimmed_renderer_response = substr($renderer_response, strpos($renderer_response, 'doku.php'), -5);
|
||||
$trimmed_renderer_response = trim($trimmed_renderer_response);
|
||||
$this->assertEquals($expected_renderer_response, $trimmed_renderer_response);
|
||||
}
|
||||
}
|
||||
|
1032
lib/plugins/dw2pdf/action.php
Normal file
1032
lib/plugins/dw2pdf/action.php
Normal file
File diff suppressed because it is too large
Load Diff
15
lib/plugins/dw2pdf/composer.json
Normal file
15
lib/plugins/dw2pdf/composer.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "splitbrain/dw2pdf",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Andreas Gohr",
|
||||
"email": "andi@splitbrain.org"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"mpdf/mpdf": "8.0.*"
|
||||
},
|
||||
"replace": {
|
||||
"paragonie/random_compat": "*"
|
||||
}
|
||||
}
|
243
lib/plugins/dw2pdf/composer.lock
generated
Normal file
243
lib/plugins/dw2pdf/composer.lock
generated
Normal file
@@ -0,0 +1,243 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "d6362cf562a1dcae5e32b2106e2224f1",
|
||||
"packages": [
|
||||
{
|
||||
"name": "mpdf/mpdf",
|
||||
"version": "v8.0.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mpdf/mpdf.git",
|
||||
"reference": "7daf07f15334ed59a276bd52131dcca48794cdbd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/mpdf/mpdf/zipball/7daf07f15334ed59a276bd52131dcca48794cdbd",
|
||||
"reference": "7daf07f15334ed59a276bd52131dcca48794cdbd",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-gd": "*",
|
||||
"ext-mbstring": "*",
|
||||
"myclabs/deep-copy": "^1.7",
|
||||
"paragonie/random_compat": "^1.4|^2.0|9.99.99",
|
||||
"php": "^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0",
|
||||
"psr/log": "^1.0",
|
||||
"setasign/fpdi": "^2.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^0.9.5",
|
||||
"mpdf/qrcode": "^1.0.0",
|
||||
"phpunit/phpunit": "^5.0",
|
||||
"squizlabs/php_codesniffer": "^3.5.0",
|
||||
"tracy/tracy": "^2.4"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-bcmath": "Needed for generation of some types of barcodes",
|
||||
"ext-xml": "Needed mainly for SVG manipulation",
|
||||
"ext-zlib": "Needed for compression of embedded resources, such as fonts"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-development": "7.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Mpdf\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"GPL-2.0-only"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matěj Humpál",
|
||||
"role": "Developer, maintainer"
|
||||
},
|
||||
{
|
||||
"name": "Ian Back",
|
||||
"role": "Developer (retired)"
|
||||
}
|
||||
],
|
||||
"description": "PHP library generating PDF files from UTF-8 encoded HTML",
|
||||
"homepage": "https://mpdf.github.io",
|
||||
"keywords": [
|
||||
"pdf",
|
||||
"php",
|
||||
"utf-8"
|
||||
],
|
||||
"time": "2020-07-15T09:48:00+00:00"
|
||||
},
|
||||
{
|
||||
"name": "myclabs/deep-copy",
|
||||
"version": "1.10.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/myclabs/DeepCopy.git",
|
||||
"reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
|
||||
"reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"replace": {
|
||||
"myclabs/deep-copy": "self.version"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/collections": "^1.0",
|
||||
"doctrine/common": "^2.6",
|
||||
"phpunit/phpunit": "^7.1"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"DeepCopy\\": "src/DeepCopy/"
|
||||
},
|
||||
"files": [
|
||||
"src/DeepCopy/deep_copy.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "Create deep copies (clones) of your objects",
|
||||
"keywords": [
|
||||
"clone",
|
||||
"copy",
|
||||
"duplicate",
|
||||
"object",
|
||||
"object graph"
|
||||
],
|
||||
"time": "2020-06-29T13:22:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/log",
|
||||
"version": "1.1.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/log.git",
|
||||
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
|
||||
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.1.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Log\\": "Psr/Log/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for logging libraries",
|
||||
"homepage": "https://github.com/php-fig/log",
|
||||
"keywords": [
|
||||
"log",
|
||||
"psr",
|
||||
"psr-3"
|
||||
],
|
||||
"time": "2020-03-23T09:12:05+00:00"
|
||||
},
|
||||
{
|
||||
"name": "setasign/fpdi",
|
||||
"version": "v2.3.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Setasign/FPDI.git",
|
||||
"reference": "50c388860a73191e010810ed57dbed795578e867"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Setasign/FPDI/zipball/50c388860a73191e010810ed57dbed795578e867",
|
||||
"reference": "50c388860a73191e010810ed57dbed795578e867",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-zlib": "*",
|
||||
"php": "^5.6 || ^7.0"
|
||||
},
|
||||
"conflict": {
|
||||
"setasign/tfpdf": "<1.31"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~5.7",
|
||||
"setasign/fpdf": "~1.8",
|
||||
"setasign/tfpdf": "1.31",
|
||||
"tecnickcom/tcpdf": "~6.2"
|
||||
},
|
||||
"suggest": {
|
||||
"setasign/fpdf": "FPDI will extend this class but as it is also possible to use TCPDF or tFPDF as an alternative. There's no fixed dependency configured."
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"setasign\\Fpdi\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Jan Slabon",
|
||||
"email": "jan.slabon@setasign.com",
|
||||
"homepage": "https://www.setasign.com"
|
||||
},
|
||||
{
|
||||
"name": "Maximilian Kresse",
|
||||
"email": "maximilian.kresse@setasign.com",
|
||||
"homepage": "https://www.setasign.com"
|
||||
}
|
||||
],
|
||||
"description": "FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.",
|
||||
"homepage": "https://www.setasign.com/fpdi",
|
||||
"keywords": [
|
||||
"fpdf",
|
||||
"fpdi",
|
||||
"pdf"
|
||||
],
|
||||
"time": "2020-04-28T12:40:35+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": [],
|
||||
"platform-dev": []
|
||||
}
|
14
lib/plugins/dw2pdf/conf/default.php
Normal file
14
lib/plugins/dw2pdf/conf/default.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$conf['pagesize'] = 'A4';
|
||||
$conf['orientation'] = 'portrait';
|
||||
$conf['font-size'] = 11;
|
||||
$conf['doublesided'] = 1;
|
||||
$conf['toc'] = 0;
|
||||
$conf['toclevels'] = '';
|
||||
$conf['maxbookmarks'] = 5;
|
||||
$conf['template'] = 'default';
|
||||
$conf['output'] = 'file';
|
||||
$conf['usecache'] = 1;
|
||||
$conf['usestyles'] = 'wrap,';
|
||||
$conf['qrcodesize'] = '120x120';
|
||||
$conf['showexportbutton'] = 1;
|
14
lib/plugins/dw2pdf/conf/metadata.php
Normal file
14
lib/plugins/dw2pdf/conf/metadata.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$meta['pagesize'] = array('string');
|
||||
$meta['orientation'] = array('multichoice', '_choices' => array('portrait', 'landscape'));
|
||||
$meta['font-size'] = array('numeric');
|
||||
$meta['doublesided'] = array('onoff');
|
||||
$meta['toc'] = array('onoff');
|
||||
$meta['toclevels'] = array('string', '_pattern' => '/^(|[1-5]-[1-5])$/');
|
||||
$meta['maxbookmarks'] = array('numeric');
|
||||
$meta['template'] = array('dirchoice', '_dir' => DOKU_PLUGIN . 'dw2pdf/tpl/');
|
||||
$meta['output'] = array('multichoice', '_choices' => array('browser', 'file'));
|
||||
$meta['usecache'] = array('onoff');
|
||||
$meta['usestyles'] = array('string');
|
||||
$meta['qrcodesize'] = array('string', '_pattern' => '/^(|\d+x\d+)$/');
|
||||
$meta['showexportbutton'] = array('onoff');
|
66
lib/plugins/dw2pdf/conf/style.css
Normal file
66
lib/plugins/dw2pdf/conf/style.css
Normal file
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* These are the styles loaded by default
|
||||
*
|
||||
* Do not edit this file. Instead add your own styles in
|
||||
* lib/plugins/dw2pdf/conf/style.local.css or create your own template
|
||||
* to make sure they are not overwritten by updates
|
||||
*/
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
table.inline {
|
||||
border: 1px solid #808080;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.inline td, th {
|
||||
border: 1px solid #808080;
|
||||
}
|
||||
th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #eeeeee;
|
||||
color: #000000;
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
em.u {
|
||||
font-style: normal;
|
||||
text-decoration: underline;
|
||||
}
|
||||
em em.u {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
img.medialeft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
img.mediaright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 3px solid #cccccc;
|
||||
margin: 0;
|
||||
padding: 5px 0 5px 15px;
|
||||
}
|
||||
|
||||
.rightalign {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.centeralign {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.leftalign {
|
||||
text-align: left;
|
||||
}
|
1436
lib/plugins/dw2pdf/deleted.files
Normal file
1436
lib/plugins/dw2pdf/deleted.files
Normal file
File diff suppressed because it is too large
Load Diff
1
lib/plugins/dw2pdf/file-pdf.svg
Normal file
1
lib/plugins/dw2pdf/file-pdf.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14 9h5.5L14 3.5V9M7 2h8l6 6v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m4.93 10.44c.41.9.93 1.64 1.53 2.15l.41.32c-.87.16-2.07.44-3.34.93l-.11.04.5-1.04c.45-.87.78-1.66 1.01-2.4m6.48 3.81c.18-.18.27-.41.28-.66.03-.2-.02-.39-.12-.55-.29-.47-1.04-.69-2.28-.69l-1.29.07-.87-.58c-.63-.52-1.2-1.43-1.6-2.56l.04-.14c.33-1.33.64-2.94-.02-3.6a.853.853 0 0 0-.61-.24h-.24c-.37 0-.7.39-.79.77-.37 1.33-.15 2.06.22 3.27v.01c-.25.88-.57 1.9-1.08 2.93l-.96 1.8-.89.49c-1.2.75-1.77 1.59-1.88 2.12-.04.19-.02.36.05.54l.03.05.48.31.44.11c.81 0 1.73-.95 2.97-3.07l.18-.07c1.03-.33 2.31-.56 4.03-.75 1.03.51 2.24.74 3 .74.44 0 .74-.11.91-.3m-.41-.71l.09.11c-.01.1-.04.11-.09.13h-.04l-.19.02c-.46 0-1.17-.19-1.9-.51.09-.1.13-.1.23-.1 1.4 0 1.8.25 1.9.35M8.83 17c-.65 1.19-1.24 1.85-1.69 2 .05-.38.5-1.04 1.21-1.69l.48-.31m3.02-6.91c-.23-.9-.24-1.63-.07-2.05l.07-.12.15.05c.17.24.19.56.09 1.1l-.03.16-.16.82-.05.04z"/></svg>
|
After Width: | Height: | Size: 1002 B |
12
lib/plugins/dw2pdf/lang/ca/lang.php
Normal file
12
lib/plugins/dw2pdf/lang/ca/lang.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author David Surroca <david.tb303@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exporta a PDF';
|
||||
$lang['needtitle'] = 'Proporcioneu un títol.';
|
||||
$lang['needns'] = 'Proporcioneu un espai de noms existent.';
|
||||
$lang['empty'] = 'Encara no teniu cap pàgina seleccionada.';
|
||||
$lang['tocheader'] = 'Índex';
|
17
lib/plugins/dw2pdf/lang/ca/settings.php
Normal file
17
lib/plugins/dw2pdf/lang/ca/settings.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author David Surroca <david.tb303@gmail.com>
|
||||
*/
|
||||
$lang['orientation'] = 'Orientació de la pàgina';
|
||||
$lang['orientation_o_portrait'] = 'Vertical';
|
||||
$lang['orientation_o_landscape'] = 'Horitzontal';
|
||||
$lang['maxbookmarks'] = 'Quants nivells de secció s\'han d\'emprar en els enllaços PDF? <small>(0=cap, 5=tots)</small>';
|
||||
$lang['template'] = 'Quina plantilla voleu emprar pels PDFs?';
|
||||
$lang['output'] = 'Com s\'ha de mostrar a l\'usuari el PDF?';
|
||||
$lang['output_o_browser'] = 'Mostra\'l en el navegador';
|
||||
$lang['output_o_file'] = 'Descarrega el PDF';
|
||||
$lang['usecache'] = 'S\'ha d\'afegir els PDFs a la memòria cau? Les imatges no es validaran via ACL, inhabiliteu aquesta opció si pot ser un problema de seguretat.';
|
||||
$lang['usestyles'] = 'Podeu posar una llista separada per comas de connectors dels que llur <code>style.css</code> o <code>screen.css</code> s\'emprarà per la generació de PDFs. Per defecte només s\'empra <code>print.css</code> i <code>pdf.css</code>.';
|
15
lib/plugins/dw2pdf/lang/ckb/lang.php
Normal file
15
lib/plugins/dw2pdf/lang/ckb/lang.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author qezwan <qezwan@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'هەناردەی بکە بۆ PDF';
|
||||
$lang['needtitle'] = 'تکایە ناونیشانێک دابین بکە.';
|
||||
$lang['needns'] = 'تکایە بۆشایی ناوی بەردەست دابین بکە.';
|
||||
$lang['notexist'] = 'لاپەڕەی داواکراو بوونی نییە.';
|
||||
$lang['empty'] = 'تۆ هێشتا پەڕەت دەست نیشان نەکراوە.';
|
||||
$lang['tocheader'] = 'خشتەی ناوەڕۆکەکان';
|
||||
$lang['export_ns'] = 'ناردنی بۆشایی ناوی ناوی "%s:" بۆ فایلی %s.pdf';
|
||||
$lang['forbidden'] = 'تۆ هیچ چوونەژورەوەت نیە بۆ ئەم پەڕانە: %s.<br/><br/> بەکارهێنانی بەربژاری \'پەڕە قەدەغەکان بازبدە\' بۆ دروستکردنی پەڕتووکەکەت بە پەڕە بەردەستەکان.';
|
24
lib/plugins/dw2pdf/lang/ckb/settings.php
Normal file
24
lib/plugins/dw2pdf/lang/ckb/settings.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author qezwan <qezwan@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'فۆرماتی لاپەڕە وەک لەلایەن mPDF پشتگیری کراوە. هەمیشە <code> ئەی 4 </code> یان <code> پیتی </code>.';
|
||||
$lang['orientation'] = 'ئاراستەی لاپەڕە.';
|
||||
$lang['orientation_o_portrait'] = 'درێژاو';
|
||||
$lang['orientation_o_landscape'] = 'پانایی';
|
||||
$lang['font-size'] = 'قەبارەی فۆنت بۆ دەقی ئاسایی لە خاڵەکان.';
|
||||
$lang['doublesided'] = 'دۆکیومێنتی جووت لا دەست دەکات بە زیادکردنی لاپەڕەی تاک، و جووتی لاپەڕەی جووت و تاک. بەڵگەنامەی تاک-لا تەنها پەڕەی تاک و تاکیان هەیە.';
|
||||
$lang['toc'] = 'زیادکردنی خشتەی دروستکراوی خۆکار ناوەڕۆک لە PDF (تێبینی: ئایا دەکرێت پەڕەی بەتاڵ زیاد بکەیت بەهۆی دەستپێکردن لە لاپەڕەیەکی تاک و ToC هەمیشە ژمارەی لاپەڕە جووتەکان لەخۆ دەگرێت، لاپەڕەکانی ToC خۆی هیچ ژمارەی لاپەڕەینیە)';
|
||||
$lang['toclevels'] = 'پێناسەی ئاستی سەرەوە و بەرزترین ئاستی قوڵایی کە زیادکراون بۆ ToC. ئاستەکانی گریمانەیی ویکی بۆ C <a href="#config___toptoclevel">toptoclevel</a> و <a href="#config___maxtoclevel">maxtoclevel </a> بەکاردێت. فۆرماتی: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'دەبێت چەند ئاستی بەش لە نیشاندەری PDF بەکار بهێنرێت؟ <small>(0=هیچ، 5=هەموو)</small>';
|
||||
$lang['template'] = 'کام ڕووکار دەبێت بەکار بێت بۆ فۆرماتی PDFs?';
|
||||
$lang['output'] = 'PDF چۆن پێشکەش بە بەکارهێنەر بکرێت؟';
|
||||
$lang['output_o_browser'] = 'لە وێبگەڕەکە دا پیشان بدە';
|
||||
$lang['output_o_file'] = 'داگرتنی PDF';
|
||||
$lang['usecache'] = 'ئایا دەبێت PDFs خەزن بکرێت؟ وێنە بنچینکراوەکان ئەوسا ناپشکنرێن ACL ئەوسا، ناچالاک دەکرێت ئەگەر ئەمە نیگەرانی ئاسایشبێت بۆ تۆ.';
|
||||
$lang['usestyles'] = 'دەتوانیت لیستێکی جیاکراوەی کۆما ی پێوەکراو بەو پێوەکراوانە ببەخشیت کە <code>style.css</code> یان <code>screen.css</code> پێویستە بۆ نەوەی PDF بەکار بهێنرێت. بە گریمانەیی تەنها <code>print.css</code> و <code>pdf.css </code> بەکاردەهێندرێن.';
|
||||
$lang['qrcodesize'] = 'قەبارەی کۆدی QR ی بنچینەکراو (بە <code><i><پانی></i><b>x</b><i><height></i></code>). بەتاڵ بۆ لەکارخستنی';
|
||||
$lang['showexportbutton'] = 'دوگمەی هەناردەی PDF نیشان بدە (تەنها کاتێک کە لەلایەن تێمپلەیتەکەتەوە پشتگیری دەکرێت)';
|
17
lib/plugins/dw2pdf/lang/cs/lang.php
Normal file
17
lib/plugins/dw2pdf/lang/cs/lang.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Robert Surý <rsurycz@seznam.cz>
|
||||
* @author Kamil Nešetřil <kamil.nesetril@volny.cz>
|
||||
* @author Jaroslav Lichtblau <jlichtblau@seznam.cz>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Uložit do PDF';
|
||||
$lang['needtitle'] = 'Zadejte prosím název.';
|
||||
$lang['needns'] = 'Zadejte prosím existující jmenný prostor.';
|
||||
$lang['notexist'] = 'Požadovaná stránka neexistuje';
|
||||
$lang['empty'] = 'Zatím nejsou vybrané stránky.';
|
||||
$lang['tocheader'] = 'Obsah';
|
||||
$lang['export_ns'] = 'Exportovat jmenný prostor "%s:" do souboru %s.pdf';
|
||||
$lang['forbidden'] = 'Nemáte přístup k těmto stránkám: %s.<br/><br/>Chcete-li vytvořit svou knihu dostupných stránek, použijte volbu „Přeskočit zakázané stránky“.';
|
25
lib/plugins/dw2pdf/lang/cs/settings.php
Normal file
25
lib/plugins/dw2pdf/lang/cs/settings.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Kamil Nešetřil <kamil.nesetril@volny.cz>
|
||||
* @author Jaroslav Lichtblau <jlichtblau@seznam.cz>
|
||||
*/
|
||||
$lang['pagesize'] = 'The page format as supported by mPDF. Usually <code>A4</code> or <code>letter</code>.';
|
||||
$lang['orientation'] = 'The page orientation.';
|
||||
$lang['orientation_o_portrait'] = 'Portrait';
|
||||
$lang['orientation_o_landscape'] = 'Landscape';
|
||||
$lang['font-size'] = 'Velikost fontu normálního písma v bodech.';
|
||||
$lang['doublesided'] = 'Dvoustránkový dokument začíná přidáním liché strany a obsahuje páry sudých a lichých stran. Jednostránkový dokument obsahuje pouze liché strany.';
|
||||
$lang['toc'] = 'Vložit automaticky vytvořený Obsah do PDF (poznámka: může způsobit přidání prázdných stránek při začátku na liché straně, obsah je vždy na sudé straně a nemá žádné vlastní číslo strany)';
|
||||
$lang['toclevels'] = 'Určit horní úroveň a maximální hloubku podúrovní přidaných do Obsahu. Výchozí použité úrovně Obsahu wiki jsou <a href="#config___toptoclevel">toptoclevel</a> a <a href="#config___maxtoclevel">maxtoclevel</a>. Formát: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'How many section levels should be used in the PDF bookmarks? <small>(0=none, 5=all)</small>';
|
||||
$lang['template'] = 'Which template should be used for formatting the PDFs?';
|
||||
$lang['output'] = 'How should the PDF be presented to the user?';
|
||||
$lang['output_o_browser'] = 'Show in browser';
|
||||
$lang['output_o_file'] = 'Download the PDF';
|
||||
$lang['usecache'] = 'Should PDFs be cached? Embedded images won\'t be ACL checked then, disable if that\'s a security concern for you.';
|
||||
$lang['usestyles'] = 'You can give a comma separated list of plugins of which the <code>style.css</code> or <code>screen.css</code> should be used for PDF generation. By default only <code>print.css</code> and <code>pdf.css</code> are used.';
|
||||
$lang['qrcodesize'] = 'Size of embedded QR code (in pixels <code><i>width</i><b>x</b><i>height</i></code>). Empty to disable';
|
||||
$lang['showexportbutton'] = 'Show PDF export button (only when supported by your template)';
|
16
lib/plugins/dw2pdf/lang/da/lang.php
Normal file
16
lib/plugins/dw2pdf/lang/da/lang.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Jacob Palm <mail@jacobpalm.dk>
|
||||
* @author Søren Birk <soer9648@eucl.dk>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Eksporter til PDF';
|
||||
$lang['needtitle'] = 'Angiv venligst en titel.';
|
||||
$lang['needns'] = 'Angiv venligst et eksisterende navnerum.';
|
||||
$lang['notexist'] = 'Den forespurgte side findes ikke.';
|
||||
$lang['empty'] = 'Du har endnu ikke valgt sider.';
|
||||
$lang['tocheader'] = 'Indholdsfortegnelse';
|
||||
$lang['export_ns'] = 'Eksporter navnerummet "%s:" ti filen %s.pdf';
|
||||
$lang['forbidden'] = 'Du har ikke adgang til disse sider: %s.<br/><br/>Brug indstillingen \'Spring forbudte sider over\' for at fortsætte med de sider du har adgang til.';
|
25
lib/plugins/dw2pdf/lang/da/settings.php
Normal file
25
lib/plugins/dw2pdf/lang/da/settings.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Jacob Palm <mail@jacobpalm.dk>
|
||||
* @author soer9648 <soer9648@eucl.dk>
|
||||
*/
|
||||
$lang['pagesize'] = 'Sideformatet som supporteres af mPDF. Som regel <code>A4</code> eller <code>letter</code>.';
|
||||
$lang['orientation'] = 'Sideretning.';
|
||||
$lang['orientation_o_portrait'] = 'Portræt';
|
||||
$lang['orientation_o_landscape'] = 'Landskab';
|
||||
$lang['font-size'] = 'Tekststørrelsen til normal tekst, angivet i punkter.';
|
||||
$lang['doublesided'] = 'To-sidede dokumenter starter med ulige side, og har par af ulige og lige sider. Enkeltsidede dokumenter har kun ulige sider.';
|
||||
$lang['toc'] = 'Tilføj en auto-genereret indholdsfortegnelse i PDF-dokument (note: kan muligvis resultere i at der indsættes en eller flere tomme sider=';
|
||||
$lang['toclevels'] = 'Definer øverste og maksimale niveau som tilføjes til indholdsfortegnelsen. Standard wiki niveauer for indholdsfortegnelse (<a href="#config___toptoclevel">toptoclevel</a> og <a href="#config___maxtoclevel">maxtoclevel</a>) benyttes. Format: <code><i><top></i>-<i><maks></i></code>';
|
||||
$lang['maxbookmarks'] = 'Hvor mange sektion-niveauer skal benyttes i PDF-bogmærkerne? <small>(0=ingen, 5=alle)</small>';
|
||||
$lang['template'] = 'Hvilken skabelon skal benyttes til formatering af PDF\'erne?';
|
||||
$lang['output'] = 'Hvordan skal PDF\'en præsenteres for brugeren?';
|
||||
$lang['output_o_browser'] = 'Vis i browser';
|
||||
$lang['output_o_file'] = 'Download PDF\'en';
|
||||
$lang['usecache'] = 'Skal PDF\'er cachelagres? Indlejrede billeder bliver ikke kontrolleret af ACL, deaktiver hvis det er et sikkerhedsproblem for dig.';
|
||||
$lang['usestyles'] = 'Du kan angive en kommasepareret liste over plugins hvor <code>style.css</code> eller <code>screen.css</code> skal benyttes til generering af PDF.';
|
||||
$lang['qrcodesize'] = 'Størrelse på indlejrede QR-kode (i pixels <code><i>bredde</i><b>x</b><i>højde</i></code>). Efterlad tomt for at deaktivere';
|
||||
$lang['showexportbutton'] = 'Vis PDF eksportknap (kun hvis det er supporteret af din skabelon)';
|
19
lib/plugins/dw2pdf/lang/de-informal/lang.php
Normal file
19
lib/plugins/dw2pdf/lang/de-informal/lang.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author DrMaXX <drmaxxis@gmail.com>
|
||||
* @author Sebastian Engel <mail@engel-s.de>
|
||||
* @author Thomas Templin <templin@gnuwhv.de>
|
||||
* @author F. Mueller-Donath <j.felix@mueller-donath.de>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'PDF exportieren';
|
||||
$lang['needtitle'] = 'Bitte Titel angeben!';
|
||||
$lang['needns'] = 'Bitte gib einen vorhandenen Namensraum an.';
|
||||
$lang['notexist'] = 'Die angeforderte Seite existiert nicht.';
|
||||
$lang['empty'] = 'Du hastnoch keine Seiten gewählt.';
|
||||
$lang['tocheader'] = 'Inhaltsverzeichnis';
|
||||
$lang['export_ns'] = 'Exportiere Namensraum "%s:" in Datei %s.pdf';
|
||||
$lang['forbidden'] = 'Sie haben keine Berechtigung für folgende Seiten: %s.<br/><br/>Benutze die Option \'Seiten ohne Berechtigung auslassen\' um das Buch mit den verfügbaren Seiten zu erstellen.';
|
||||
$lang['missingbookcreator'] = 'Das Bookcreator Plugin ist nicht installiert oder deaktiviert';
|
26
lib/plugins/dw2pdf/lang/de-informal/settings.php
Normal file
26
lib/plugins/dw2pdf/lang/de-informal/settings.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Sebastian Engel <mail@engel-s.de>
|
||||
* @author Thomas Templin <templin@gnuwhv.de>
|
||||
* @author F. Mueller-Donath <j.felix@mueller-donath.de>
|
||||
*/
|
||||
$lang['pagesize'] = 'Ein von mPDF unterstütztes Seitenformat. Normalerweise <code>A4</code> oder <code>letter</code>.';
|
||||
$lang['orientation'] = 'Die Seiten-Ausrichtung.';
|
||||
$lang['orientation_o_portrait'] = 'Hochformat';
|
||||
$lang['orientation_o_landscape'] = 'Querformat';
|
||||
$lang['font-size'] = 'Die Schriftgröße für normalen Text in Punkten.';
|
||||
$lang['doublesided'] = 'Doppelseitige Dokumente beginnen mit einer ungeraden Seite und werden fortgeführt mit Paaren von geraden und ungeraden Seiten. Einseitige Dokumente haben nur ungerade Seiten.';
|
||||
$lang['toc'] = 'Hinzufügen eines automatisch generierten Inhaltsverzeichnisses am Anfang der PDF-Datei (Anmerkung: kann dazu führen, dass eine leere Seite eingefügt wird, damit der Text bei einer ungeraden Seitenzahl beginnt; das Inhaltsverzeichnis selbst wird bei der Seitennummerierung nicht mitgezählt)';
|
||||
$lang['toclevels'] = 'Oberste Ebene und maximale Tiefe des Inhaltsverzeichnisses. Standardmäßig werden die Werte aus der Wiki-Konfiguration <a href="#config___toptoclevel">toptoclevel</a> und <a href="#config___maxtoclevel">maxtoclevel</a> benutzt. Format: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Bis zu welcher Tiefe werden Lesezeichen angezeigt? (0=keine, 5=alle)';
|
||||
$lang['template'] = 'Welches Template soll zur Formatierung der PDFs verwendet werden?';
|
||||
$lang['output'] = 'So wird die Datei ausgegeben';
|
||||
$lang['output_o_browser'] = 'Browser';
|
||||
$lang['output_o_file'] = 'Datei herunterladen';
|
||||
$lang['usecache'] = 'Sollen PDFs zwischengespeichert werden? Eingebettete Grafiken werden dann nicht hinsichtlich ihrer Zugriffsberechtigungen geprüft (sicherheitskritische Option). ';
|
||||
$lang['usestyles'] = 'Hier können komma-separiert Plugins angegeben werden, von denen die <code>style.css</code> oder <code>screen.css</code> für die PDF-Generierung verwendet werden sollen. Als Standard wird nur <code>print.css</code> und <code>pdf.css</code> verwendet.';
|
||||
$lang['qrcodesize'] = 'Größe des eingebetteten QR-Codes (in Pixeln <code><i>width</i><b>x</b><i>height</i></code>. Leer lassen zum Deaktivieren.';
|
||||
$lang['showexportbutton'] = 'Zeige PDF Export Button (nur wenn vom Template unterstützt)';
|
19
lib/plugins/dw2pdf/lang/de/lang.php
Normal file
19
lib/plugins/dw2pdf/lang/de/lang.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Markus <mosesmami0@gmail.com>
|
||||
* @author Sebastian Engel <mail@engel-s.de>
|
||||
* @author Juergen-aus-Koeln <h-j-schuemmer@web.de>
|
||||
* @author F. Mueller-Donath <j.felix@mueller-donath.de>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'PDF exportieren';
|
||||
$lang['needtitle'] = 'Bitte Titel angeben!';
|
||||
$lang['needns'] = 'Bitte geben Sie einen vorhandenen Namensraum an.';
|
||||
$lang['notexist'] = 'Die angeforderte Seite existiert nicht.';
|
||||
$lang['empty'] = 'Sie haben noch keine Seiten gewählt.';
|
||||
$lang['tocheader'] = 'Inhaltsverzeichnis';
|
||||
$lang['export_ns'] = 'Exportiere Namensraum "%s:" in Datei %s.pdf';
|
||||
$lang['forbidden'] = 'Sie haben keine Berechtigung für folgende Seiten: %s.<br/><br/>Benutzen Sie die Option \'Seiten ohne Berechtigung auslassen\' um das Buch mit den verfügbaren Seiten zu erstellen.';
|
||||
$lang['missingbookcreator'] = 'Das Plugin "Bookcreator" ist entweder nicht installiert oder deaktiviert.';
|
27
lib/plugins/dw2pdf/lang/de/settings.php
Normal file
27
lib/plugins/dw2pdf/lang/de/settings.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Markus <mosesmami0@gmail.com>
|
||||
* @author Matthias Schulte <dokuwiki@lupo49.de>
|
||||
* @author Juergen-aus-Koeln <h-j-schuemmer@web.de>
|
||||
* @author F. Mueller-Donath <j.felix@mueller-donath.de>
|
||||
*/
|
||||
$lang['pagesize'] = 'Ein von mPDF unterstütztes Seitenformat. Normalerweise <code>A4</code> oder <code>letter</code>.';
|
||||
$lang['orientation'] = 'Die Seiten-Ausrichtung';
|
||||
$lang['orientation_o_portrait'] = 'Hochformat';
|
||||
$lang['orientation_o_landscape'] = 'Querformat';
|
||||
$lang['font-size'] = 'Die Schriftgröße für normalen Text in Punkten.';
|
||||
$lang['doublesided'] = 'Doppelseitige Dokumente beginnen mit einer ungeraden Seite und werden fortgeführt mit Paaren von geraden und ungeraden Seiten. Einseitige Dokumente haben nur ungerade Seiten.';
|
||||
$lang['toc'] = 'Hinzufügen eines automatisch generierten Inhaltsverzeichnisses am Anfang der PDF-Datei (Anmerkung: kann dazu führen, dass eine leere Seite eingefügt wird, damit der Text bei einer ungeraden Seitenzahl beginnt; das Inhaltsverzeichnis selbst wird bei der Seitennummerierung nicht mitgezählt)';
|
||||
$lang['toclevels'] = 'Oberste Ebene und maximale Tiefe des Inhaltsverzeichnisses. Standardmäßig werden die Werte aus der Wiki-Konfiguration <a href="#config___toptoclevel">toptoclevel</a> und <a href="#config___maxtoclevel">maxtoclevel</a> benutzt. Format: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Bis zu welcher Tiefe werden Lesezeichen angezeigt? (0=keine, 5=alle)';
|
||||
$lang['template'] = 'Welches Template soll zur Formatierung der PDFs verwendet werden?';
|
||||
$lang['output'] = 'Wie soll das PDF angezeigt werden?';
|
||||
$lang['output_o_browser'] = 'Im Browser anzeigen';
|
||||
$lang['output_o_file'] = 'PDF herunterladen';
|
||||
$lang['usecache'] = 'Sollen PDFs zwischengespeichert werden? Eingebettete Grafiken werden dann nicht hinsichtlich ihrer Zugriffsberechtigungen geprüft (sicherheitskritische Option). ';
|
||||
$lang['usestyles'] = 'Hier können komma-separiert Plugins angegeben werden, von denen die <code>style.css</code> oder <code>screen.css</code> für die PDF-Generierung verwendet werden sollen. Als Standard wird nur die <code>print.css</code> und <code>pdf.css</code> verwendet.';
|
||||
$lang['qrcodesize'] = 'Größe des eingebetteten QR-Codes (in Pixeln <code><i>width</i><b>x</b><i>height</i></code>. Leer lassen zum Deaktivieren.';
|
||||
$lang['showexportbutton'] = 'Zeige PDF Export Button (nur wenn vom Template unterstützt)';
|
11
lib/plugins/dw2pdf/lang/en/lang.php
Normal file
11
lib/plugins/dw2pdf/lang/en/lang.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$lang['export_pdf_button'] = "Export to PDF";
|
||||
$lang['needtitle'] = "Please provide a title.";
|
||||
$lang['needns'] = "Please provide an existing namespace.";
|
||||
$lang['notexist'] = "Requested page doesn't exist.";
|
||||
$lang['empty'] = "You don't have pages selected yet.";
|
||||
$lang['tocheader'] = "Table of Contents";
|
||||
$lang['export_ns'] = 'Export namespace "%s:" to file %s.pdf';
|
||||
$lang['forbidden'] = "You have no access to these pages: %s.<br/><br/>Use option 'Skip Forbidden Pages' to create your book with the available pages.";
|
||||
$lang['missingbookcreator'] = 'The Bookcreator Plugin is not installed or is disabled';
|
25
lib/plugins/dw2pdf/lang/en/settings.php
Normal file
25
lib/plugins/dw2pdf/lang/en/settings.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* English language file
|
||||
*
|
||||
*/
|
||||
|
||||
// for the configuration manager
|
||||
|
||||
$lang['pagesize'] = 'The page format as supported by mPDF. Usually <code>A4</code> or <code>letter</code>.';
|
||||
$lang['orientation'] = 'The page orientation.';
|
||||
$lang['orientation_o_portrait'] = 'Portrait';
|
||||
$lang['orientation_o_landscape'] = 'Landscape';
|
||||
$lang['font-size'] = 'The font-size for normal text in points.';
|
||||
$lang['doublesided'] = 'Double-sided document starts add odd page, and has pairs of even and odd pages. Single-side document has only odd pages.';
|
||||
$lang['toc'] = 'Add an autogenerated Table of Content in PDF (note: Can add blank pages due to start at an odd page and ToC always include on even number of pages, ToC pages itself has no pagenumbers)';
|
||||
$lang['toclevels'] = 'Define top level and maximum level depth which are added to ToC. Default wiki ToC levels <a href="#config___toptoclevel">toptoclevel</a> and <a href="#config___maxtoclevel">maxtoclevel</a> are used. Format: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'How many section levels should be used in the PDF bookmarks? <small>(0=none, 5=all)</small>';
|
||||
$lang['template'] = 'Which template should be used for formatting the PDFs?';
|
||||
$lang['output'] = 'How should the PDF be presented to the user?';
|
||||
$lang['output_o_browser'] = 'Show in browser';
|
||||
$lang['output_o_file'] = 'Download the PDF';
|
||||
$lang['usecache'] = 'Should PDFs be cached? Embedded images won\'t be ACL checked then, disable if that\'s a security concern for you.';
|
||||
$lang['usestyles'] = 'You can give a comma separated list of plugins of which the <code>style.css</code> or <code>screen.css</code> should be used for PDF generation. By default only <code>print.css</code> and <code>pdf.css</code> are used.';
|
||||
$lang['qrcodesize'] = 'Size of embedded QR code (in pixels <code><i><width></i><b>x</b><i><height></i></code>). Empty to disable';
|
||||
$lang['showexportbutton'] = 'Show PDF export button (only when supported by your template)';
|
13
lib/plugins/dw2pdf/lang/eo/lang.php
Normal file
13
lib/plugins/dw2pdf/lang/eo/lang.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Robert Bogenschneider <bogi@uea.org>
|
||||
* @author Robert Bogenschneider <robog@gmx.de>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Eksporti al PDF';
|
||||
$lang['needtitle'] = 'Bonvolu indiki titolon.';
|
||||
$lang['needns'] = 'Bv. indiki ekzistantan nomspacon.';
|
||||
$lang['empty'] = 'Vi ankoraŭ ne selektis paĝojn.';
|
||||
$lang['tocheader'] = 'Enhavtabelo';
|
24
lib/plugins/dw2pdf/lang/eo/settings.php
Normal file
24
lib/plugins/dw2pdf/lang/eo/settings.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Robert Bogenschneider <bogi@uea.org>
|
||||
* @author Robert Bogenschneider <robog@gmx.de>
|
||||
*/
|
||||
$lang['pagesize'] = 'La paĝformaton, kiun mPDF subtenas. Kutime <code>A4</code> aŭ <code>letter</code>.';
|
||||
$lang['orientation'] = 'La paĝ-orientiĝo.';
|
||||
$lang['orientation_o_portrait'] = 'Portreto (vertikala)';
|
||||
$lang['orientation_o_landscape'] = 'Pejzaĝo (horizontala)';
|
||||
$lang['doublesided'] = 'Duflanka dokumento komencas per malpara paĝo kaj havas parojn da paraj kaj malparaj paĝoj. Unuflankaj dokumentoj havas nur malparajn paĝojn.';
|
||||
$lang['toc'] = 'Aldoni aŭtomate kreitan enhavtabelon en PDF (Notu: povas ekesti malplenaj paĝoj pro komenco sur malpara paĝo, kaj la enhavtabelo ĉiam komenciĝas en para paĝo sen paĝnumero)';
|
||||
$lang['toclevels'] = 'Difini la plej supran nivelon kaj maksimuman profundecon, ĝis kiu aldoniĝas al la enhavtabelo. Standarde uzatas <a href="#config___toptoclevel">toptoclevel</a> kaj <a href="#config___maxtoclevel">maxtoclevel</a>. Formato: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Kiom da sekciaj ebenoj estu uzataj en la PDF-libromarkoj? <small>(0=neniuj, 5=ĉiuj)</small>';
|
||||
$lang['template'] = 'Kiujn ŝablonojn uzi por formatigi la PDF-ojn?';
|
||||
$lang['output'] = 'Kiel prezenti la PDF-on al la uzanto?';
|
||||
$lang['output_o_browser'] = 'Montri en foliumilo';
|
||||
$lang['output_o_file'] = 'Elŝuti la PDF-on';
|
||||
$lang['usecache'] = 'Ĉu kaŝmemori PDF-ojn? Enmetitaj bildoj ne estos alirkontrolataj; malebligu, se tio estas sekurecrisko por vi.';
|
||||
$lang['usestyles'] = 'Komo-disigita listo de kromaĵoj, kies <code>style.css</code> aŭ <code>screen.css</code> estu uzataj por PDF-kreado. Defaŭlte ajna <code>print.css</code> kaj <code>pdf.css</code> estas uzataj.';
|
||||
$lang['qrcodesize'] = 'Grandeco de la enmetita QR-kodo (en pikseloj <code><i>larĝeco</i><b>x</b><i>alteco</i></code>). Malplena por malebligi';
|
||||
$lang['showexportbutton'] = 'Montri butonon por PDF-eksportado (nur se ebligita de via ŝablono)';
|
15
lib/plugins/dw2pdf/lang/es/lang.php
Normal file
15
lib/plugins/dw2pdf/lang/es/lang.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Domingo Redal <docxml@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exportar a PDF';
|
||||
$lang['needtitle'] = 'Por favor proporcione un título.';
|
||||
$lang['needns'] = 'Por favor proporcione un nombre de espacio existente.';
|
||||
$lang['notexist'] = 'La página solicitada no existe.';
|
||||
$lang['empty'] = 'No tiene páginas seleccionadas aún.';
|
||||
$lang['tocheader'] = 'Tabla de Contenidos';
|
||||
$lang['export_ns'] = 'Exportar el espacio de nombres "%s:" al fichero%s.pdf';
|
||||
$lang['forbidden'] = 'No tiene acceso a estas páginas:%s.<br/><br/>Use la opción \'Saltar páginas prohibidas\' para crear su libro con las páginas disponibles.';
|
26
lib/plugins/dw2pdf/lang/es/settings.php
Normal file
26
lib/plugins/dw2pdf/lang/es/settings.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* English language file
|
||||
*
|
||||
* @author Domingo Redal <docxml@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'El formato de la página soportado por mPDF. Usualmente <code>A4</code> o <code>letter</code>.';
|
||||
$lang['orientation'] = 'Orientación de la página.';
|
||||
$lang['orientation_o_portrait'] = 'Vertical';
|
||||
$lang['orientation_o_landscape'] = 'Horizontal';
|
||||
$lang['font-size'] = 'El tamaño de la fuente para el texto normal en puntos.';
|
||||
$lang['doublesided'] = 'Documentos de dos caras inician en una página impar, y tienen pares de páginas impares y pares. Documentos de una cara sólo tienen páginas impares.';
|
||||
$lang['toc'] = 'Añadir una Tabla de Contenidos autogenerada en PDF (nota: Puede añadir páginas en blanco debido a que la TdC comienza en una página impar y la TdC siempre se incluye en una página par, las páginas de la TdC en si mismas no tienen números de páginas)';
|
||||
$lang['toclevels'] = 'Define el nivel principal y la profunidad de los niveles que serán añadidos a la TdC. Los niveles de TdC del wiki por defecto usados son <a href="#config___toptoclevel">toptoclevel</a> y <a href="#config___maxtoclevel">maxtoclevel</a>. Formato: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = '¿Cuántos niveles de secciones deben ser usados en los marcadores en el PDF? <small>(0=none, 5=all)</small>';
|
||||
$lang['template'] = '¿Cuál plantilla debe ser usada para dar formato a los PDFs?';
|
||||
$lang['output'] = '¿Cómo debe ser presentado el PDF al usuario?';
|
||||
$lang['output_o_browser'] = 'Ver en el navegador';
|
||||
$lang['output_o_file'] = 'Bajar el PDF';
|
||||
$lang['usecache'] = '¿Deben los PDFs ser guardados en caché? Las imágenes añadidas no serán revisadas por los ACL, deshabilitar si es un problema de seguridad para usted.';
|
||||
$lang['usestyles'] = 'Puede añadir una lista separada por comas de los plugins de los que <code>style.css</code> o <code>screen.css</code> deben ser usados para la generación del PDF. Por defecto sólo <code>print.css</code> y <code>pdf.css</code> son usados.';
|
||||
$lang['qrcodesize'] = 'Tamaño del código QR añadido (en pixeles <code><i><width></i><b>x</b><i><height></i></code>). Dejar vacío para deshabilitar';
|
||||
$lang['showexportbutton'] = 'Mostrar el botón de exportar PDF (solo cuando es soportado por su plantilla)';
|
17
lib/plugins/dw2pdf/lang/fa/lang.php
Normal file
17
lib/plugins/dw2pdf/lang/fa/lang.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Nima Hamidian <nima.hamidian@gmail.com>
|
||||
* @author Sam01 <m.sajad079@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'تبدیل به پیدیاف';
|
||||
$lang['needtitle'] = 'لطفا یک عنوان ارائه دهید.';
|
||||
$lang['needns'] = 'لطفا یک فضاینام موجود ارائه دهید.';
|
||||
$lang['notexist'] = 'صفحهی درخواستشده موجود نمیباشد.';
|
||||
$lang['empty'] = 'شما صفحههای انتخاب شدهای ندارید.';
|
||||
$lang['tocheader'] = 'جدول محتوا';
|
||||
$lang['export_ns'] = 'تبدیل فضاینام "%s:" به فایل %s.pdf';
|
||||
$lang['forbidden'] = 'شما به این صفحهها دسترسی ندارید: %s.<br/><br/> از گزینهی \'ردشدن از صفحههای ممنوعه\' جهت ایجاد کتابتان با صفحههای موجود استفاده کنید.';
|
||||
$lang['missingbookcreator'] = 'پلاگین کتابساز نصب نشده یا غیرفعال است';
|
28
lib/plugins/dw2pdf/lang/fa/settings.php
Normal file
28
lib/plugins/dw2pdf/lang/fa/settings.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Nima Hamidian <nima.hamidian@gmail.com>
|
||||
* @author Sam01 <m.sajad079@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'فرمت صفحه توسط mPDF پشتیبانی می شود. معمولا <code>A4</code> یا <code>letter</code>.';
|
||||
$lang['orientation'] = 'جهت صفحه.';
|
||||
$lang['orientation_o_portrait'] = 'پرتره';
|
||||
$lang['orientation_o_landscape'] = 'چشمانداز';
|
||||
$lang['font-size'] = 'اندازه فونت برای متن نرمال برحسب نقطه.';
|
||||
$lang['doublesided'] = 'سند دوطرفه شروع به اضافه کردن صفحهفرد کرد، و جفت زوج و فرد دارد. سند تکطرفه تنها دارای صفحات فرد میباشد.';
|
||||
$lang['toc'] = 'اضافه کردن فهرست مندرجات خودکار در پیدیاف (توجه داشته باشید: میتوانید صفحات خالی اضافه کنید که در صفحه فرد شروع میشود و ToC همیشه در هر تعداد صفحه وجود دارد، صفحهها در ToC دارای شماره صفحه هستند)';
|
||||
$lang['toclevels'] = 'تعریف سطح بالا و حداکثر عمق سطح که به ToC اضافه شدهاند.
|
||||
سطح پیشفرض ToC ویکی <a href="#config___toptoclevel">سطح بالای ToC</a> و <a href="#config___maxtoclevel">حداکثر سطح بالا</a> استفاده شدهاند.
|
||||
فرمت: <code><i><بالا></i>-<i><حداکثر></i></code>';
|
||||
$lang['maxbookmarks'] = 'چگونه بسیاری از سطوح انتخابی باید در بوکمارک پیدیاف استفاده شود؟
|
||||
<small>(5=همه ، 0=هیچکدام)</small>';
|
||||
$lang['template'] = 'کدام الگو باید برای فرمت کردن فایلهای پیدیاف استفاده شود؟';
|
||||
$lang['output'] = 'چگونه باید پیدیاف به کاربر ارائه داده شود؟';
|
||||
$lang['output_o_browser'] = 'نمایش در مرورگر';
|
||||
$lang['output_o_file'] = 'دانلود پیدیاف';
|
||||
$lang['usecache'] = 'فایلهای پیدیاف کش شوند؟ تصاویر جاسازیشده به عنوان ACL علامت زده نمیشوند، اگر نگران امنیت هستید غیرفعال کنید.';
|
||||
$lang['usestyles'] = 'شما میتوانید یک لیست که با کاما از هم جدا شدهاند، از افزونههایی که <code>style.css</code> یا <code>screen.css</code> باید برای تولید پیدیاف استفاده کنند وارد کنید. بهطور پیشفرض فقط <code>print.css</code> و <code>pdf.css</code> استفاده میشوند';
|
||||
$lang['qrcodesize'] = 'اندازهی کیوآر کد تعبیه شده (درهر پیکسل<code><i><عرض></i><b>x</b><i><طول></i></code>). خالی برای غیرفعال بودن';
|
||||
$lang['showexportbutton'] = 'نمایش دکمهی تبدیل به پیدیاف (فقط وقتی که قالب پشتیبانی کند)';
|
6
lib/plugins/dw2pdf/lang/fi/lang.php
Normal file
6
lib/plugins/dw2pdf/lang/fi/lang.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$lang['export_pdf_button'] = "Tee PDF";
|
||||
$lang['needtitle'] = "Anna otsikko.";
|
||||
$lang['needns'] = "Anna olemassa oleva namespace.";
|
||||
$lang['empty'] = "Valitse ensin sivu.";
|
21
lib/plugins/dw2pdf/lang/fi/settings.php
Normal file
21
lib/plugins/dw2pdf/lang/fi/settings.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* Finish language file
|
||||
*
|
||||
*/
|
||||
|
||||
// for the configuration manager
|
||||
|
||||
$lang['output'] = 'Kuinka PDF esitetaan kayttajalle ?';
|
||||
$lang['output_o_browser'] = 'Näytä selaimessa';
|
||||
$lang['output_o_file'] = 'Lataa PDF';
|
||||
$lang['pagesize'] = 'Sivuformaatti on ohjelmasta mPDF. Tavallisesti <code>A4</code> tai <code>letter</code>.';
|
||||
$lang['orientation'] = 'Sivun suunta.';
|
||||
$lang['orientation_o_portrait'] = 'Pysty';
|
||||
$lang['orientation_o_landscape'] = 'Vaaka';
|
||||
$lang['usecache'] = 'Should PDFs be cached? Embedded images won\'t be ACL checked then, disable if that\'s a security concern for you.';
|
||||
$lang['template'] = 'Which template should be used for formatting the PDFs?';
|
||||
$lang['maxbookmarks'] = 'How many section levels should be used in the PDF bookmarks? <small>(0=none, 5=all)</small>';
|
||||
$lang['usestyles'] = 'You can give a comma separated list of plugins of which the <code>style.css</code> or <code>screen.css</code> should be used for PDF generation. By default only <code>print.css</code> and <code>pdf.css</code> are used.';
|
||||
$lang['qrcodesize'] = 'Size of embedded QR code (in pixels <code><i>width</i><b>x</b><i>height</i></code>). Empty to disable';
|
||||
$lang['showexportbutton'] = 'Näytä Tee PDF nappula (only when supported by your template)';
|
20
lib/plugins/dw2pdf/lang/fr/lang.php
Normal file
20
lib/plugins/dw2pdf/lang/fr/lang.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Schplurtz le Déboulonné <Schplurtz@laposte.net>
|
||||
* @author Hérisson grognon <dodoperso@laposte.net>
|
||||
* @author Nicolas Friedli <nicolas@theologique.ch>
|
||||
* @author tuxun <tuxuntrash@gmail.com>
|
||||
* @author olinuxx/trebmuh <trebmuh@tuxfamily.org>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exporter en PDF';
|
||||
$lang['needtitle'] = 'Veuillez choisir un titre.';
|
||||
$lang['needns'] = 'Veuillez choisir une catégorie existante.';
|
||||
$lang['notexist'] = 'La page demandée n\'existe pas.';
|
||||
$lang['empty'] = 'Vous n\'avez encore sélectionné aucune page.';
|
||||
$lang['tocheader'] = 'Table des matières';
|
||||
$lang['export_ns'] = 'Exporter la catégorie « %s » dans le fichier %s.pdf.';
|
||||
$lang['forbidden'] = 'Vous n\'avez pas accès à ces pages : %s.<br/><br/>Utilisez l\'option \'Sauter les pages interdites\' pour créer votre livre avec les pages disponibles.';
|
||||
$lang['missingbookcreator'] = 'Le greffon Bookcreator est désactivé ou n\'est pas installé.';
|
30
lib/plugins/dw2pdf/lang/fr/settings.php
Normal file
30
lib/plugins/dw2pdf/lang/fr/settings.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Schplurtz le Déboulonné <Schplurtz@laposte.net>
|
||||
* @author Hérisson grognon <dodoperso@laposte.net>
|
||||
* @author NicolasFriedli <nicolas@theologique.ch>
|
||||
* @author Fabrice Dejaigher <fabrice@chtiland.com>
|
||||
* @author tuxun <tuxuntrash@gmail.com>
|
||||
* @author olinuxx/trebmuh <trebmuh@tuxfamily.org>
|
||||
*/
|
||||
$lang['pagesize'] = 'Le format de page selon les options de mPDF. Généralement <code>A4</code> ou <code>letter</code>.';
|
||||
$lang['orientation'] = 'Orientation de la page.';
|
||||
$lang['orientation_o_portrait'] = 'Portrait';
|
||||
$lang['orientation_o_landscape'] = 'Paysage';
|
||||
$lang['font-size'] = 'Taille de police en points pour le texte ordinaire.';
|
||||
$lang['doublesided'] = 'Un document recto-verso commence par une page impaire et possède des paires de pages paires et impaires. Un document simple face n\'a que des pages impaires. ';
|
||||
$lang['toc'] = 'Ajouter au PDF une table des matières générée automatiquement. (Note: Cela peut ajouter des pages blanches à cause du début en page impaire et du fait que la TdM contient toujours un nombre pair de pages. Les pages de la TdM elle même ne sont pas numérotées.)';
|
||||
$lang['toclevels'] = 'Définit le plus haut niveau et la profondeur maximum des titres ajoutés à la TdM. Par défaut, les niveaux de la TdM du wiki <a href="#config___toptoclevel"><i>toptoclevel</i></a> et <a href="#config___maxtoclevel"><i>maxtocleve</i>l</a> sont utilisés.<br />Format : <code><i><niveau_haut></i>-<i><niveau_max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Combien de niveaux de section (titres) doivent être utilisés dans les marque-pages PDF ?
|
||||
<small>(0=aucun, 5=tous)</small>';
|
||||
$lang['template'] = 'Quel thème doit être utilisé pour présenter les PDF ?';
|
||||
$lang['output'] = 'Comment le PDF doit-il être présenté à l\'utilisateur ?';
|
||||
$lang['output_o_browser'] = 'Afficher dans le navigateur';
|
||||
$lang['output_o_file'] = 'Télécharger le PDF';
|
||||
$lang['usecache'] = 'Mettre les PDF en cache ? Les images incluses le seront, alors, sans vérification des droits (ACL), désactivez cette option si cela vous pose un problème de sécurité.';
|
||||
$lang['usestyles'] = 'Vous pouvez préciser une liste d\'extensions dont les fichiers <code>style.css</code> ou <code>screen.css</code> doivent être utilisés pour générer les PDF. Par défaut, seuls les fichiers <code>print.css</code> et <code>pdf.css</code> sont utilisés.';
|
||||
$lang['qrcodesize'] = 'Taille du code QR (en pixels <code><i>largeur</i><b>x</b><i>hauteur</i></code>). Laisser vide pour le désactiver.';
|
||||
$lang['showexportbutton'] = 'Afficher le bouton « Exporter en PDF » (seulement pour les thèmes validés et prenant en charge cette fonctionnalité)';
|
15
lib/plugins/dw2pdf/lang/hr/lang.php
Normal file
15
lib/plugins/dw2pdf/lang/hr/lang.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Davor Turkalj <turki.bsc@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Izvoz u PDF';
|
||||
$lang['needtitle'] = 'Molim unesite naslov.';
|
||||
$lang['needns'] = 'Molim navedite postojeći imenski prostor.';
|
||||
$lang['notexist'] = 'Tražena stranica ne postoji.';
|
||||
$lang['empty'] = 'Nemate još odabranih stranica.';
|
||||
$lang['tocheader'] = 'Sadržaj';
|
||||
$lang['export_ns'] = 'Izvoz imenskog prostora "%s:" u %s.pdf';
|
||||
$lang['forbidden'] = 'Nemate pristup ovim stranicama: %s.<br/><br/>Koristite opciju \'Skip Forbidden Pages\' da kreirate knjigu s raspoloživim stranicama.';
|
24
lib/plugins/dw2pdf/lang/hr/settings.php
Normal file
24
lib/plugins/dw2pdf/lang/hr/settings.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Davor Turkalj <turki.bsc@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'Format stranice kako je podržan u mPDF. Uobičajeno <code>A4</code> ili <code>letter</code>.';
|
||||
$lang['orientation'] = 'Orijentacija stranice';
|
||||
$lang['orientation_o_portrait'] = 'Portret';
|
||||
$lang['orientation_o_landscape'] = 'Pejzaž';
|
||||
$lang['font-size'] = 'Veličina fonta za normalni tekst u točkama.';
|
||||
$lang['doublesided'] = 'Dvostrani dokumenti počinju na neparnoj stranici i imaju parove parnih i neparnih stranica. Jednostrani dokumenti imaju samo parne stranice.';
|
||||
$lang['toc'] = 'Dodaj automatski generirani sadržaj u PDF (Napomena: prazne stranice mogu biti dodane na parne stranice, a sadržaj je uvijek uključen na neparnim brojevima stranica, stranice Sadržaja nemaju brojeve stranica)';
|
||||
$lang['toclevels'] = 'Podesite najviši nivo i maksimalan broj nivoa koji će biti uključeni u sadržaj. Podrazumijevani wiki nivoi sadržaja su <a href="#config___toptoclevel">toptoclevel</a> i <a href="#config___maxtoclevel">maxtoclevel</a>. Format: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Koliko nivoa da se koristi za PDF oznake? <small>(0=ništa, 5=sve)</small>';
|
||||
$lang['template'] = 'Koji predložak da koristim za oblikovanje PDF-a?';
|
||||
$lang['output'] = 'Kako da bude PDF prikazan korisniku';
|
||||
$lang['output_o_browser'] = 'Prikaži u pregledniku';
|
||||
$lang['output_o_file'] = 'Snimi PDF u datoteku';
|
||||
$lang['usecache'] = 'Da li će PDF-ovi bit priručno pohranjeni ? Tada neće biti provjeravana autorizacija na ubačene slike. Onemogućite ako je to sigurnosni problem.';
|
||||
$lang['usestyles'] = 'Navedite zarezom odvojenu listu dodataka čiji <code>style.css</code> ili <code>screen.css</code> će biti korišteni pri kreiranju PDF-a. Podrazumjevano se koriste samo <code>print.css</code> i <code>pdf.css</code>.';
|
||||
$lang['qrcodesize'] = 'Veličina ugrađenog QR koda (u pikselima <code><i>širina</i><b>x</b><i>visina</i></code>). Prazno za onemogućavanje';
|
||||
$lang['showexportbutton'] = 'Prikaži Ispis u PDF dugme (samo ako je podržano od strane DokuWiki predloška)';
|
10
lib/plugins/dw2pdf/lang/hu/lang.php
Normal file
10
lib/plugins/dw2pdf/lang/hu/lang.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Marina Vladi <deldadam@gmail.com>
|
||||
* @author Imre Nagy <crash2@freemail.hu>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exportálás PDF-be';
|
||||
$lang['tocheader'] = 'Tartalomjegyzék';
|
20
lib/plugins/dw2pdf/lang/hu/settings.php
Normal file
20
lib/plugins/dw2pdf/lang/hu/settings.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Marina Vladi <deldadam@gmail.com>
|
||||
* @author Imre Nagy <crash2@freemail.hu>
|
||||
*/
|
||||
$lang['orientation'] = 'Oldal tájolás';
|
||||
$lang['orientation_o_portrait'] = 'Álló';
|
||||
$lang['orientation_o_landscape'] = 'Fekvő';
|
||||
$lang['maxbookmarks'] = 'Milyen mélységű szakaszok konvertálódjanak PDF-könyvjelzőként? <small>(0 = semmilyen, 5 = mind)</small>';
|
||||
$lang['template'] = 'Melyik sablont használjuk a PDF formátumozásához?';
|
||||
$lang['output'] = 'Hogyan jelenjen meg a PDF a felhasználónak?';
|
||||
$lang['output_o_browser'] = 'Megjelenítés a böngészőben';
|
||||
$lang['output_o_file'] = 'PDF-letöltése';
|
||||
$lang['usecache'] = 'Gyorsítótárazzuk a PDF-et? A beágyazott képek hozzáférési jogosultságai nem kerülnek ellenőrzésre, ezért ne engedélyezzük, ha ez biztonsági problémát okozna.)';
|
||||
$lang['usestyles'] = 'Megadhatjuk azon bővítmények vesszővel elválasztott listáját, amelyek <code>style.css</code> vagy <code>screen.css</code> fájljait kívánjuk használni a PDF-készítéshez. Alapértelmezés szerint csak a <code>print.css</code> és a <code>pdf.css</code> fájlok kerülnek felhasználásra.';
|
||||
$lang['qrcodesize'] = 'Beágyazott QR-kód mérete (pixelben, <code><i>szélesség</i><b>x</b><i>magasság</i></code>). Üres mező: nincs QR-kód.';
|
||||
$lang['showexportbutton'] = 'PDF-exportálás gomb megjelenítése (csak ha a sablonunk támogatja és az engedélyezett sablonok listáján szerepel)';
|
11
lib/plugins/dw2pdf/lang/it/lang.php
Normal file
11
lib/plugins/dw2pdf/lang/it/lang.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Torpedo <dgtorpedo@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Esporta in PDF';
|
||||
$lang['needtitle'] = 'Per favore fornire un titolo.';
|
||||
$lang['empty'] = 'Non hai ancora selzionato delle pagine.';
|
||||
$lang['tocheader'] = 'Sommario';
|
20
lib/plugins/dw2pdf/lang/it/settings.php
Normal file
20
lib/plugins/dw2pdf/lang/it/settings.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Edmondo Di Tucci <snarchio@gmail.com>
|
||||
* @author Torpedo <dgtorpedo@gmail.com>
|
||||
*/
|
||||
$lang['orientation'] = 'Orientazione della pagina.';
|
||||
$lang['orientation_o_portrait'] = 'Verticale';
|
||||
$lang['orientation_o_landscape'] = 'Orizzontale';
|
||||
$lang['maxbookmarks'] = 'Numero massimo di livelli da mostrare nei segnalibri<br>(0=nessuno, 5=tutti)';
|
||||
$lang['template'] = 'Che modello deve essere usato per formattare i PDF?';
|
||||
$lang['output'] = 'Modalità di output';
|
||||
$lang['output_o_browser'] = 'Mostra nel browser';
|
||||
$lang['output_o_file'] = 'Documento da scaricare';
|
||||
$lang['usecache'] = 'Abilitare la cache per i PDF? Le ACL per le immagini incluse non saranno controllate, disabilitare se ci sono problemi di sicurezza.';
|
||||
$lang['usestyles'] = 'Puoi fornire degli elenchi separati da virgola per cui <code>style.css</code> oppure <code>screen.css</code> devono essere usati per generare i PDF. Per default solo <code>print.css</code> e <code>pdf.css</code> sono utilizzati.';
|
||||
$lang['qrcodesize'] = 'Dimensione dei QR code inseriti (in pixels <code><i>width</i><b>x</b><i>height</i></code>). Vuoto per disabilitare';
|
||||
$lang['showexportbutton'] = 'Mostra il pulsante esporta PDF (solo se supportato dal modello in uso)';
|
16
lib/plugins/dw2pdf/lang/ja/lang.php
Normal file
16
lib/plugins/dw2pdf/lang/ja/lang.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author HokkaidoPerson <dosankomali@yahoo.co.jp>
|
||||
* @author Hideaki SAWADA <chuno@live.jp>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'PDF の出力';
|
||||
$lang['needtitle'] = '題名を入力して下さい。';
|
||||
$lang['needns'] = '名前空間を入力して下さい。';
|
||||
$lang['notexist'] = 'お探しのページが見付かりません。';
|
||||
$lang['empty'] = 'ページを選択していません。';
|
||||
$lang['tocheader'] = '目次';
|
||||
$lang['export_ns'] = '名前空間 "%s:" を %s.pdf というファイル名で出力';
|
||||
$lang['forbidden'] = 'ページ %s へのアクセス権限がありません。<br/><br/>利用可能なページで冊子を作成するには、「アクセス出来ないページを飛ばす」オプションをご利用下さい。';
|
25
lib/plugins/dw2pdf/lang/ja/settings.php
Normal file
25
lib/plugins/dw2pdf/lang/ja/settings.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author HokkaidoPerson <dosankomali@yahoo.co.jp>
|
||||
* @author Hideaki SAWADA <chuno@live.jp>
|
||||
*/
|
||||
$lang['pagesize'] = 'mPDF で対応しているページ書式。通常は <code>A4</code> か <code>letter</code>。';
|
||||
$lang['orientation'] = 'ページの向き。';
|
||||
$lang['orientation_o_portrait'] = '縦置き';
|
||||
$lang['orientation_o_landscape'] = '横置き';
|
||||
$lang['font-size'] = '通常のテキストに適切なフォントサイズ。';
|
||||
$lang['doublesided'] = '両面原稿は、奇数ページから始まり、奇数ページと偶数ページが対になります。片面原稿は単独ページの集合です。';
|
||||
$lang['toc'] = 'PDF に自動生成の目次を追加する。(注:奇数ページで開始するために空白ページを追加し目次は常に偶数ページとすることができます。目次自体にページ番号はありません)';
|
||||
$lang['toclevels'] = '目次の対象とする見出しのトップレベルと最大レベルを設定します。デフォルトでは Wiki の目次レベル <a href="#config___toptoclevel">toptoclevel</a> と <a href="#config___maxtoclevel">maxtoclevel</a> を使用します。書式:<code><i><トップ></i>-<i><最大></i></code>';
|
||||
$lang['maxbookmarks'] = 'PDF bookmark に使用するセクションのレベル<small>(0=なし, 5=全部)</small>';
|
||||
$lang['template'] = 'PDF の整形に使用するテンプレート';
|
||||
$lang['output'] = 'PDF の提供方法?';
|
||||
$lang['output_o_browser'] = 'ブラウザ上に表示する';
|
||||
$lang['output_o_file'] = 'PDF ファイルとしてダウンロードする';
|
||||
$lang['usecache'] = 'PDF をキャッシュしますか?埋込み画像は ACL 認証されません。セキュリティ上問題となる場合、無効にして下さい。';
|
||||
$lang['usestyles'] = 'PDF 作成で使用する <code>style.css</code> や <code>screen.css</code> のカンマ区切り一覧。デフォルトでは <code>print.css</code> と <code>pdf.css</code> だけを使用します。';
|
||||
$lang['qrcodesize'] = '埋込み QR コードの大きさ(<code><i>幅</i><b>x</b><i>高さ</i></code> のピクセル)。無効にするためには空にして下さい。';
|
||||
$lang['showexportbutton'] = 'PDF 出力ボタンを表示する(テンプレートが対応してる場合のみ)';
|
14
lib/plugins/dw2pdf/lang/ko/lang.php
Normal file
14
lib/plugins/dw2pdf/lang/ko/lang.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Myeongjin <aranet100@gmail.com>
|
||||
* @author wkdl <chobkwon@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'PDF로 내보내기';
|
||||
$lang['needtitle'] = '제목을 제공하세요.';
|
||||
$lang['needns'] = '존재하는 이름공간을 제공하세요.';
|
||||
$lang['empty'] = '아직 선택한 페이지가 없습니다.';
|
||||
$lang['tocheader'] = '목차';
|
||||
$lang['export_ns'] = '"%s:" 이름공간을 %s.pdf 파일로 내보내기';
|
24
lib/plugins/dw2pdf/lang/ko/settings.php
Normal file
24
lib/plugins/dw2pdf/lang/ko/settings.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Myeongjin <aranet100@gmail.com>
|
||||
* @author wkdl <chobkwon@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'mPDF가 지원하는 페이지 형식. 보통 <code>A4</code>나 <code>letter</code>입니다.';
|
||||
$lang['orientation'] = '페이지 방향.';
|
||||
$lang['orientation_o_portrait'] = '세로';
|
||||
$lang['orientation_o_landscape'] = '가로';
|
||||
$lang['doublesided'] = '양면 문서는 홀수 페이지를 추가하여 시작하고, 짝수 및 홀수 페이지의 쌍을 가지고 있습니다. 단면 문서는 홀수 페이지만을 가지고 있습니다.';
|
||||
$lang['toc'] = 'PDF에 자동 생성된 목차를 추가 (참고: 홀수 페이지에서 시작하기 때문에 빈 페이지를 추가 할 수 있고 목차는 항상 짝수 페이지 수를 포함합니다, 목차 페이지 자체는 페이지 번호가 없습니다)';
|
||||
$lang['toclevels'] = '최고 수준의 목차에 추가되는 최대 수준의 깊이를 정의합니다. 기본 위키 목차 수준 <a href="#config___toptoclevel">toptoclevel</a> 및 <a href="#config___maxtoclevel">maxtoclevel</a>이 사용됩니다. 형식: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = '얼마나 많은 문단 수준을 PDF 책갈피에 사용되어야 합니까? <small>(0=없음, 5=모두)</small>';
|
||||
$lang['template'] = '어떤 템플릿을 PDF 파일의 형식에 사용되어야 합니까?';
|
||||
$lang['output'] = '어떻게 PDF를 사용자에게 제시되어야 합니까?';
|
||||
$lang['output_o_browser'] = '브라우저에서 보기';
|
||||
$lang['output_o_file'] = 'PDF 다운로드';
|
||||
$lang['usecache'] = 'PDF를 캐시해야 합니까? 보안 문제가 있으면 포함된 그림은 ACL을 확인되지 않고, 비활성화합니다.';
|
||||
$lang['usestyles'] = 'PDF 생성에 사용되어야 하는 <code>style.css</code>나 <code>screen.css</code> 중 하나의 플러그인의 쉼표로 구분된 목록을 제공할 수 있습니다. 기본적으로 <code>print.css</code>와 <code>pdf.css</code>만 사용됩니다.';
|
||||
$lang['qrcodesize'] = '포함된 QR 코드의 크기. (픽셀로 <code><i>너비</i><b>x</b><i>높이</i></code>) 비활성화하려면 비우세요';
|
||||
$lang['showexportbutton'] = 'PDF 내보내기 버튼 보이기 (템플릿이 지원하고, 템플릿이 허용할 때만)';
|
19
lib/plugins/dw2pdf/lang/nl/lang.php
Normal file
19
lib/plugins/dw2pdf/lang/nl/lang.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author mark prins <mprins@users.sf.net>
|
||||
* @author Gerrit Uitslag <klapinklapin@gmail.com>
|
||||
* @author Wouter Wijsman <wwijsman@live.nl>
|
||||
* @author Peter van Diest <peter.van.diest@xs4all.nl>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exporteren naar PDF';
|
||||
$lang['needtitle'] = 'Er moet een titel ingevuld worden';
|
||||
$lang['needns'] = 'Geef een bestaande naamruimte.';
|
||||
$lang['notexist'] = 'Gevraagde pagina bestaat niet';
|
||||
$lang['empty'] = 'Er zijn nog geen pagina\'s geselecteerd.';
|
||||
$lang['tocheader'] = 'Inhoudsopgave';
|
||||
$lang['export_ns'] = 'Exporteren namespace "%s:" naar bestand %s.pdf';
|
||||
$lang['forbidden'] = 'Je hebt geen toegang tot deze pagina\'s: %s.<br/><br/>Gebruik de optie \'Verboden pagina\'s overslaan\' om het boek te maken met de beschikbare pagina\'s.';
|
||||
$lang['missingbookcreator'] = 'De Bookcreator Plugin is niet geïnstalleerd of is uitgeschakeld';
|
29
lib/plugins/dw2pdf/lang/nl/settings.php
Normal file
29
lib/plugins/dw2pdf/lang/nl/settings.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author mark prins <mprins@users.sf.net>
|
||||
* @author Gerrit Uitslag <klapinklapin@gmail.com>
|
||||
* @author Wouter Wijsman <wwijsman@live.nl>
|
||||
* @author Johan Wijnker <johan@wijnker.eu>
|
||||
* @author Peter van Diest <peter.van.diest@xs4all.nl>
|
||||
*/
|
||||
$lang['pagesize'] = 'Het pagina formaat zoals dat door mPDF wordt ondersteund. Normaliter <code>A4</code> of <code>letter</code>.';
|
||||
$lang['orientation'] = 'Pagina oriëntatie.';
|
||||
$lang['orientation_o_portrait'] = 'Staand';
|
||||
$lang['orientation_o_landscape'] = 'Liggend';
|
||||
$lang['font-size'] = 'De tekstgrootte voor normale tekst in pt.';
|
||||
$lang['doublesided'] = 'Dubbelzijdige documenten starten met oneven pagina, en heeft paren van oneven en even pagina\'s. Enkelzijdig document heeft alleen oneven pagina\'s.';
|
||||
$lang['toc'] = 'Voeg een automatisch gegenereerde inhoudsopgave toe aan PDF (let op: Dit kan lege pagina\'s toevoegen indien gestart op een oneven genummerde pagina. De inhoudsopgave wordt altijd toegevoegd op een even genummerde pagina. Pagina\'s van de inhoudsopgave krijgen geen paginanummers)';
|
||||
$lang['toclevels'] = 'Definieer bovenste niveau en maximaal onderliggende niveau\'s welke aan de inhoudsopgave worden toegevoegd.
|
||||
Standaard worden de wiki niveau\'s <a href="#config___toptoclevel"> en <a href="#config___maxtoclevel">maxtoclevel</a> gebruikt. Formaat: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Hoe veel paragraafniveau\'s moeten worden gebruikt in de PDF bladwijzers? <small>(0=geen, 5=alle)</small>';
|
||||
$lang['template'] = 'Welke template moet worden gebruikt bij het creëren van PDF\'s?';
|
||||
$lang['output'] = 'Hoe moet de PDF worden gepresenteerd aan de gebruiker?';
|
||||
$lang['output_o_browser'] = 'Weergeven in de browser';
|
||||
$lang['output_o_file'] = 'Download de PDF';
|
||||
$lang['usecache'] = 'Moeten PDF\'s gebufferd worden? Ingebedde afbeeldingen zullen niet op toegangsrechten worden gecontroleerd, schakel bufferen uit als dit een beveiligingsprobleem oplevert voor jou.';
|
||||
$lang['usestyles'] = 'Je kunt een komma gescheiden lijst van plugins opgeven waarvan de <code>style.css</code> of <code>screen.css</code> moeten worden gebruikt bij het genereren van de PDF. Standaard worden alleen <code>print.css</code> en <code>pdf.css</code> gebruikt.';
|
||||
$lang['qrcodesize'] = 'Afmetingen van de ingebedde QR code (in pixels <code><i>breedte</i><b>x</b><i>hoogte</i></code>). Uit te schakelen door leeglaten.';
|
||||
$lang['showexportbutton'] = 'PDF export knop weergeven (alleen als je template dat ondersteund)';
|
14
lib/plugins/dw2pdf/lang/no/lang.php
Normal file
14
lib/plugins/dw2pdf/lang/no/lang.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Christopher Schive <chschive@frisurf.no>
|
||||
* @author Daniel Raknes <rada@jbv.no>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Eksporter til PDF';
|
||||
$lang['needtitle'] = 'Legg inn en tittel.';
|
||||
$lang['needns'] = 'Legg inn et eksisterende navnerom.';
|
||||
$lang['empty'] = 'Du har ikke valgt noen sider ennå.';
|
||||
$lang['tocheader'] = 'Innholdsfortegnelse';
|
||||
$lang['export_ns'] = 'Eksporter navnerom "%s:" til filen %s.pdf';
|
24
lib/plugins/dw2pdf/lang/no/settings.php
Normal file
24
lib/plugins/dw2pdf/lang/no/settings.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Christopher Schive <chschive@frisurf.no>
|
||||
* @author Daniel Raknes <rada@jbv.no>
|
||||
*/
|
||||
$lang['pagesize'] = 'Sideformatet som fungerer med mPDF. Vanligvis <code>A4</code> eller <code>brev</code>';
|
||||
$lang['orientation'] = 'Sideretning.';
|
||||
$lang['orientation_o_portrait'] = 'Portrett';
|
||||
$lang['orientation_o_landscape'] = 'Landskap';
|
||||
$lang['doublesided'] = 'Dobbelt-sidige dokumenter starter på oddetall, og har sider med både partall og oddetall. En-sidige dokumenter har kun oddetalls-sider.';
|
||||
$lang['toc'] = 'Legg til en autogenerert innholdsfortegnelse i PDF (NB! Blanke sider kan legges til for å starte på en oddetalls-side og innholdsfortegnelsen skal alltid legges alltid inn på partals-sider, innholdsfortegnelsen har ikke eget sidenummer) ';
|
||||
$lang['toclevels'] = 'Definer toppnivå og maksimal nivådybde som skal legges inn i innholdsfortegnelsen. Standard nivå for innholdsfortegnelse er <a href="#config___toptoclevel">toppnivå</a> og <a href="#config___maxtoclevel">max nivåer</a> brukes. Format: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Hvor mange seksjonsnivåer skal benyttes i PDF-bokmerkene? <small>(0=ingen, 5=alle)</small>';
|
||||
$lang['template'] = 'Hvilken mal skal brukes for formattering av PDF-er?';
|
||||
$lang['output'] = 'Hvordan skal PDF-filen presenteres for brukeren?';
|
||||
$lang['output_o_browser'] = 'Vis i nettleseren';
|
||||
$lang['output_o_file'] = 'Last ned PDF-filen';
|
||||
$lang['usecache'] = 'Skal PDF-er caches? Innkapslede bilder blir da ikke kontrollert av ACL, deaktivér hvis det er et sikkerhetsproblem for deg.';
|
||||
$lang['usestyles'] = 'Du kan angi en kommaseparert liste med tillegg hvor <code>style.css</code> eller <code>screen.css</code> skal benyttes til generering av PDF. Som standard benyttes kun <code>print.css</code> and <code>pdf.css</code>.';
|
||||
$lang['qrcodesize'] = 'Størrelse på innkapslet QR-kode (i piksler <code><i>bredde</i><b>x</b><i>høyde</i></code>). Ingen verdi vil deaktivere.';
|
||||
$lang['showexportbutton'] = 'Vis PDF-eksportknapp (bare når det er støttet av valgt mal)';
|
15
lib/plugins/dw2pdf/lang/pt-br/lang.php
Normal file
15
lib/plugins/dw2pdf/lang/pt-br/lang.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Schopf <pschopf@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exportar para PDF';
|
||||
$lang['needtitle'] = 'Digite um título.';
|
||||
$lang['needns'] = 'Digite um nome de espaço existente.';
|
||||
$lang['notexist'] = 'A página solicitada não existe.';
|
||||
$lang['empty'] = 'Você não selecionou nenhuma página.';
|
||||
$lang['tocheader'] = 'Índice';
|
||||
$lang['export_ns'] = 'Exportar nome de espaço "%s:" para o arquivo %s.pdf';
|
||||
$lang['forbidden'] = 'Você não tem acesso a essas páginas: %s.<br/><br/>Use a opção \'Ignorar Páginas Proibidas\' para criar seu livro com as páginas disponíveis.';
|
25
lib/plugins/dw2pdf/lang/pt-br/settings.php
Normal file
25
lib/plugins/dw2pdf/lang/pt-br/settings.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Schopf <pschopf@gmail.com>
|
||||
* @author Juliano Marconi Lanigra <juliano.marconi@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'O formato de página como suportado pelo mPDF. Normalmente <code>A4</code> ou <code>carta</code>.';
|
||||
$lang['orientation'] = 'A orientação da página.';
|
||||
$lang['orientation_o_portrait'] = 'Retrato';
|
||||
$lang['orientation_o_landscape'] = 'Paisagem';
|
||||
$lang['font-size'] = 'O tamanho da fonte para texto normal em pontos.';
|
||||
$lang['doublesided'] = 'Um documento frente e verso começa a adicionar página ímpar e possui pares de páginas pares e ímpares. O documento de lado único possui apenas páginas ímpares.';
|
||||
$lang['toc'] = 'Adicionar um índice gerado automaticamente em PDF (observação: É possível adicionar páginas em branco devido ao início de uma página ímpar e o Índice sempre incluir número par de páginas. As páginas do Índice não possuem números de página)';
|
||||
$lang['toclevels'] = 'Definir o nível superior e a profundidade máxima que são adicionados ao índice. Níveis padrões <a href="#config___toptoclevel">toptoclevel</a> e <a href="#config___maxtoclevel">maxtoclevel</a> são usados. Formato: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Quantos níveis de seções devem ser usados nos marcadores PDF? <small>(0=none, 5=all)</small>';
|
||||
$lang['template'] = 'Qual modelo deve ser usado para formatar os PDFs?';
|
||||
$lang['output'] = 'Como o PDF deve ser apresentado ao usuário?';
|
||||
$lang['output_o_browser'] = 'Mostrar no navegador';
|
||||
$lang['output_o_file'] = 'Fazer o download do PDF';
|
||||
$lang['usecache'] = 'Os PDFs devem ser armazenados em cache? Imagens incorporadas não serão checadas com ACL posteriormente, desative se isso é um problema de segurança para você.';
|
||||
$lang['usestyles'] = 'Você pode gerar uma lista de plugins separadas por vírgula nos quais <code>style.css</code> ou <code>screen.css</code> devem ser usadas para a gerar um PDF.';
|
||||
$lang['qrcodesize'] = 'Tamanho do QR code incorporado (em pixels <code><i>largura</i><b>x</b><i>altura</i></code>). Vazio para desativar';
|
||||
$lang['showexportbutton'] = 'Mostrar botão de exportação de PDF (se suportado pelo modelo)';
|
16
lib/plugins/dw2pdf/lang/pt/lang.php
Normal file
16
lib/plugins/dw2pdf/lang/pt/lang.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Paulo Schopf <pschopf@gmail.com>
|
||||
* @author Rodrigo Pimenta <rodrigo.pimenta@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exportar para PDF';
|
||||
$lang['needtitle'] = 'Favor fornecer um título.';
|
||||
$lang['needns'] = 'Favor fornecer um namespace existente.';
|
||||
$lang['notexist'] = 'A página solicitada não existe.';
|
||||
$lang['empty'] = 'Você ainda não selecionou páginas.';
|
||||
$lang['tocheader'] = 'Tabela de Conteúdos';
|
||||
$lang['export_ns'] = 'Exportar o namespace "%s:" para arquivo %s.pdf';
|
||||
$lang['forbidden'] = 'Você não tem acesso a estas páginas: %s.<br/><br/>Use a opção \'Ignorar Páginas Proibidas\' para criar seu livro com as páginas disponíveis.';
|
25
lib/plugins/dw2pdf/lang/pt/settings.php
Normal file
25
lib/plugins/dw2pdf/lang/pt/settings.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Paulo Schopf <pschopf@gmail.com>
|
||||
* @author Rodrigo Pimenta <rodrigo.pimenta@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'O formato da página conforme suportado pelo mPDF. Geralmente <code>A4</code> ou <code>Carta</code>.';
|
||||
$lang['orientation'] = 'Orientação da Página.';
|
||||
$lang['orientation_o_portrait'] = 'Retrato';
|
||||
$lang['orientation_o_landscape'] = 'Paisagem';
|
||||
$lang['font-size'] = 'O tamanho da fonte para textos normais.';
|
||||
$lang['doublesided'] = 'O documento frente e verso começa adicionando uma página ímpar e possui pares de páginas pares e ímpares. O documento de lado único tem apenas páginas ímpares.';
|
||||
$lang['toc'] = 'Adiciona uma Tabela de Conteúdo gerada automaticamente (atenção: pode adicionar páginas em branco se iniciar em uma página ímpar e sempre incluirá no número par de páginas. As páginas ToC em si não tem números de página)';
|
||||
$lang['toclevels'] = 'Define o nível superior e a profundidade máxima que são adicionados ao ToC. Os níveis padrão do wiki <a href="#config___toptoclevel">toptoclevel</a> e <a href="#config___maxtoclevel">maxtoclevel</a> são usados. Formato: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Quantos níveis de seção podem ser utilizados nos bookmarks do PDF? <small>(0=nenhum, 5=todos)</small>';
|
||||
$lang['template'] = 'Qual template será utilizado para formatação dos PDFs?';
|
||||
$lang['output'] = 'Como o PDF será apresentado ao usuário?';
|
||||
$lang['output_o_browser'] = 'Mostrar no browser';
|
||||
$lang['output_o_file'] = 'Download do PDF';
|
||||
$lang['usecache'] = 'Os PDFs podem estarão em cache? Imagens internas não serão checadas pela ACL, então deixe desabilitado se deseja esta segurança para você.';
|
||||
$lang['usestyles'] = 'Você pode fornecer uma lista de plugins, separados por vírgulas, com cada <code>style.css</code> ou <code>screen.css</code> que pode ser utilizado na geração do PDF. Por default somente <code>print.css</code> e <code>pdf.css</code> são utilizados.';
|
||||
$lang['qrcodesize'] = 'Tamanho do Código QR gerado internamente (em pixels <code><i>width</i><b>x</b><i>height</i></code>). Vazio desabilita o recurso.';
|
||||
$lang['showexportbutton'] = 'Mostrar o botão de Exportar PDF (somente quando suportado pelo template)';
|
19
lib/plugins/dw2pdf/lang/ru/lang.php
Normal file
19
lib/plugins/dw2pdf/lang/ru/lang.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author FOTONTV <obraztsov568@gmail.com>
|
||||
* @author Yuriy Skalko <yuriy.skalko@gmail.com>
|
||||
* @author Vasilyy Balyasnyy <v.balyasnyy@gmail.com>
|
||||
* @author RainbowSpike <1@2.ru>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Экспорт в PDF';
|
||||
$lang['needtitle'] = 'Пожалуйста, укажите заголовок.';
|
||||
$lang['needns'] = 'Пожалуйста, укажите существующее пространство имён.';
|
||||
$lang['notexist'] = 'Запрошенная страница не существует.';
|
||||
$lang['empty'] = 'У вас ещё нет выделенных страниц.';
|
||||
$lang['tocheader'] = 'Содержание';
|
||||
$lang['export_ns'] = 'Экспортировать папку %s в файл %s.pdf';
|
||||
$lang['forbidden'] = 'У вас нет доступа к этим страницам: %s.<br/><br/>Используйте опцию "Пропустить запрещенные страницы", чтобы создать книгу с доступными страницами.';
|
||||
$lang['missingbookcreator'] = 'Плагин Bookcreator не установлен или отключен';
|
26
lib/plugins/dw2pdf/lang/ru/settings.php
Normal file
26
lib/plugins/dw2pdf/lang/ru/settings.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Yuriy Skalko <yuriy.skalko@gmail.com>
|
||||
* @author Vasilyy Balyasnyy <v.balyasnyy@gmail.com>
|
||||
* @author RainbowSpike <1@2.ru>
|
||||
*/
|
||||
$lang['pagesize'] = 'Формат страницы, поддерживаемый mPDF. Обычно <code>A4</code> или <code>letter</code>.';
|
||||
$lang['orientation'] = 'Ориентация страницы.';
|
||||
$lang['orientation_o_portrait'] = 'Книжная';
|
||||
$lang['orientation_o_landscape'] = 'Альбомная';
|
||||
$lang['font-size'] = 'Размер шрифта для обычного текста в пунктах.';
|
||||
$lang['doublesided'] = 'Двухсторонний документ начинается с нечётной страницы и далее чётные-нечётные пары. Односторонний документ имеет только нечётные страницы.';
|
||||
$lang['toc'] = 'Добавить автосодержание в PDF (:!: Можно добавить пустые страницы, чтобы начиналось с нечетной страницы и содержание всегда включало четное число страниц, На странице содержания номера нет)';
|
||||
$lang['toclevels'] = 'Определить высший уровень и максимальное число уровней для включения в содержание. По умолчанию применяются настройки <a href="#config___toptoclevel">toptoclevel</a> и <a href="#config___maxtoclevel">maxtoclevel</a>. Формат: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Сколько уровней вкладок должно быть использовано для закладок PDF? <small>(0=none, 5=all)</small>';
|
||||
$lang['template'] = 'Какой шаблон должен быть выбран для форматирования PDF?';
|
||||
$lang['output'] = 'Как PDF должен быть предоставлен пользователю?';
|
||||
$lang['output_o_browser'] = 'Показать в браузере';
|
||||
$lang['output_o_file'] = 'Скачать PDF';
|
||||
$lang['usecache'] = 'Кэшировать PDF? Встроенные картинки могут быть не проверены ACL, отключить, если это не безопасно для вас.';
|
||||
$lang['usestyles'] = 'Вы можете указать разделённый запятыми список плагинов, <code>style.css</code> или <code>screen.css</code> которых будут использованы для генерации PDF. По умолчанию используются только <code>print.css</code> и <code>pdf.css</code>.';
|
||||
$lang['qrcodesize'] = 'Размер встроенного QR кода (в пикселях <code><i>ширина</i><b>x</b><i>высота</i></code>). Пропустить, если хотите отключить.';
|
||||
$lang['showexportbutton'] = 'Показать кнопку экспорта PDF (если поддерживается текущим шаблоном)';
|
10
lib/plugins/dw2pdf/lang/sk/lang.php
Normal file
10
lib/plugins/dw2pdf/lang/sk/lang.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
$lang['export_pdf_button'] = "Uložiť do PDF";
|
||||
$lang['needtitle'] = "Prosím, zadajte názov.";
|
||||
$lang['needns'] = "Prosím, zadajte existujúci menný priestor.";
|
||||
$lang['notexist'] = "Požadovaná stránka neexistuje.";
|
||||
$lang['empty'] = "Ešte ste nevybrali žiadne stránky.";
|
||||
$lang['tocheader'] = "Obsah";
|
||||
$lang['export_ns'] = 'Uložiť menný priestor "%s:" do súboru %s.pdf';
|
||||
$lang['forbidden'] = "K týmto stránkam nemáte prístup: %s.<br/><br/>Na vytvorenie knihy z dostupných strán použite možnosť 'Preskočiť zakázané stránky'.";
|
26
lib/plugins/dw2pdf/lang/sk/settings.php
Normal file
26
lib/plugins/dw2pdf/lang/sk/settings.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Slovak language file
|
||||
*
|
||||
* @author Tibor Repček <tiborepcek@gmail.com>
|
||||
*/
|
||||
|
||||
// for the configuration manager
|
||||
|
||||
$lang['pagesize'] = 'Formát stránky ako podporuje mPDF. Väčšinou <code>A4</code> alebo <code>letter</code>.';
|
||||
$lang['orientation'] = 'Orientácia stránky.';
|
||||
$lang['orientation_o_portrait'] = 'Na výšku';
|
||||
$lang['orientation_o_landscape'] = 'Na šírku';
|
||||
$lang['font-size'] = 'Veľkosť písma pre bežný text v bodoch.';
|
||||
$lang['doublesided'] = 'Obojstranný dokument začína nepárnou stranou a má páry párnych a nepárnych strán. Jednostranný dokument má iba nepárne stránky.';
|
||||
$lang['toc'] = 'Pridať do PDF automaticky vytvorený obsah. Poznámka: Môže pridať prázdne strany kvôli začatiu nepárnou stranou a obsah vždy zahŕňa párny počet strán. Obsah samotný nemá číslo strany.';
|
||||
$lang['toclevels'] = 'Zadajte najvyššiu a maximálnu hĺbku vnorenia položiek obsahu. Používajú sa prednastavené hĺbky obsahu <a href="#config___toptoclevel">najvyššieho</a> a <a href="#config___maxtoclevel">maximálneho</a>. Formát: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Koľko úrovní má byť použitých v PDF záložkách? <small>(0 = žiadne, 5 = všetky)</small>';
|
||||
$lang['template'] = 'Ktorá téma má byť použitá na formátovanie PDF dokumentov?';
|
||||
$lang['output'] = 'Ako sa má PDF dokument používateľovi prezentovať?';
|
||||
$lang['output_o_browser'] = 'Zobraziť v prehliadači';
|
||||
$lang['output_o_file'] = 'Stiahnuť PDF súbor';
|
||||
$lang['usecache'] = 'Majú sa PDF súbory ukladať do vyrovnávacej pamäte? Vložené obrázky nebudú skontrolované cez ACL. Zakážte, ak je to pre vás bezpečnostné riziko.';
|
||||
$lang['usestyles'] = 'Môžete zadať čiarkou oddelený zoznam rozšírení (pluginov), na ktoré sa pri generovaní PDF dokumentu bude vzťahovať <code>style.css</code> alebo <code>screen.css</code>. Prednastavená možnosť je, že sa používajú iba <code>print.css</code> a <code>pdf.css</code>.';
|
||||
$lang['qrcodesize'] = 'Veľkosť vloženého QR kódu (v pixeloch <code><i><šírka></i><b>x</b><i><výška></i></code>). Nevypĺňajte, ak chcete QR kód zakázať.';
|
||||
$lang['showexportbutton'] = 'Zobraziť tlačidlo na export do PDF (iba ak podporuje vaša téma)';
|
14
lib/plugins/dw2pdf/lang/sr/lang.php
Normal file
14
lib/plugins/dw2pdf/lang/sr/lang.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Марко М. Костић <marko.m.kostic@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Извези у ПДФ';
|
||||
$lang['needtitle'] = 'Наведите наслов.';
|
||||
$lang['needns'] = 'Наведите већ постојећи именски простор.';
|
||||
$lang['empty'] = 'Немате изабраних страница још.';
|
||||
$lang['tocheader'] = 'Садржај';
|
||||
$lang['export_ns'] = 'Извези именски простор „%s:“ у датотеку %s.pdf';
|
||||
$lang['forbidden'] = 'Немате приступ овим страницама: %s.<br/><br/>Користите опцију „Прескочи забрањене стране“ да бисте направили књигу са доступним странама.';
|
20
lib/plugins/dw2pdf/lang/sr/settings.php
Normal file
20
lib/plugins/dw2pdf/lang/sr/settings.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Марко М. Костић <marko.m.kostic@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'Формат странице као што је подржан у mPDF-у. Обично <code>A4</code> или <code>letter</code>.';
|
||||
$lang['orientation'] = 'Усмерење странице.';
|
||||
$lang['orientation_o_portrait'] = 'Усправно';
|
||||
$lang['orientation_o_landscape'] = 'Положено';
|
||||
$lang['font-size'] = 'Величина фонта у тачкама за обичан текст.';
|
||||
$lang['doublesided'] = 'Двостранични документи крећу на непарној страни и имају парове непарних и парних страница. Једностранични документи имају само непарне странице.';
|
||||
$lang['toc'] = 'Додај самонаправљени садржај у ПДФ (напомена: може додати празне стране да би се кренули са непарном страном и садржај ће увек бити када постоји непаран број страница, сам садржај нема бројеве страница)';
|
||||
$lang['template'] = 'Који шаблон се треба користити приликом форматирања ПДФ-ова?';
|
||||
$lang['output'] = 'Како ПДФ треба представити кориснику?';
|
||||
$lang['output_o_browser'] = 'Прикажи у прегледачу';
|
||||
$lang['output_o_file'] = 'Преузми ПДФ';
|
||||
$lang['usecache'] = 'Да ли треба кеширати ПДФ? Угнежђене слике онда неће бити проверене по списку контроле приступа те искључите уколико је то безбедносни ризик за вас.';
|
||||
$lang['showexportbutton'] = 'Прикажи дугме за извоз ПДФ-а (само ако је подржано у вашем шаблону)';
|
15
lib/plugins/dw2pdf/lang/sv/lang.php
Normal file
15
lib/plugins/dw2pdf/lang/sv/lang.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Tor Härnqvist <tor@harnqvist.se>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Exportera till PDF';
|
||||
$lang['needtitle'] = 'Vad god fyll i rubrik';
|
||||
$lang['needns'] = 'Var god fyll i en existerande namnrymd';
|
||||
$lang['notexist'] = 'Begärd sida existerar inte.';
|
||||
$lang['empty'] = 'Du har inte valt några sidor än.';
|
||||
$lang['tocheader'] = 'Innehållsföreteckning';
|
||||
$lang['export_ns'] = 'Exportera namnrymd "%s:" till filen %s.pdf';
|
||||
$lang['forbidden'] = 'Du har inte tillträde till följande sidor: %s.<br/><br/>Använd inställningen \'Uteslut förbjudna sidor\' för att skapa din bok med de tillgängliga sidorna.';
|
24
lib/plugins/dw2pdf/lang/sv/settings.php
Normal file
24
lib/plugins/dw2pdf/lang/sv/settings.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Tor Härnqvist <tor@harnqvist.se>
|
||||
*/
|
||||
$lang['pagesize'] = 'Sidformatet såsom det stöds av mPDF. Normal <code>A4</code> eller <code>letter</code>.';
|
||||
$lang['orientation'] = 'Sidorientering';
|
||||
$lang['orientation_o_portrait'] = 'Porträtt';
|
||||
$lang['orientation_o_landscape'] = 'Landskap';
|
||||
$lang['font-size'] = 'Teckenstorlek för brödtext angivet i punkter';
|
||||
$lang['doublesided'] = 'Dubbelsidigt dokument inled med udda sida och har par av udda eller jämna sidor. Enkelsidiga dokument har bara udda sidor.';
|
||||
$lang['toc'] = 'Lägg till en automatiskt genererad innehållsförteckning (notera att detta kan lägga till blanksidor då det inleds på udda nummer och innehållsförteckningen alltid inkluderas på jämna sidnummer, innehållsförteckningssidor i sig har inga sidnummer) ';
|
||||
$lang['toclevels'] = 'Definiera översta nivån och maximalt nivådjup som läggs till i innehållsförteckning. Standard innehållsförteckningsnivåer för wiki<a href="#config___toptoclevel">toptoclevel</a> och <a href="#config___maxtoclevel">maxtoclevel</a> används. Format: <code><i><top></i>-<i><max></i></code>';
|
||||
$lang['maxbookmarks'] = 'Hur många nivåer ska användas i PDF-bokmärken? <small>(0=inga, 5=alla)</small>';
|
||||
$lang['template'] = 'Vilket templat ska användas för formatering av PDF?';
|
||||
$lang['output'] = 'Hur ska PDF visas för användaren?';
|
||||
$lang['output_o_browser'] = 'Visa i webbläsare';
|
||||
$lang['output_o_file'] = 'Ladda ner PDF';
|
||||
$lang['usecache'] = 'Skall PDF-filerna cachas? Inbäddade bilder kommer då inte att ACL-kontrolleras, avaktivera om det innebär säkerhetsbetänkligheter för dig.';
|
||||
$lang['usestyles'] = 'Du kan specificera en kommaseparerad lista på de plugin som <code>style.css</code> eller <code>screen.css</code> skall använda för PDF-generering. Normalt används bara <code>print.css</code> och <code>pdf.css</code>.';
|
||||
$lang['qrcodesize'] = 'Storlek på inbäddad QR-kod (i pixlar <code><i><bredd></i><b>x</b><i><höjd></i></code>). Lämna tom för att avaktivera';
|
||||
$lang['showexportbutton'] = 'Visa PDF-exportknapp (bara när det stöds av ditt templat)';
|
15
lib/plugins/dw2pdf/lang/vi/lang.php
Normal file
15
lib/plugins/dw2pdf/lang/vi/lang.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Thien Hau <thienhau.9a14@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = 'Xuất ra PDF';
|
||||
$lang['needtitle'] = 'Vui lòng cung cấp tiêu đề.';
|
||||
$lang['needns'] = 'Vui lòng cung cấp một không gian tên hiện có.';
|
||||
$lang['notexist'] = 'Trang được yêu cầu không tồn tại.';
|
||||
$lang['empty'] = 'Bạn chưa chọn trang nào.';
|
||||
$lang['tocheader'] = 'Mục lục';
|
||||
$lang['export_ns'] = 'Xuất không gian tên "%s:" ra tập tin %s.pdf';
|
||||
$lang['forbidden'] = 'Bạn không có quyền truy cập vào các trang này: %s.<br/><br/>Dùng tùy chọn \'Bỏ qua các trang bị cấm\' để tạo sách của bạn với các trang có sẵn.';
|
24
lib/plugins/dw2pdf/lang/vi/settings.php
Normal file
24
lib/plugins/dw2pdf/lang/vi/settings.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author Thien Hau <thienhau.9a14@gmail.com>
|
||||
*/
|
||||
$lang['pagesize'] = 'Định dạng trang được hỗ trợ bởi mPDF. Thường là <code>A4</code> hoặc <code>letter</code>.';
|
||||
$lang['orientation'] = 'Hướng trang';
|
||||
$lang['orientation_o_portrait'] = 'Dọc';
|
||||
$lang['orientation_o_landscape'] = 'Ngang';
|
||||
$lang['font-size'] = 'Cỡ chữ cho văn bản bình thường theo điểm.';
|
||||
$lang['doublesided'] = 'Tài liệu hai mặt bắt đầu thêm trang lẻ và có các cặp trang chẵn và lẻ. Tài liệu một mặt chỉ có các trang lẻ.';
|
||||
$lang['toc'] = 'Thêm Mục lục được tạo tự động vào PDF (lưu ý: Có thể thêm các trang trống do bắt đầu tại một trang lẻ và Mục lục luôn bao gồm số trang chẵn, bản thân các trang Mục lục không có số trang)';
|
||||
$lang['toclevels'] = 'Xác định cấp cao nhất và cấp độ sâu tối đa được thêm vào Mục lục. Các mức Mục lục mặc định của wiki là <a href="#config___toptoclevel">toptoclevel</a> và <a href="#config___maxtoclevel">maxtoclevel</a> được sử dụng. Định dạng: <code><i><hàng đầu></i>-<i><tối đa></i></code>';
|
||||
$lang['maxbookmarks'] = 'Có bao nhiêu cấp độ đầu đề được sử dụng trong dấu trang PDF?<small>(0=không có, 5=tất cả)</small>';
|
||||
$lang['template'] = 'Chủ đề nào nên được sử dụng để định dạng các tập tin PDF?';
|
||||
$lang['output'] = 'PDF nên được trình bày cho người dùng như thế nào?';
|
||||
$lang['output_o_browser'] = 'Xem trong trình duyệt';
|
||||
$lang['output_o_file'] = 'Tải về PDF';
|
||||
$lang['usecache'] = 'PDF có nên được lưu trữ? Sau đó, hình ảnh nhúng sẽ không được ACL kiểm tra, vô hiệu hóa nếu đó là vấn đề bảo mật cho bạn.';
|
||||
$lang['usestyles'] = 'Bạn có thể đưa ra một danh sách các plugin được phân tách bằng dấu phẩy của <code>style.css</code> hoặc <code>screen.css</code> nên được sử dụng để tạo PDF. Theo mặc định chỉ có <code>print.css</code> và <code>pdf.css</code> được sử dụng';
|
||||
$lang['qrcodesize'] = 'Kích thước của mã QR nhúng (tính bằng <code><i><chiều rộng></i><b>x</b><i><chiều cao></i></code> pixel). Để trống để vô hiệu hóa';
|
||||
$lang['showexportbutton'] = 'Hiển thị nút xuất PDF (chỉ khi được hỗ trợ bởi chủ đề của bạn)';
|
11
lib/plugins/dw2pdf/lang/zh-tw/lang.php
Normal file
11
lib/plugins/dw2pdf/lang/zh-tw/lang.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author lioujheyu <lioujheyu@gmail.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = '輸出PDF檔案';
|
||||
$lang['needtitle'] = '請提供一個抬頭名稱';
|
||||
$lang['needns'] = '請提供一個以存在的命名空間';
|
||||
$lang['empty'] = '你尚未選擇頁面。';
|
14
lib/plugins/dw2pdf/lang/zh-tw/settings.php
Normal file
14
lib/plugins/dw2pdf/lang/zh-tw/settings.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author lioujheyu <lioujheyu@gmail.com>
|
||||
*/
|
||||
$lang['output'] = 'PDF將以何種方式呈現在使用者之前?';
|
||||
$lang['output_o_browser'] = '以瀏覽器開啟';
|
||||
$lang['output_o_file'] = '下載PDF檔案';
|
||||
$lang['orientation'] = '頁面方向';
|
||||
$lang['orientation_o_portrait'] = '直式';
|
||||
$lang['orientation_o_landscape'] = '橫式';
|
||||
$lang['showexportbutton'] = '顯示輸出PDF按鈕 (只在模板支援時才顯示)';
|
14
lib/plugins/dw2pdf/lang/zh/lang.php
Normal file
14
lib/plugins/dw2pdf/lang/zh/lang.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author nero <dreamfox225@hotmail.com>
|
||||
* @author oott123 <ip.192.168.1.1@qq.com>
|
||||
* @author maddie <2934784245@qq.com>
|
||||
*/
|
||||
$lang['export_pdf_button'] = '导出 PDF';
|
||||
$lang['needtitle'] = '需要指定标题';
|
||||
$lang['needns'] = '请提供现有命名空间';
|
||||
$lang['notexist'] = '请求的页面不存在。';
|
||||
$lang['empty'] = '您还没有选择的页面。';
|
21
lib/plugins/dw2pdf/lang/zh/settings.php
Normal file
21
lib/plugins/dw2pdf/lang/zh/settings.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*
|
||||
* @author nero <dreamfox225@hotmail.com>
|
||||
* @author Mofe <mofe@me.com>
|
||||
* @author oott123 <ip.192.168.1.1@qq.com>
|
||||
*/
|
||||
$lang['orientation'] = '页面方向。';
|
||||
$lang['orientation_o_portrait'] = '竖向';
|
||||
$lang['orientation_o_landscape'] = '横向';
|
||||
$lang['maxbookmarks'] = 'PDF 文件中需要有多少层书签?<small>(0:没有;5:全部)</small>';
|
||||
$lang['template'] = '使用哪个模板的格式来排版PDF的内容?';
|
||||
$lang['output'] = '怎样显示PDF文件?';
|
||||
$lang['output_o_browser'] = '在浏览器中显示';
|
||||
$lang['output_o_file'] = '下载PDF到本地';
|
||||
$lang['usecache'] = '开启 PDF 文件缓存?内嵌的图片将不会受 ACL 权限限制。如果你担心安全问题,请将其禁用。';
|
||||
$lang['usestyles'] = 'PDF 生成过程中的 <code>style.css</code> 或者 <code>screen.css</code> ,以英文逗号,分割。默认只有<code>print.css</code> 和 <code>pdf.css</code> 被使用。';
|
||||
$lang['qrcodesize'] = '二维码尺寸,留空禁用。(<code><i>宽</i><b>x</b><i>高</i></code> 单位:像素)';
|
||||
$lang['showexportbutton'] = '显示导出 PDF 按钮。(只有在模版支持并在白名单里的时候才能使用)';
|
BIN
lib/plugins/dw2pdf/pagetools-pdfexport-sprite.png
Normal file
BIN
lib/plugins/dw2pdf/pagetools-pdfexport-sprite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
8
lib/plugins/dw2pdf/plugin.info.txt
Normal file
8
lib/plugins/dw2pdf/plugin.info.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
base dw2pdf
|
||||
author Andreas Gohr and Luigi Micco
|
||||
email l.micco@tiscali.it
|
||||
date 2021-07-22
|
||||
name Dw2Pdf plugin
|
||||
desc DokuWiki to PDF converter
|
||||
url https://www.dokuwiki.org/plugin:dw2pdf
|
||||
|
239
lib/plugins/dw2pdf/renderer.php
Normal file
239
lib/plugins/dw2pdf/renderer.php
Normal file
@@ -0,0 +1,239 @@
|
||||
<?php
|
||||
/**
|
||||
* DokuWiki Plugin dw2pdf (Renderer Component)
|
||||
*
|
||||
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
|
||||
* @author Andreas Gohr <gohr@cosmocode.de>
|
||||
*/
|
||||
|
||||
// must be run within Dokuwiki
|
||||
if(!defined('DOKU_INC')) die();
|
||||
|
||||
/**
|
||||
* Render xhtml suitable as input for mpdf library
|
||||
*/
|
||||
class renderer_plugin_dw2pdf extends Doku_Renderer_xhtml {
|
||||
|
||||
private $lastHeaderLevel = -1;
|
||||
private $originalHeaderLevel = 0;
|
||||
private $difference = 0;
|
||||
|
||||
/**
|
||||
* Stores action instance
|
||||
*
|
||||
* @var action_plugin_dw2pdf
|
||||
*/
|
||||
private $actioninstance = null;
|
||||
|
||||
/**
|
||||
* load action plugin instance
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->actioninstance = plugin_load('action', 'dw2pdf');
|
||||
}
|
||||
|
||||
public function document_start() {
|
||||
global $ID;
|
||||
|
||||
parent::document_start();
|
||||
|
||||
//ancher for rewritten links to included pages
|
||||
$check = false;
|
||||
$pid = sectionID($ID, $check);
|
||||
|
||||
$this->doc .= "<a name=\"{$pid}__\">";
|
||||
$this->doc .= "</a>";
|
||||
}
|
||||
|
||||
/**
|
||||
* Make available as XHTML replacement renderer
|
||||
*
|
||||
* @param $format
|
||||
* @return bool
|
||||
*/
|
||||
public function canRender($format) {
|
||||
if($format == 'xhtml') return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Simplified header printing with PDF bookmarks
|
||||
*
|
||||
* @param string $text
|
||||
* @param int $level from 1 (highest) to 6 (lowest)
|
||||
* @param int $pos
|
||||
*/
|
||||
public function header($text, $level, $pos) {
|
||||
if(!$text) return; //skip empty headlines
|
||||
global $ID;
|
||||
|
||||
$hid = $this->_headerToLink($text, true);
|
||||
|
||||
//only add items within global configured levels (doesn't check the pdf toc settings)
|
||||
$this->toc_additem($hid, $text, $level);
|
||||
|
||||
$check = false;
|
||||
$pid = sectionID($ID, $check);
|
||||
$hid = $pid . '__' . $hid;
|
||||
|
||||
// add PDF bookmark
|
||||
$bookmark = '';
|
||||
$maxbookmarklevel = $this->actioninstance->getExportConfig('maxbookmarks');
|
||||
// 0: off, 1-6: show down to this level
|
||||
if($maxbookmarklevel && $maxbookmarklevel >= $level) {
|
||||
$bookmarklevel = $this->calculateBookmarklevel($level);
|
||||
$bookmark = '<bookmark content="' . $this->_xmlEntities($text) . '" level="' . ($bookmarklevel) . '" />';
|
||||
}
|
||||
|
||||
// print header
|
||||
$this->doc .= DOKU_LF . "<h$level>$bookmark";
|
||||
$this->doc .= "<a name=\"$hid\">";
|
||||
$this->doc .= $this->_xmlEntities($text);
|
||||
$this->doc .= "</a>";
|
||||
$this->doc .= "</h$level>" . DOKU_LF;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bookmark levels might increase maximal +1 per level.
|
||||
* (note: levels start at 1, bookmarklevels at 0)
|
||||
*
|
||||
* @param int $level 1 (highest) to 6 (lowest)
|
||||
* @return int
|
||||
*/
|
||||
protected function calculateBookmarklevel($level) {
|
||||
if($this->lastHeaderLevel == -1) {
|
||||
$this->lastHeaderLevel = $level;
|
||||
}
|
||||
$step = $level - $this->lastHeaderLevel;
|
||||
if($step > 1) {
|
||||
$this->difference = $this->difference + ($step - 1);
|
||||
}
|
||||
if($step < 0) {
|
||||
$this->difference = min($this->difference, $level - $this->originalHeaderLevel);
|
||||
$this->difference = max($this->difference, 0);
|
||||
}
|
||||
|
||||
$bookmarklevel = $level - $this->difference;
|
||||
|
||||
if($step > 1) {
|
||||
$this->originalHeaderLevel = $bookmarklevel;
|
||||
}
|
||||
|
||||
$this->lastHeaderLevel = $level;
|
||||
return $bookmarklevel - 1; //zero indexed
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a page local link
|
||||
*
|
||||
* // modified copy of parent function
|
||||
*
|
||||
* @param string $hash hash link identifier
|
||||
* @param string $name name for the link
|
||||
* @param bool $returnonly
|
||||
* @return string|void
|
||||
*
|
||||
* @see Doku_Renderer_xhtml::locallink
|
||||
*/
|
||||
function locallink($hash, $name = null, $returnonly = false) {
|
||||
global $ID;
|
||||
$name = $this->_getLinkTitle($name, $hash, $isImage);
|
||||
$hash = $this->_headerToLink($hash);
|
||||
$title = $ID . ' ↵';
|
||||
|
||||
$check = false;
|
||||
$pid = sectionID($ID, $check);
|
||||
|
||||
$this->doc .= '<a href="#' . $pid . '__' . $hash . '" title="' . $title . '" class="wikilink1">';
|
||||
$this->doc .= $name;
|
||||
$this->doc .= '</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap centered media in a div to center it
|
||||
*
|
||||
* @param string $src media ID
|
||||
* @param string $title descriptive text
|
||||
* @param string $align left|center|right
|
||||
* @param int $width width of media in pixel
|
||||
* @param int $height height of media in pixel
|
||||
* @param string $cache cache|recache|nocache
|
||||
* @param bool $render should the media be embedded inline or just linked
|
||||
* @return string
|
||||
*/
|
||||
function _media($src, $title = NULL, $align = NULL, $width = NULL,
|
||||
$height = NULL, $cache = NULL, $render = true) {
|
||||
|
||||
$out = '';
|
||||
if($align == 'center') {
|
||||
$out .= '<div align="center" style="text-align: center">';
|
||||
}
|
||||
|
||||
$out .= parent::_media($src, $title, $align, $width, $height, $cache, $render);
|
||||
|
||||
if($align == 'center') {
|
||||
$out .= '</div>';
|
||||
}
|
||||
|
||||
return $out;
|
||||
}
|
||||
|
||||
/**
|
||||
* hover info makes no sense in PDFs, so drop acronyms
|
||||
*
|
||||
* @param string $acronym
|
||||
*/
|
||||
function acronym($acronym) {
|
||||
$this->doc .= $this->_xmlEntities($acronym);
|
||||
}
|
||||
|
||||
/**
|
||||
* reformat links if needed
|
||||
*
|
||||
* @param array $link
|
||||
* @return string
|
||||
*/
|
||||
function _formatLink($link) {
|
||||
|
||||
// for internal links contains the title the pageid
|
||||
if(in_array($link['title'], $this->actioninstance->getExportedPages())) {
|
||||
list(/* $url */, $hash) = explode('#', $link['url'], 2);
|
||||
|
||||
$check = false;
|
||||
$pid = sectionID($link['title'], $check);
|
||||
$link['url'] = "#" . $pid . '__' . $hash;
|
||||
}
|
||||
|
||||
// prefix interwiki links with interwiki icon
|
||||
if($link['name'][0] != '<' && preg_match('/\binterwiki iw_(.\w+)\b/', $link['class'], $m)) {
|
||||
if(file_exists(DOKU_INC . 'lib/images/interwiki/' . $m[1] . '.png')) {
|
||||
$img = DOKU_BASE . 'lib/images/interwiki/' . $m[1] . '.png';
|
||||
} elseif(file_exists(DOKU_INC . 'lib/images/interwiki/' . $m[1] . '.gif')) {
|
||||
$img = DOKU_BASE . 'lib/images/interwiki/' . $m[1] . '.gif';
|
||||
} else {
|
||||
$img = DOKU_BASE . 'lib/images/interwiki.png';
|
||||
}
|
||||
|
||||
$link['name'] = '<img src="' . $img . '" width="16" height="16" style="vertical-align: center" class="' . $link['class'] . '" />' . $link['name'];
|
||||
}
|
||||
return parent::_formatLink($link);
|
||||
}
|
||||
|
||||
/**
|
||||
* no obfuscation for email addresses
|
||||
*
|
||||
* @param string $address
|
||||
* @param null $name
|
||||
* @param bool $returnonly
|
||||
* @return string|void
|
||||
*/
|
||||
function emaillink($address, $name = NULL, $returnonly = false) {
|
||||
global $conf;
|
||||
$old = $conf['mailguard'];
|
||||
$conf['mailguard'] = 'none';
|
||||
parent::emaillink($address, $name, $returnonly);
|
||||
$conf['mailguard'] = $old;
|
||||
}
|
||||
|
||||
}
|
||||
|
28
lib/plugins/dw2pdf/style.css
Normal file
28
lib/plugins/dw2pdf/style.css
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* dw2pdf export_pdf pagetool icon
|
||||
*/
|
||||
|
||||
/* export icon */
|
||||
#dokuwiki__pagetools ul li a.export_pdf {
|
||||
background-position: right 0;
|
||||
}
|
||||
#dokuwiki__pagetools ul li a.export_pdf:before {
|
||||
content: url(pagetools-pdfexport-sprite.png);
|
||||
margin-top: 0;
|
||||
}
|
||||
#dokuwiki__pagetools:hover ul li a.export_pdf,
|
||||
#dokuwiki__pagetools ul li a.export_pdf:focus,
|
||||
#dokuwiki__pagetools ul li a.export_pdf:active {
|
||||
background-image: url(pagetools-pdfexport-sprite.png);
|
||||
}
|
||||
#dokuwiki__pagetools ul li a.export_pdf:hover,
|
||||
#dokuwiki__pagetools ul li a.export_pdf:active,
|
||||
#dokuwiki__pagetools ul li a.export_pdf:focus {
|
||||
background-position: right -45px;
|
||||
}
|
||||
/*Keep pagetool icon on left side for rtl languages*/
|
||||
[dir=rtl] #dokuwiki__pagetools ul li a.export_pdf:hover,
|
||||
[dir=rtl] #dokuwiki__pagetools ul li a.export_pdf:active,
|
||||
[dir=rtl] #dokuwiki__pagetools ul li a.export_pdf:focus {
|
||||
background-position: left -45px;
|
||||
}
|
88
lib/plugins/dw2pdf/syntax/exportlink.php
Normal file
88
lib/plugins/dw2pdf/syntax/exportlink.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* DokuWiki Plugin dw2pdf (Syntax Component)
|
||||
*
|
||||
* For marking changes in page orientation.
|
||||
*
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
* @author Sam Wilson <sam@samwilson.id.au>
|
||||
*/
|
||||
/* Must be run within Dokuwiki */
|
||||
if(!defined('DOKU_INC')) die();
|
||||
|
||||
/**
|
||||
* Syntax for page specific directions for mpdf library
|
||||
*/
|
||||
class syntax_plugin_dw2pdf_exportlink extends DokuWiki_Syntax_Plugin {
|
||||
|
||||
/**
|
||||
* Syntax Type
|
||||
*
|
||||
* Needs to return one of the mode types defined in $PARSER_MODES in parser.php
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType() {
|
||||
return 'substition';
|
||||
}
|
||||
|
||||
/**
|
||||
* Sort for applying this mode
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSort() {
|
||||
return 41;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $mode
|
||||
*/
|
||||
public function connectTo($mode) {
|
||||
$this->Lexer->addSpecialPattern('~~PDFNS>(?:.*?)\|(?:.*?)~~', $mode, 'plugin_dw2pdf_exportlink');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler to prepare matched data for the rendering process
|
||||
*
|
||||
* @param string $match The text matched by the patterns
|
||||
* @param int $state The lexer state for the match
|
||||
* @param int $pos The character position of the matched text
|
||||
* @param Doku_Handler $handler The Doku_Handler object
|
||||
* @return bool|array Return an array with all data you want to use in render, false don't add an instruction
|
||||
*/
|
||||
public function handle($match, $state, $pos, Doku_Handler $handler) {
|
||||
global $ID;
|
||||
$ns = substr($match,8,strpos($match,'|')-8);
|
||||
$id = $ns . ':start';
|
||||
resolve_pageid(getNS($ID),$id,$exists);
|
||||
$ns = getNS($id);
|
||||
$title = substr($match,strpos($match,'|')+1,-2);
|
||||
$link = '?do=export_pdfns&book_ns=' . $ns . '&book_title=' . $title;
|
||||
|
||||
// check if there is an ampersand in the title
|
||||
$amp = strpos($title,'&');
|
||||
if ($amp !== false) {
|
||||
$title = substr($title,0,$amp);
|
||||
}
|
||||
|
||||
return array('link' => $link, 'title' => sprintf($this->getLang('export_ns'),$ns,$title),$state, $pos);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles the actual output creation.
|
||||
*
|
||||
* @param string $mode output format being rendered
|
||||
* @param Doku_Renderer $renderer the current renderer object
|
||||
* @param array $data data created by handler()
|
||||
* @return boolean rendered correctly? (however, returned value is not used at the moment)
|
||||
*/
|
||||
public function render($mode, Doku_Renderer $renderer, $data) {
|
||||
if($mode == 'xhtml' && !is_a($renderer,'renderer_plugin_dw2pdf')) {
|
||||
$renderer->internallink($data['link'],$data['title']);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
86
lib/plugins/dw2pdf/syntax/pagesetting.php
Normal file
86
lib/plugins/dw2pdf/syntax/pagesetting.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
/**
|
||||
* DokuWiki Plugin dw2pdf (Syntax Component)
|
||||
*
|
||||
* For marking changes in page orientation.
|
||||
*
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
* @author Sam Wilson <sam@samwilson.id.au>
|
||||
*/
|
||||
/* Must be run within Dokuwiki */
|
||||
if(!defined('DOKU_INC')) die();
|
||||
|
||||
/**
|
||||
* Syntax for page specific directions for mpdf library
|
||||
*/
|
||||
class syntax_plugin_dw2pdf_pagesetting extends DokuWiki_Syntax_Plugin {
|
||||
|
||||
/**
|
||||
* Syntax Type
|
||||
*
|
||||
* Needs to return one of the mode types defined in $PARSER_MODES in parser.php
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getType() {
|
||||
return 'substition';
|
||||
}
|
||||
|
||||
/**
|
||||
* Sort for applying this mode
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSort() {
|
||||
return 40;
|
||||
}
|
||||
|
||||
/**
|
||||
* Paragraph Type
|
||||
*
|
||||
* @see Doku_Handler_Block
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPType() {
|
||||
return 'block';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $mode
|
||||
*/
|
||||
public function connectTo($mode) {
|
||||
$this->Lexer->addSpecialPattern('~~PDF:(?:LANDSCAPE|PORTRAIT)~~', $mode, 'plugin_dw2pdf_pagesetting');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler to prepare matched data for the rendering process
|
||||
*
|
||||
* @param string $match The text matched by the patterns
|
||||
* @param int $state The lexer state for the match
|
||||
* @param int $pos The character position of the matched text
|
||||
* @param Doku_Handler $handler The Doku_Handler object
|
||||
* @return bool|array Return an array with all data you want to use in render, false don't add an instruction
|
||||
*/
|
||||
public function handle($match, $state, $pos, Doku_Handler $handler) {
|
||||
return array($match, $state, $pos);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles the actual output creation.
|
||||
*
|
||||
* @param string $mode output format being rendered
|
||||
* @param Doku_Renderer $renderer the current renderer object
|
||||
* @param array $data data created by handler()
|
||||
* @return boolean rendered correctly? (however, returned value is not used at the moment)
|
||||
*/
|
||||
public function render($mode, Doku_Renderer $renderer, $data) {
|
||||
if($mode == 'xhtml') {
|
||||
$orientation = strtolower(substr($data[0], 6, -2));
|
||||
$renderer->doc .= "<div class='dw2pdf-$orientation'></div>" . DOKU_LF;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
69
lib/plugins/dw2pdf/tpl/default/README.txt
Normal file
69
lib/plugins/dw2pdf/tpl/default/README.txt
Normal file
@@ -0,0 +1,69 @@
|
||||
====== dw2pdf Templates ======
|
||||
|
||||
Templates define the design of the created PDF files and are a good way
|
||||
to easily customize them to your Corporate Identity.
|
||||
|
||||
To create a new template, just create a new folder within the plugin's
|
||||
''tpl'' folder and put your header, footers and style definitions in it.
|
||||
|
||||
===== Headers and Footers =====
|
||||
|
||||
The following files can be created and will be used to set headers and
|
||||
footers on odd or even pages. Special headers/footers can be used on the
|
||||
first page of a document. If a file is does not exist the next more generic
|
||||
one will be tried. Eg. if You don't differ between even and odd pages,
|
||||
just the header.html is used.
|
||||
|
||||
* ''header.html'' -- Header for all pages
|
||||
* ''header_odd.html'' -- Header for odd pages
|
||||
* ''header_even.html'' -- Header for even pages
|
||||
* ''header_first.html'' -- Header for the first page
|
||||
|
||||
* ''footer.html'' -- Footer for all pages
|
||||
* ''footer_odd.html'' -- Footer for odd pages
|
||||
* ''footer_even.html'' -- Footer for even pages
|
||||
* ''footer_first.html'' -- Footer for the first page
|
||||
|
||||
* ''citation.html'' -- Citationbox to be printed after each article
|
||||
* ''cover.html'' -- Added once before first page
|
||||
* ''back.html'' -- Added once after last page
|
||||
|
||||
You can use all HTML that is understood by mpdf
|
||||
(See http://mpdf1.com/manual/index.php?tid=256)
|
||||
|
||||
If you reference image files, be sure to prefix them with the @TPLBASE@
|
||||
parameter (See [[#Replacements]] below).
|
||||
|
||||
===== Replacements =====
|
||||
|
||||
The following replacement patterns can be used within the header and
|
||||
footer files.
|
||||
|
||||
* ''@PAGE@'' -- current page number in the PDF
|
||||
* ''@PAGES@'' -- number of all pages in the PDF
|
||||
* ''@TITLE@'' -- The article's title
|
||||
* ''@WIKI@'' -- The wiki's title
|
||||
* ''@WIKIURL@'' -- URL to the wiki
|
||||
* ''@DATE@'' -- time when the PDF was created (might be in the past if cached)
|
||||
* ''@BASE@'' -- the wiki base directory
|
||||
* ''@INC@'' -- the absolute wiki install directory on the filesystem
|
||||
* ''@TPLBASE@'' -- the PDF template base directory (use to reference images)
|
||||
* ''@TPLINC@'' -- the absolute path to the PDF template directory on the filesystem
|
||||
|
||||
//Remark about Bookcreator//:
|
||||
The page depended replacements are only for ''citation.html'' updated for every page.
|
||||
In the headers and footers the ID of the bookmanager page of the Bookcreator is applied.
|
||||
* ''@ID@'' -- The article's pageID
|
||||
* ''@PAGEURL@'' -- URL to the article
|
||||
* ''@UPDATE@'' -- Time of the last update of the article
|
||||
* ''@QRCODE@'' -- QR code image pointing to the original page url (requires an online generator, see config setting)
|
||||
|
||||
===== Styles =====
|
||||
|
||||
Custom stylings can be provided in the following file of your dw2pdf-template folder:
|
||||
|
||||
* style.css
|
||||
|
||||
You can use all the CSS that is understood by mpdf
|
||||
(See http://mpdf1.com/manual/index.php?tid=34)
|
||||
|
21
lib/plugins/dw2pdf/tpl/default/citation.html
Normal file
21
lib/plugins/dw2pdf/tpl/default/citation.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<br />
|
||||
<br />
|
||||
<div style="font-size: 80%; border: solid 0.5mm #DDDDDD;background-color: #EEEEEE; padding: 2mm; border-radius: 2mm 2mm; width: 100%;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
From:<br />
|
||||
<a href="@WIKIURL@">@WIKIURL@</a> - <b>@WIKI@</b>
|
||||
<br /><br />
|
||||
Permanent link:<br />
|
||||
<b><a href="@PAGEURL@">@PAGEURL@</a></b>
|
||||
<br /><br />
|
||||
Last update: <b>@UPDATE@</b>
|
||||
<br />
|
||||
</td>
|
||||
<td align="right">
|
||||
@QRCODE@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
7
lib/plugins/dw2pdf/tpl/default/footer_even.html
Normal file
7
lib/plugins/dw2pdf/tpl/default/footer_even.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<table width="100%" class="pdffooter">
|
||||
<tr>
|
||||
<td style="text-align: left">@WIKIURL@</td>
|
||||
<td style="text-align: center"></td>
|
||||
<td style="text-align: right">Printed on @DATE@</td>
|
||||
</tr>
|
||||
</table>
|
7
lib/plugins/dw2pdf/tpl/default/footer_odd.html
Normal file
7
lib/plugins/dw2pdf/tpl/default/footer_odd.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<table width="100%" class="pdffooter">
|
||||
<tr>
|
||||
<td style="text-align: left">@WIKI@ - @WIKIURL@</td>
|
||||
<td style="text-align: center"></td>
|
||||
<td style="text-align: right"></td>
|
||||
</tr>
|
||||
</table>
|
7
lib/plugins/dw2pdf/tpl/default/header_even.html
Normal file
7
lib/plugins/dw2pdf/tpl/default/header_even.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<table width="100%" class="pdfheader">
|
||||
<tr>
|
||||
<td style="text-align: left">Last update: @UPDATE@</td>
|
||||
<td style="text-align: center">@ID@</td>
|
||||
<td style="text-align: right">@PAGEURL@</td>
|
||||
</tr>
|
||||
</table>
|
7
lib/plugins/dw2pdf/tpl/default/header_odd.html
Normal file
7
lib/plugins/dw2pdf/tpl/default/header_odd.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<table width="100%" class="pdfheader">
|
||||
<tr>
|
||||
<td style="text-align: left">@DATE@</td>
|
||||
<td style="text-align: center">@PAGE@/@PAGES@</td> <!-- remove / and use setting $mpdf->pagenumSuffix = '/'; to have only / if @PAGES@ is defined -->
|
||||
<td style="text-align: right">@TITLE@</td>
|
||||
</tr>
|
||||
</table>
|
70
lib/plugins/dw2pdf/tpl/default/style.css
Normal file
70
lib/plugins/dw2pdf/tpl/default/style.css
Normal file
@@ -0,0 +1,70 @@
|
||||
table.pdfheader {
|
||||
font-size: 8pt;
|
||||
border-collapse: collapse;
|
||||
border-bottom: 1px solid #000000;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
table.pdffooter {
|
||||
font-size: 8pt;
|
||||
border-collapse: collapse;
|
||||
border-top: 1px solid #000000;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Table of Content -- see http://mpdf1.com/manual/index.php?tid=243 */
|
||||
div.mpdf_toc {
|
||||
}
|
||||
a.mpdf_toc_a {
|
||||
color: black; /* links black as well */
|
||||
}
|
||||
/* Whole line level 0 */
|
||||
div.mpdf_toc_level_0 {
|
||||
line-height: 1.5;
|
||||
margin-left: 0;
|
||||
padding-right: 1em; /* padding-right should match e.g <dottab outdent="2em" /> 0 is default */
|
||||
}
|
||||
/* Title level 0 - may be inside <a> */
|
||||
span.mpdf_toc_t_level_0 {
|
||||
}
|
||||
/* Page no. level 0 - may be inside <a> */
|
||||
span.mpdf_toc_p_level_0 {
|
||||
}
|
||||
/* Whole line level 1 */
|
||||
div.mpdf_toc_level_1 {
|
||||
margin-left: 1em;
|
||||
text-indent: -1em;
|
||||
padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
|
||||
}
|
||||
/* Title level 1 */
|
||||
span.mpdf_toc_t_level_1 {
|
||||
}
|
||||
/* Page no. level 1 - may be inside <a> */
|
||||
span.mpdf_toc_p_level_1 {
|
||||
}
|
||||
/* level 2 */
|
||||
div.mpdf_toc_level_2 {
|
||||
margin-left: 2em;
|
||||
text-indent: -1em;
|
||||
padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
|
||||
}
|
||||
span.mpdf_toc_t_level_2 {}
|
||||
span.mpdf_toc_p_level_2 {}
|
||||
|
||||
/* level 3 */
|
||||
div.mpdf_toc_level_3 {
|
||||
margin-left: 3em;
|
||||
text-indent: -1em;
|
||||
padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
|
||||
}
|
||||
span.mpdf_toc_t_level_3 {}
|
||||
span.mpdf_toc_p_level_3 {}
|
||||
|
||||
/* level 4 */
|
||||
div.mpdf_toc_level_4 {
|
||||
margin-left: 4em;
|
||||
text-indent: -1em;
|
||||
padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
|
||||
}
|
||||
span.mpdf_toc_t_level_4 {}
|
||||
span.mpdf_toc_p_level_4 {}
|
7
lib/plugins/dw2pdf/vendor/autoload.php
vendored
Normal file
7
lib/plugins/dw2pdf/vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitb71fb58cdf4c29fb0d05b258cce42b04::getLoader();
|
445
lib/plugins/dw2pdf/vendor/composer/ClassLoader.php
vendored
Normal file
445
lib/plugins/dw2pdf/vendor/composer/ClassLoader.php
vendored
Normal file
@@ -0,0 +1,445 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
/**
|
||||
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
||||
*
|
||||
* $loader = new \Composer\Autoload\ClassLoader();
|
||||
*
|
||||
* // register classes with namespaces
|
||||
* $loader->add('Symfony\Component', __DIR__.'/component');
|
||||
* $loader->add('Symfony', __DIR__.'/framework');
|
||||
*
|
||||
* // activate the autoloader
|
||||
* $loader->register();
|
||||
*
|
||||
* // to enable searching the include path (eg. for PEAR packages)
|
||||
* $loader->setUseIncludePath(true);
|
||||
*
|
||||
* In this example, if you try to use a class in the Symfony\Component
|
||||
* namespace or one of its children (Symfony\Component\Console for instance),
|
||||
* the autoloader will first look for the class under the component/
|
||||
* directory, and it will then fallback to the framework/ directory if not
|
||||
* found before giving up.
|
||||
*
|
||||
* This class is loosely based on the Symfony UniversalClassLoader.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
* @see http://www.php-fig.org/psr/psr-0/
|
||||
* @see http://www.php-fig.org/psr/psr-4/
|
||||
*/
|
||||
class ClassLoader
|
||||
{
|
||||
// PSR-4
|
||||
private $prefixLengthsPsr4 = array();
|
||||
private $prefixDirsPsr4 = array();
|
||||
private $fallbackDirsPsr4 = array();
|
||||
|
||||
// PSR-0
|
||||
private $prefixesPsr0 = array();
|
||||
private $fallbackDirsPsr0 = array();
|
||||
|
||||
private $useIncludePath = false;
|
||||
private $classMap = array();
|
||||
private $classMapAuthoritative = false;
|
||||
private $missingClasses = array();
|
||||
private $apcuPrefix;
|
||||
|
||||
public function getPrefixes()
|
||||
{
|
||||
if (!empty($this->prefixesPsr0)) {
|
||||
return call_user_func_array('array_merge', $this->prefixesPsr0);
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getPrefixesPsr4()
|
||||
{
|
||||
return $this->prefixDirsPsr4;
|
||||
}
|
||||
|
||||
public function getFallbackDirs()
|
||||
{
|
||||
return $this->fallbackDirsPsr0;
|
||||
}
|
||||
|
||||
public function getFallbackDirsPsr4()
|
||||
{
|
||||
return $this->fallbackDirsPsr4;
|
||||
}
|
||||
|
||||
public function getClassMap()
|
||||
{
|
||||
return $this->classMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $classMap Class to filename map
|
||||
*/
|
||||
public function addClassMap(array $classMap)
|
||||
{
|
||||
if ($this->classMap) {
|
||||
$this->classMap = array_merge($this->classMap, $classMap);
|
||||
} else {
|
||||
$this->classMap = $classMap;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-0 directories for a given prefix, either
|
||||
* appending or prepending to the ones previously set for this prefix.
|
||||
*
|
||||
* @param string $prefix The prefix
|
||||
* @param array|string $paths The PSR-0 root directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*/
|
||||
public function add($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr0
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
$this->fallbackDirsPsr0,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$first = $prefix[0];
|
||||
if (!isset($this->prefixesPsr0[$first][$prefix])) {
|
||||
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
|
||||
|
||||
return;
|
||||
}
|
||||
if ($prepend) {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixesPsr0[$first][$prefix]
|
||||
);
|
||||
} else {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
$this->prefixesPsr0[$first][$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-4 directories for a given namespace, either
|
||||
* appending or prepending to the ones previously set for this namespace.
|
||||
*
|
||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||
* @param array|string $paths The PSR-4 base directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function addPsr4($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
// Register directories for the root namespace.
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr4
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
$this->fallbackDirsPsr4,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
|
||||
// Register directories for a new namespace.
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||
}
|
||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||
} elseif ($prepend) {
|
||||
// Prepend directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixDirsPsr4[$prefix]
|
||||
);
|
||||
} else {
|
||||
// Append directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
$this->prefixDirsPsr4[$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-0 directories for a given prefix,
|
||||
* replacing any others previously set for this prefix.
|
||||
*
|
||||
* @param string $prefix The prefix
|
||||
* @param array|string $paths The PSR-0 base directories
|
||||
*/
|
||||
public function set($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr0 = (array) $paths;
|
||||
} else {
|
||||
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-4 directories for a given namespace,
|
||||
* replacing any others previously set for this namespace.
|
||||
*
|
||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||
* @param array|string $paths The PSR-4 base directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function setPsr4($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr4 = (array) $paths;
|
||||
} else {
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
||||
}
|
||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns on searching the include path for class files.
|
||||
*
|
||||
* @param bool $useIncludePath
|
||||
*/
|
||||
public function setUseIncludePath($useIncludePath)
|
||||
{
|
||||
$this->useIncludePath = $useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be used to check if the autoloader uses the include path to check
|
||||
* for classes.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getUseIncludePath()
|
||||
{
|
||||
return $this->useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns off searching the prefix and fallback directories for classes
|
||||
* that have not been registered with the class map.
|
||||
*
|
||||
* @param bool $classMapAuthoritative
|
||||
*/
|
||||
public function setClassMapAuthoritative($classMapAuthoritative)
|
||||
{
|
||||
$this->classMapAuthoritative = $classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should class lookup fail if not found in the current class map?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isClassMapAuthoritative()
|
||||
{
|
||||
return $this->classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
||||
*
|
||||
* @param string|null $apcuPrefix
|
||||
*/
|
||||
public function setApcuPrefix($apcuPrefix)
|
||||
{
|
||||
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The APCu prefix in use, or null if APCu caching is not enabled.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getApcuPrefix()
|
||||
{
|
||||
return $this->apcuPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers this instance as an autoloader.
|
||||
*
|
||||
* @param bool $prepend Whether to prepend the autoloader or not
|
||||
*/
|
||||
public function register($prepend = false)
|
||||
{
|
||||
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregisters this instance as an autoloader.
|
||||
*/
|
||||
public function unregister()
|
||||
{
|
||||
spl_autoload_unregister(array($this, 'loadClass'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the given class or interface.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
* @return bool|null True if loaded, null otherwise
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
if ($file = $this->findFile($class)) {
|
||||
includeFile($file);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the path to the file where the class is defined.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
*
|
||||
* @return string|false The path if found, false otherwise
|
||||
*/
|
||||
public function findFile($class)
|
||||
{
|
||||
// class map lookup
|
||||
if (isset($this->classMap[$class])) {
|
||||
return $this->classMap[$class];
|
||||
}
|
||||
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
||||
return false;
|
||||
}
|
||||
if (null !== $this->apcuPrefix) {
|
||||
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
|
||||
if ($hit) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
$file = $this->findFileWithExtension($class, '.php');
|
||||
|
||||
// Search for Hack files if we are running on HHVM
|
||||
if (false === $file && defined('HHVM_VERSION')) {
|
||||
$file = $this->findFileWithExtension($class, '.hh');
|
||||
}
|
||||
|
||||
if (null !== $this->apcuPrefix) {
|
||||
apcu_add($this->apcuPrefix.$class, $file);
|
||||
}
|
||||
|
||||
if (false === $file) {
|
||||
// Remember that this class does not exist.
|
||||
$this->missingClasses[$class] = true;
|
||||
}
|
||||
|
||||
return $file;
|
||||
}
|
||||
|
||||
private function findFileWithExtension($class, $ext)
|
||||
{
|
||||
// PSR-4 lookup
|
||||
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
|
||||
|
||||
$first = $class[0];
|
||||
if (isset($this->prefixLengthsPsr4[$first])) {
|
||||
$subPath = $class;
|
||||
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
||||
$subPath = substr($subPath, 0, $lastPos);
|
||||
$search = $subPath . '\\';
|
||||
if (isset($this->prefixDirsPsr4[$search])) {
|
||||
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
||||
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
||||
if (file_exists($file = $dir . $pathEnd)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-4 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr4 as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 lookup
|
||||
if (false !== $pos = strrpos($class, '\\')) {
|
||||
// namespaced class name
|
||||
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
|
||||
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
||||
} else {
|
||||
// PEAR-like class name
|
||||
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
|
||||
}
|
||||
|
||||
if (isset($this->prefixesPsr0[$first])) {
|
||||
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
|
||||
if (0 === strpos($class, $prefix)) {
|
||||
foreach ($dirs as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr0 as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 include paths.
|
||||
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope isolated include.
|
||||
*
|
||||
* Prevents access to $this/self from included files.
|
||||
*/
|
||||
function includeFile($file)
|
||||
{
|
||||
include $file;
|
||||
}
|
21
lib/plugins/dw2pdf/vendor/composer/LICENSE
vendored
Normal file
21
lib/plugins/dw2pdf/vendor/composer/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
Copyright (c) Nils Adermann, Jordi Boggiano
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
9
lib/plugins/dw2pdf/vendor/composer/autoload_classmap.php
vendored
Normal file
9
lib/plugins/dw2pdf/vendor/composer/autoload_classmap.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
);
|
10
lib/plugins/dw2pdf/vendor/composer/autoload_files.php
vendored
Normal file
10
lib/plugins/dw2pdf/vendor/composer/autoload_files.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
// autoload_files.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
|
||||
);
|
9
lib/plugins/dw2pdf/vendor/composer/autoload_namespaces.php
vendored
Normal file
9
lib/plugins/dw2pdf/vendor/composer/autoload_namespaces.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// autoload_namespaces.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
);
|
13
lib/plugins/dw2pdf/vendor/composer/autoload_psr4.php
vendored
Normal file
13
lib/plugins/dw2pdf/vendor/composer/autoload_psr4.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
// autoload_psr4.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'setasign\\Fpdi\\' => array($vendorDir . '/setasign/fpdi/src'),
|
||||
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
|
||||
'Mpdf\\' => array($vendorDir . '/mpdf/mpdf/src'),
|
||||
'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
|
||||
);
|
70
lib/plugins/dw2pdf/vendor/composer/autoload_real.php
vendored
Normal file
70
lib/plugins/dw2pdf/vendor/composer/autoload_real.php
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitb71fb58cdf4c29fb0d05b258cce42b04
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
public static function loadClassLoader($class)
|
||||
{
|
||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||
require __DIR__ . '/ClassLoader.php';
|
||||
}
|
||||
}
|
||||
|
||||
public static function getLoader()
|
||||
{
|
||||
if (null !== self::$loader) {
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb71fb58cdf4c29fb0d05b258cce42b04', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb71fb58cdf4c29fb0d05b258cce42b04', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require_once __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb71fb58cdf4c29fb0d05b258cce42b04::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
$loader->set($namespace, $path);
|
||||
}
|
||||
|
||||
$map = require __DIR__ . '/autoload_psr4.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
$loader->setPsr4($namespace, $path);
|
||||
}
|
||||
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
$loader->addClassMap($classMap);
|
||||
}
|
||||
}
|
||||
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitb71fb58cdf4c29fb0d05b258cce42b04::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireb71fb58cdf4c29fb0d05b258cce42b04($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequireb71fb58cdf4c29fb0d05b258cce42b04($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
}
|
||||
}
|
59
lib/plugins/dw2pdf/vendor/composer/autoload_static.php
vendored
Normal file
59
lib/plugins/dw2pdf/vendor/composer/autoload_static.php
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
// autoload_static.php @generated by Composer
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitb71fb58cdf4c29fb0d05b258cce42b04
|
||||
{
|
||||
public static $files = array (
|
||||
'6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
|
||||
);
|
||||
|
||||
public static $prefixLengthsPsr4 = array (
|
||||
's' =>
|
||||
array (
|
||||
'setasign\\Fpdi\\' => 14,
|
||||
),
|
||||
'P' =>
|
||||
array (
|
||||
'Psr\\Log\\' => 8,
|
||||
),
|
||||
'M' =>
|
||||
array (
|
||||
'Mpdf\\' => 5,
|
||||
),
|
||||
'D' =>
|
||||
array (
|
||||
'DeepCopy\\' => 9,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
'setasign\\Fpdi\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/setasign/fpdi/src',
|
||||
),
|
||||
'Psr\\Log\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
|
||||
),
|
||||
'Mpdf\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/mpdf/mpdf/src',
|
||||
),
|
||||
'DeepCopy\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy',
|
||||
),
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb71fb58cdf4c29fb0d05b258cce42b04::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb71fb58cdf4c29fb0d05b258cce42b04::$prefixDirsPsr4;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
}
|
235
lib/plugins/dw2pdf/vendor/composer/installed.json
vendored
Normal file
235
lib/plugins/dw2pdf/vendor/composer/installed.json
vendored
Normal file
@@ -0,0 +1,235 @@
|
||||
[
|
||||
{
|
||||
"name": "mpdf/mpdf",
|
||||
"version": "v8.0.7",
|
||||
"version_normalized": "8.0.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mpdf/mpdf.git",
|
||||
"reference": "7daf07f15334ed59a276bd52131dcca48794cdbd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/mpdf/mpdf/zipball/7daf07f15334ed59a276bd52131dcca48794cdbd",
|
||||
"reference": "7daf07f15334ed59a276bd52131dcca48794cdbd",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-gd": "*",
|
||||
"ext-mbstring": "*",
|
||||
"myclabs/deep-copy": "^1.7",
|
||||
"paragonie/random_compat": "^1.4|^2.0|9.99.99",
|
||||
"php": "^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0",
|
||||
"psr/log": "^1.0",
|
||||
"setasign/fpdi": "^2.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^0.9.5",
|
||||
"mpdf/qrcode": "^1.0.0",
|
||||
"phpunit/phpunit": "^5.0",
|
||||
"squizlabs/php_codesniffer": "^3.5.0",
|
||||
"tracy/tracy": "^2.4"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-bcmath": "Needed for generation of some types of barcodes",
|
||||
"ext-xml": "Needed mainly for SVG manipulation",
|
||||
"ext-zlib": "Needed for compression of embedded resources, such as fonts"
|
||||
},
|
||||
"time": "2020-07-15T09:48:00+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-development": "7.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Mpdf\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"GPL-2.0-only"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matěj Humpál",
|
||||
"role": "Developer, maintainer"
|
||||
},
|
||||
{
|
||||
"name": "Ian Back",
|
||||
"role": "Developer (retired)"
|
||||
}
|
||||
],
|
||||
"description": "PHP library generating PDF files from UTF-8 encoded HTML",
|
||||
"homepage": "https://mpdf.github.io",
|
||||
"keywords": [
|
||||
"pdf",
|
||||
"php",
|
||||
"utf-8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "myclabs/deep-copy",
|
||||
"version": "1.10.1",
|
||||
"version_normalized": "1.10.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/myclabs/DeepCopy.git",
|
||||
"reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
|
||||
"reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"replace": {
|
||||
"myclabs/deep-copy": "self.version"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/collections": "^1.0",
|
||||
"doctrine/common": "^2.6",
|
||||
"phpunit/phpunit": "^7.1"
|
||||
},
|
||||
"time": "2020-06-29T13:22:24+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"DeepCopy\\": "src/DeepCopy/"
|
||||
},
|
||||
"files": [
|
||||
"src/DeepCopy/deep_copy.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "Create deep copies (clones) of your objects",
|
||||
"keywords": [
|
||||
"clone",
|
||||
"copy",
|
||||
"duplicate",
|
||||
"object",
|
||||
"object graph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "psr/log",
|
||||
"version": "1.1.3",
|
||||
"version_normalized": "1.1.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/log.git",
|
||||
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
|
||||
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"time": "2020-03-23T09:12:05+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.1.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Log\\": "Psr/Log/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for logging libraries",
|
||||
"homepage": "https://github.com/php-fig/log",
|
||||
"keywords": [
|
||||
"log",
|
||||
"psr",
|
||||
"psr-3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "setasign/fpdi",
|
||||
"version": "v2.3.3",
|
||||
"version_normalized": "2.3.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Setasign/FPDI.git",
|
||||
"reference": "50c388860a73191e010810ed57dbed795578e867"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Setasign/FPDI/zipball/50c388860a73191e010810ed57dbed795578e867",
|
||||
"reference": "50c388860a73191e010810ed57dbed795578e867",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-zlib": "*",
|
||||
"php": "^5.6 || ^7.0"
|
||||
},
|
||||
"conflict": {
|
||||
"setasign/tfpdf": "<1.31"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~5.7",
|
||||
"setasign/fpdf": "~1.8",
|
||||
"setasign/tfpdf": "1.31",
|
||||
"tecnickcom/tcpdf": "~6.2"
|
||||
},
|
||||
"suggest": {
|
||||
"setasign/fpdf": "FPDI will extend this class but as it is also possible to use TCPDF or tFPDF as an alternative. There's no fixed dependency configured."
|
||||
},
|
||||
"time": "2020-04-28T12:40:35+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"setasign\\Fpdi\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Jan Slabon",
|
||||
"email": "jan.slabon@setasign.com",
|
||||
"homepage": "https://www.setasign.com"
|
||||
},
|
||||
{
|
||||
"name": "Maximilian Kresse",
|
||||
"email": "maximilian.kresse@setasign.com",
|
||||
"homepage": "https://www.setasign.com"
|
||||
}
|
||||
],
|
||||
"description": "FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.",
|
||||
"homepage": "https://www.setasign.com/fpdi",
|
||||
"keywords": [
|
||||
"fpdf",
|
||||
"fpdi",
|
||||
"pdf"
|
||||
]
|
||||
}
|
||||
]
|
36
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.github/CONTRIBUTING.md
vendored
Normal file
36
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.github/CONTRIBUTING.md
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
Contributing
|
||||
============
|
||||
|
||||
Issue tracker
|
||||
-------------
|
||||
|
||||
The Issue tracker serves mainly as a place to report bugs and request new features.
|
||||
Please do not abuse it as a general questions or troubleshooting location.
|
||||
|
||||
For these questions you can always use the
|
||||
[mpdf tag](https://stackoverflow.com/questions/tagged/mpdf) at [Stack Overflow](https://stackoverflow.com/).
|
||||
|
||||
* Please provide a small example in php/html that reproduces your situation
|
||||
* Please report one feature or one bug per issue
|
||||
* Failing to provide necessary information or not using the issue template may cause the issue to be closed without consideration.
|
||||
|
||||
Pull requests
|
||||
-------------
|
||||
|
||||
Pull requests should be always based on the default [development](https://github.com/mpdf/mpdf/tree/development)
|
||||
branch except for backports to older versions.
|
||||
|
||||
Some guidelines:
|
||||
|
||||
* Use an aptly named feature branch for the Pull request.
|
||||
|
||||
* Only files and lines affecting the scope of the Pull request must be affected.
|
||||
|
||||
* Make small, *atomic* commits that keep the smallest possible related code changes together.
|
||||
|
||||
* Code should be accompanied by a unit test testing expected behaviour.
|
||||
|
||||
* To be incorporated, the PR must contain a change in the CHANGELOG.md file describing itself
|
||||
|
||||
When updating a PR, do not create a new one, just `git push --force` to your former feature branch, the PR will
|
||||
update itself.
|
1
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.github/FUNDING.yml
vendored
Normal file
1
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
custom: https://www.paypal.me/mpdf
|
22
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.github/ISSUE_TEMPLATE.md
vendored
Normal file
22
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.github/ISSUE_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
> Please use https://stackoverflow.com/questions/tagged/mpdf for all your general questions or troubleshooting!
|
||||
> For contributing here, please see the guideline: https://github.com/mpdf/mpdf/blob/development/.github/CONTRIBUTING.md
|
||||
>
|
||||
> *Warning*: Failing to provide necessary information may cause the issue to be closed without consideration
|
||||
|
||||
### I found this bug / would like to have this new functionality
|
||||
|
||||
### This is mPDF and PHP version and environment (server/fpm/cli etc) I am using
|
||||
|
||||
### This is a PHP code snippet I use
|
||||
|
||||
```
|
||||
<?php
|
||||
|
||||
|
||||
```
|
||||
|
||||
### This is a HTML/CSS code snippet I use
|
||||
|
||||
```
|
||||
|
||||
```
|
2
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.gitignore
vendored
Normal file
2
lib/plugins/dw2pdf/vendor/mpdf/mpdf/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
vendor/*
|
||||
composer.lock
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user