diff --git a/doc/Makefile.am b/doc/Makefile.am
index 6146aaeb8..ae671fe7c 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -19,7 +19,7 @@ SUBDIRS = . en fr de ru pl cs
man_MANS = weechat-curses.1
-EXTRA_DIST = $(man_MANS) weechat-doc.css weechat-html-one.xsl.in weechat-html.xsl.in
+EXTRA_DIST = $(man_MANS) weechat-doc.css weechat-html-one.xsl.in weechat-html.xsl.in weechat-pdf.xsl dblatex.conf
all-local: weechat-html.xsl weechat-html-one.xsl
diff --git a/doc/dblatex.conf b/doc/dblatex.conf
new file mode 100644
index 000000000..7820adbd9
--- /dev/null
+++ b/doc/dblatex.conf
@@ -0,0 +1 @@
+XslParam: weechat-pdf.xsl
diff --git a/doc/weechat-pdf.xsl b/doc/weechat-pdf.xsl
new file mode 100644
index 000000000..a91ee4f71
--- /dev/null
+++ b/doc/weechat-pdf.xsl
@@ -0,0 +1,6 @@
+
+
+
+ colorlinks,linkcolor=blue
+
+
diff --git a/weechat/doc/Makefile.am b/weechat/doc/Makefile.am
index 6146aaeb8..ae671fe7c 100644
--- a/weechat/doc/Makefile.am
+++ b/weechat/doc/Makefile.am
@@ -19,7 +19,7 @@ SUBDIRS = . en fr de ru pl cs
man_MANS = weechat-curses.1
-EXTRA_DIST = $(man_MANS) weechat-doc.css weechat-html-one.xsl.in weechat-html.xsl.in
+EXTRA_DIST = $(man_MANS) weechat-doc.css weechat-html-one.xsl.in weechat-html.xsl.in weechat-pdf.xsl dblatex.conf
all-local: weechat-html.xsl weechat-html-one.xsl
diff --git a/weechat/doc/dblatex.conf b/weechat/doc/dblatex.conf
new file mode 100644
index 000000000..7820adbd9
--- /dev/null
+++ b/weechat/doc/dblatex.conf
@@ -0,0 +1 @@
+XslParam: weechat-pdf.xsl
diff --git a/weechat/doc/weechat-pdf.xsl b/weechat/doc/weechat-pdf.xsl
new file mode 100644
index 000000000..a91ee4f71
--- /dev/null
+++ b/weechat/doc/weechat-pdf.xsl
@@ -0,0 +1,6 @@
+
+
+
+ colorlinks,linkcolor=blue
+
+