Thanks Hussein!

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Hussein Shafie
Sent: Tuesday, April 19, 2011 4:12 AM
To: Mary Anne Rosato
Cc: '[email protected]'
Subject: Re: [XXE] Changing document orientation from portrait to landscape

On 04/18/2011 09:11 PM, Mary Anne Rosato wrote:
> 
> I am working with XMLMind Editor v4.9, DocBook v5. I have a single
> document whose orientation I would like to change from portrait to
> landscape when I generate a pdf. Is changing the stylesheet the only way
> to do this? 

No, you just need to set stylesheet parameter

page.orientation

to

landscape

Reference:

http://docbook.sourceforge.net/release/xsl/current/doc/fo/page.orientation.h
tml




> I just want to do it for this one document, not for any others.
> 

This is possible, to a certain extent.

--> First, you need to specify parameter page.orientation=landscape for
DocBook 5 documents converted to PDF.

Please follow this procedure:

[1] Open your DocBook 5 document.

[2] Select menu item "Options|Customize|Change Document Conversion
Parameters".

[3] Using the "Group of parameters" combobox, select "Convert to PDF,
PostScript".

[4] Click "Add".

[5] Type:

page.orientation

in the "Name" field.

Type:

landscape

in the "Value" field.
(See attached screenshot page_orientation_landscape.png).

[6] Click OK twice.

You can now generate a PDF having a landscape orientation.



--> If you want, you can save the above parameter set (i.e.
page.orientation=landscape) for subsequent use. This is done by:

[1] Open any DocBook 5 document.

[2] Select menu item "Options|Customize|Change Document Conversion
Parameters".

[3] The "Change Document Conversion Parameters" dialog box has a
"Parameter Set" menu. Select menu item "Save". This displays the
"Parameter Set" dialog box.

[4] Type "pdf_landscape" as the name of your current parameter set.
(See attached screenshot pdf_landscape.png)

[5] Click OK to close the "Parameter Set" dialog box.

[6] Now that the current parameter set has been saved as
"pdf_landscape", remove PDF parameter page.orientation=landscape (the
inverse actions of adding it) and use menu item "Parameter Set|Save" to
save your normal settings as "normal".

If you need to convert DocBook 5 documents to PDF/landscape in the
future, you'll have switch between "pdf_landscape" and "normal" using
menu item "Parameter Set|Load". (See attached screenshot
switch_param_set.png)

More information about this facility:

http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.ki
t.part.ConversionParametersEditor.html#com.xmlmind.xmleditapp.kit.part.Param
eterSetChooser

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to