HTML Styled Correctly But PDF Isn't
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 11
- Joined: Fri Jan 17, 2014 7:25 pm
HTML Styled Correctly But PDF Isn't
Hi there,
I'm using the DITA Map PDF - based on HTML & CSS transformation scenario with a customization. I'm trying to apply a two-column layout to a specific topic in the DITA Map, namely to the "terms and conditions" topic, which has been created with.
In my custom CSS file, I have the selector:
This displays the content of the topic in two columns in HTML as expected. However, the same content is rendered without any columns in the PDF output. Is there any way to troubleshoot this? I checked the information at https://www.oxygenxml.com/doc/versions/ ... e_css.html but didn't get anywhere with it.
Many thanks and apologies if this is a basic question!
Carl.
I'm using the DITA Map PDF - based on HTML & CSS transformation scenario with a customization. I'm trying to apply a two-column layout to a specific topic in the DITA Map, namely to the "terms and conditions" topic, which has been created with
Code: Select all
@outputclass="agb"
In my custom CSS file, I have the selector:
Code: Select all
article [class~="agb"] {
page-break-before: always;
column-count: 2;
column-gap: 2em;
}
Many thanks and apologies if this is a basic question!
Carl.
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: HTML Styled Correctly But PDF Isn't
There are differences in the CSS support from Chemistry and a full Web Browser. For Chemistry, the column-count should be set on the @page, not on the matching element. Please use the following technique:
1. Define an outputclass on the topic root element. (as you already did)
2. Define a CSS rule that changes the page property for the matching element.
3. Define a page layout.
Please note that the topic will be separated by other sibling topics with different page layout by page breaks.
Many regards,
Dan
1. Define an outputclass on the topic root element. (as you already did)
Code: Select all
<topic outputclass="two_columns" ...
Code: Select all
*[class ~= "two_columns"] {
page: two_column_page !important;
}
Code: Select all
@page two_column_page {
column-count: 2;
}
Many regards,
Dan
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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