Dita PDF/CSS: header/footer box size
Post here questions and problems related to editing and publishing DITA content.
Dita PDF/CSS: header/footer box size
HI there!
Is it possible to change the size of the header/footer boxes (top-left...)? In the documentation it is said:
Is it possible to change the size of the header/footer boxes (top-left...)? In the documentation it is said:
Is it firmly?Using a top-center box together with a top-left or top-right will create a sequence of three areas of identical width, with the top-center box occupying the center.
Best regards,
Dr. ABacus
#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
Dr. ABacus
#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
-
- Posts: 907
- Joined: Thu May 02, 2019 2:32 pm
Re: Dita PDF/CSS: header/footer box size
Post by chrispitude »
Hello Dr. ABacus,
I did not know the answer to this question, so I created a testcase to experiment with it:
The "My PDF Transformation" transformation defined in the project applies the following CSS:
Here is what I found:
By the way, note that there is a dedicated PDF Chemistry section of this message board here:
Board index > Oxygen PDF Chemistry > Common Problems (common-problems-f26/)
I did not know the answer to this question, so I created a testcase to experiment with it:
- chemistry_footer_experiment.zip
- (2.89 KiB) Downloaded 94 times
The "My PDF Transformation" transformation defined in the project applies the following CSS:
Code: Select all
@page {
@bottom-left {
content: 'bottom-left';
width: 1in;
background-color: pink;
}
@bottom-center {
content: 'bottom-center';
width: 2in;
background-color: yellow;
}
@bottom-right {
content: 'bottom-right';
width: 3in;
background-color: lightblue;
}
}
- The "width" CSS property is always ignored for headers/footers.
- When only left/right are defined, the widths auto-size to the content.
- When left/center/right are defined, the widths are equal, regardless of how much/little content is in each box.
By the way, note that there is a dedicated PDF Chemistry section of this message board here:
Board index > Oxygen PDF Chemistry > Common Problems (common-problems-f26/)
-
- Posts: 498
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Dita PDF/CSS: header/footer box size
Post by julien_lacour »
Hello Dr. ABacus,
As Chris mentioned it is currently not possible to set custom width for page-margin boxes, instead you can use a custom SVG image as explained in this thread: viewtopic.php?f=20&t=21939
I also added your vote to the related feature request.
Regards,
Julien
As Chris mentioned it is currently not possible to set custom width for page-margin boxes, instead you can use a custom SVG image as explained in this thread: viewtopic.php?f=20&t=21939
I also added your vote to the related feature request.
Regards,
Julien
Return to “DITA (Editing and Publishing DITA Content)”
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