Scaling suppresses alignment (bug?)
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 26
- Joined: Wed Nov 27, 2019 11:03 am
Scaling suppresses alignment (bug?)
Hi!
I've found that scenario "DITA Map PDF - based on HTML5 & CSS" doesn't allow me to scale image and center it at the same time.
Scaled image becomes aligned to left.
Please see attachment.
Regards,
Dmitry
I've found that scenario "DITA Map PDF - based on HTML5 & CSS" doesn't allow me to scale image and center it at the same time.
Scaled image becomes aligned to left.
Please see attachment.
Regards,
Dmitry
scale.zip
result.zip
You do not have the required permissions to view the files attached to this post.
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Scaling suppresses alignment (bug?)
Hi DmitryS,
Thank you for reporting this behavior! I confirm I could reproduce it, so I've just logged this in our internal issue tracking system to be investigated for a possible fix that will be implemented in a future release of oXygen.
We will let you know when a fix will be implemented.
Meanwhile, you could center-align the images that also have scaling applied using CSS, by setting a custom outputclass on the images and match them through CSS like:
Regards,
Costin
Thank you for reporting this behavior! I confirm I could reproduce it, so I've just logged this in our internal issue tracking system to be investigated for a possible fix that will be implemented in a future release of oXygen.
We will let you know when a fix will be implemented.
Meanwhile, you could center-align the images that also have scaling applied using CSS, by setting a custom outputclass on the images and match them through CSS like:
Code: Select all
<image outputclass="center">
Code: Select all
*[class~="center"]{
display:block;
margin-left:auto;
margin-right:auto;
}
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Scaling suppresses alignment (bug?)
Post by julien_lacour »
Hello,
Starting with Oxygen 23.1 (release on March 4th 2021), the @align attribute set on <image> elements is used to position them in the PDF output generated by the DITA Map PDF - based on HTML5 & CSS transformation.
Regards,
Julien
Starting with Oxygen 23.1 (release on March 4th 2021), the @align attribute set on <image> elements is used to position them in the PDF output generated by the DITA Map PDF - based on HTML5 & CSS transformation.
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