Add image (company logo) in header section, while creating custom.css

dpksaini
Posts: 1

Add image (company logo) in header section, while creating custom.css

Tue Nov 28, 2017 8:42 pm

Hi
I am trying creating a custom.css file for custom pdf output. I need my company logo to be on the header. Have written:

Code: Select all

@page :right {
        @top-left {
            content: string(maptitle)  string(chaptertitle);
            font-size:8pt;
        }
        @top-right {
            content:url("logo-5.png");
            width: 300px;
            height: 100px;
            image-resolution: 300dpi;
            }

But the image is not coming on the generated pdf.
The image is placed in the "C:\Program Files\Oxygen XML Editor 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.css\css\img" folder.
Please suggest the resolution to my issue.
radu_pisoi
Posts: 305
Location: Craiova

Re: Add image (company logo) in header section, while creating custom.css

Wed Nov 29, 2017 4:03 pm

Hi,

The image should be stored relative to your custom CSS. In you case, it should be in the same folder with your custom CSS.

Please note it is not recommended to modify the files from the installation folder because this will make difficult to upgrade to a newer oXygen version (to migrate your customizations).
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest