landscape page-sequence for images/tables
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 6
- Joined: Thu Nov 26, 2015 12:51 pm
landscape page-sequence for images/tables
Post by DitaNewbie »
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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: landscape page-sequence for images/tables
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 6
- Joined: Thu Nov 26, 2015 12:51 pm
Re: landscape page-sequence for images/tables
Post by DitaNewbie »
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.
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.
-
- Posts: 110
- Joined: Fri May 14, 2010 12:14 am
Re: landscape page-sequence for images/tables
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.
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: landscape page-sequence for images/tables
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:
https://www.oxygenxml.com/doc/versions/ ... _size.html
Regards,
Radu
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;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 23
- Joined: Mon Sep 09, 2019 3:07 pm
Re: landscape page-sequence for images/tables
Post by revaljilji »
Hi Radu,Radu wrote: ↑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:
https://www.oxygenxml.com/doc/versions/ ... _size.htmlCode: Select all
*[outputclass = 'wide'] { page: wide-page; } @page wide-page { size: letter landscape; margin: 0.5in; }
Regards,
Radu
can you explain further on how to install the mentioned plugin https://github.com/oxygenxml/dita-class ... ape-sample
BR,
R
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: landscape page-sequence for images/tables
Hi,
This topic in the Oxygen user's manual should explain how a DITA OT plugin should be installed:
https://www.oxygenxml.com/doc/versions/ ... lugin.html
This particular plugin works for the XSL-FO based PDF publishing and can landscape entire chapters (so you cannot landscape a figure/table and have the rest of the topic around it with portrait orientation).
Regards,
Radu
This topic in the Oxygen user's manual should explain how a DITA OT plugin should be installed:
https://www.oxygenxml.com/doc/versions/ ... lugin.html
This particular plugin works for the XSL-FO based PDF publishing and can landscape entire chapters (so you cannot landscape a figure/table and have the rest of the topic around it with portrait orientation).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service