HomeDobuDishOutput individualisieren

Output individualisieren


Hallo Dobudish-Team,

ich verwende das Framework für die Generierung eines PDF-Dokumentes. Was muss ich tun, um zum Beispiel die Schriftgröße in dem Dokument ändern zu können?

Danke und Gruß

Frank

Ps.: Laut Dokumentation soll man in das Dokumentenverzeichnis gehen:

Beispiel:
D:\dopus-0.1db5\documents\Projekt\custom-cfg

un dort die entsprechende css-Datei anpassen. Allerdings gibt es da keine style-pdf.css.
Frank
January 22 2009, 04:04 PM
Hallo Zusammen,

also im Verzeichnis "dopus-0.1db5\system\templates\book-cfg" befindet sich interessanter Wiese keine style.css für das PDF-Fomat. Wenn ich mal eine css für ein anderes Format umbenenne und diese in Dokumentenverzeichnis verschiebe, wird diese auch bei der PDF-Erstellung herangezogen, allerdings ohne Wirkung. Die Schriftgröße ändert sich nicht, obwohl ich diese in fast allen Optionen der css hinterlegt haben.

Was mache ich falsch? Wöre schön, wenn mir Jemand schreiben könnte, wie ma es richtig macht.

Vielen Dank

Frank
Frank
6 hours, 12 mins since original post
If I may add some comments:
For a specific document, say "MyBook", font size in a PDF is controlled by adding a parameter to

MyBook\custom-cfg\fo.xsl:
<xsl:param name="body.font.master">10</xsl:param>

Here you can change this point size value (10) to the size you wish.
If you wanted to do this globally for all your PDF output, you could add this line to:
system\custom-xsl\fo-common.xsl

Out of the box, Dobudish does not seem to change the default value, which is found in:
system\docbook-xsl\fo\param.xsl

Instead, it uses a fraction of it, e.g.:
<xsl:value-of select="$body.font.master * 1.3"/>

For general parameter customization, see for example:
http://www.sagehill.net/docbookxsl/Parameters.html

There should be no style.css used for PDF output, so any reference to such a file can be ignored.
etienne | email
3 days, 16 hours since original post
This topic is closed