oxygenxml / dita-ot-css-pdf

Plugin that converts DITA Maps to PDF using CSS 3 stylesheets.
Apache License 2.0
17 stars 8 forks source link

fix antenna house path bug on windows #8

Closed markgif closed 8 years ago

markgif commented 8 years ago

Antenna House v6.2 64-bit could not find style-basic.css on my Windows 7 pc, and therefore no styling of the PDF was done. This was because of 2 problems with the path to style-basic.css in the generated main.css file:

  1. It needed file:/// prepended to the URL.
  2. It needed backslashes changed to forward slashes.

So my changes turned this:

@import 'C:\Program Files (x86)\Oxygen XML Editor 17\frameworks\dita\css/edit/style-basic.css';

into this:

@import 'file:///C:/Program Files (x86)/Oxygen XML Editor 17/frameworks/dita/css/edit/style-basic.css';

These changes fixed it for me, and that's what this PR contains. I guess AH needs these things. I only tested this on 64-bit Win7 Pro with the 64-bit version of AH (evaluation copy).

georgebina commented 8 years ago

I have not looked deep into this but I think the value for dita.css.list should be fixed instead, it should come with a list of URLs, using / instead of \, etc.