       (clojure.string/replace #"stroke=\"rgba\(([^,\)]*),([^,\)]*),([^,\)]*),([^,\)]*)\)\""
                               "stroke=\"rgb($1,$2,$3)\" stroke-opacity=\"$4\"")))
 
-(defn- clear-svg [svg]
-  (-> svg remove-empty-img remove-opacity replace-rgba))
-
 (defn- trim-svg-string [str]
   (let [left-trim-str (clojure.string/replace str #"^\"" "")
         right-trim-str (clojure.string/replace left-trim-str #"\"$" "")]

(defn- remove-cursor [svg]
  (clojure.string/replace svg #"cursor\s*:\s*[\w-]+\s*;?\s*" ""))

;====================================================================================
; SVG --> PDF
;====================================================================================

(defn svg-to-png [svg widht height force-transparent-white]
  (try
    (with-open [out (new ByteArrayOutputStream)]
      (let [svg (clear-svg svg)
            string-reader (new StringReader svg)
            transcoder-input (new TranscoderInput string-reader)
            transcoder-output (new TranscoderOutput out)
