Page 1 of 1

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

Posted: Tue Nov 28, 2017 8:42 pm
by dpksaini
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.

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

Posted: Wed Nov 29, 2017 4:03 pm
by radu_pisoi
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).