landscape page-sequence for images/tables

Here should go questions about transforming XML with XSLT and FOP.
DitaNewbie
Posts: 6
Joined: Thu Nov 26, 2015 12:51 pm

landscape page-sequence for images/tables

Post by DitaNewbie » Mon Mar 20, 2017 2:46 pm

DITA: I have a image with (outputclass=landscape) in a Topic. I want to have this image on new page with new page-sequence (master-name="landscape"). However rest of the pdf is portrait. How to achieve this in DITA-OT 1.8.5. I am using Antenna House V6.2.

is it possible to end a page sequence within a topic, start a new one for rotated images or tables? I do not find a way to break the page-sequence inside the topic, by the time i match <xsl:template match="*[contains(@class,' topic/fig ')]">, I already have page-sequence which is coming from topic level.

thanks in advance

Radu
Posts: 6398
Joined: Fri Jul 09, 2004 5:18 pm

Re: landscape page-sequence for images/tables

Post by Radu » Mon Mar 20, 2017 4:56 pm

Hi,

You should consider asking such customization-related questions on the Yahoo Groups DITA Users List. It's a large community and you may get access to more people who found solutions for similar problems.
From previous discussions creating separate page sequences for large rotated figures and titles is possible but it's hard work, I cannot offer you precise steps for this.
As an alternative In XSL-FO there is an attribute called reference-orientation which can be set on the fo:block corresponding to the figure/table with the value 90 in order to rotate the figure/table. So you could try to forcefully break the page before the figure and then set this attribute on the fo:block which is generated for the figure. From what I remember this will also work for the table but it will not properly work if the table spans multiple pages but I'm not sure, this needs to be tested. With DITA 1.3 tables have an @orient attribute which can be set to "land" and which basically sets the reference-orientation on the table block in the XSL-FO.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

DitaNewbie
Posts: 6
Joined: Thu Nov 26, 2015 12:51 pm

Re: landscape page-sequence for images/tables

Post by DitaNewbie » Mon Mar 20, 2017 5:20 pm

Thanks Radu.

I will check in Dita user list.

I am already using reference-orientation for tables and images, but for readability purpose I need landscape pages.

kirkilj
Posts: 76
Joined: Fri May 14, 2010 12:14 am

Re: landscape page-sequence for images/tables

Post by kirkilj » Tue Feb 19, 2019 7:42 pm

Was a solution for rotated pages with large images discovered? I have the same need for a group of writers migrating from DocBook, who create customized processing instructions for this purpose.

Radu
Posts: 6398
Joined: Fri Jul 09, 2004 5:18 pm

Re: landscape page-sequence for images/tables

Post by Radu » Wed Feb 20, 2019 9:16 am

Hi John,

At some point we put together a plugin which changes the paper orientation of entire chapters:

https://github.com/oxygenxml/dita-class ... ape-sample

But I'm not sure it can be adapted well to change the orientation only for a certain element.

Or as a workaround you can use for creating the PDF our new DITA Map PDF - based on HTML5 & CSS output which can do that with a very small CSS snippet:

Code: Select all

*[outputclass = 'wide'] {
page: wide-page;
}

@page wide-page {
size: letter landscape;
margin: 0.5in;
}
https://www.oxygenxml.com/doc/versions/ ... _size.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply