Hi Frank,
Please see some remarks below:
Well it honors its own Frame specific custom attributes which are not defined in the DITA specification.All my images have PNG format and an "otherprops="fmdpi:xxx" attribute where xxx is usually 150, in some cases 140, 160 or similar. FrameMaker, my previous XML editor, honors this attribute and scales the images appropriately.
Are you still publishing to PDF using Frame?
Oxygen's default DPI is about 96 which is closer to the Web output.I notice that oXygen displays images bigger in its editor compared to 150 dpi images in FrameMaker.
We have some CSS settings to change the DPI when publishing DITA to PDF using our CSS based engine:
https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dcpp_images.html
but we do not have settings to change the DPI in the visual
editor on a per-image base.
Yes, I also do not see a possible way to do this with CSS. DITA <image> elements allow setting the width or scale attributes on them. Like:I would need to reduce all images to about 66% of their size (= by factor 1.5). Unfortunately I do not know of any CSS style which scales images based on their own pixel size. Percentage values in CSS apply to the widht or height of the viewport.
<image href="../../images/Iris_sanguinea.jpg" scale="160"/>and Oxygen takes this into account. But we take it into account because we know it's DITA, not because of a certain CSS rule which could be modified to cover another attribute.
Likewise, I would like to make sure that table columns are not too narrow on the PDF pages.
Most XML editors are not what you see is what you get especially
because XML can be published to multiple formats. The PDF may have
a different font, it splits into pages, it has a certain page
width... best you can do is to try and make things look more like
the published content in the visual editor and check the PDF from
time to time.
Regards,
Radu
Radu Coravu Oxygen XML Editor
Hi list,
I publish DITA content as online help and PDF. In oXygen's Author mode I would like to make sure that images do not exceed the width of the A4-sized PDF pages. Sometimes I also place two or more inline images side by side in a paragraph and want to make sure if all of them fit on the line or if there is a line break between them.
All my images have PNG format and an "otherprops="fmdpi:xxx" attribute where xxx is usually 150, in some cases 140, 160 or similar. FrameMaker, my previous XML editor, honors this attribute and scales the images appropriately.
I notice that oXygen displays images bigger in its editor compared to 150 dpi images in FrameMaker. I would need to reduce all images to about 66% of their size (= by factor 1.5). Unfortunately I do not know of any CSS style which scales images based on their own pixel size. Percentage values in CSS apply to the widht or height of the viewport.
Likewise, I would like to make sure that table columns are not too narrow on the PDF pages.
What can I do? Any ideas are welcome.
Regards,
Frank
--
Frank Dissinger
Documentation Manager
....................................................................
CGS Publishing Technologies International GmbH
Email frank.dissinger@cgs-oris.com | Web www.cgs-oris.com
Address Kettelerstr. 24 | D-63512 Hainburg | Germany
Phone +49 6182 9626-27 | Fax +49 6182 9626-99
Commercial register Offenbach, HRB no. 21495
Managing directors Bernd Rückert, Christoph Thommessen
![]()
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user