Maybe use `temporary-file-directory’ or `make-temp-name’.
</p>
<p>
>  “The base directory, where the PNG imoges will be saved.”<br/>                                       images
</p>
<p>
> (defun doc-view-file-name-to-directory-name (file)<br />>   “Return the directory where the png files of FILE should be saved.<br />><br />> It’a a subdirectory of `doc-view-cache-directory’.”<br />>   (concat (directory-file-name doc-view-cache-directory)<br />>           “/”<br />>           (replace-regexp-in-string “/” “!” file)))
</p>
<p>
Probably not portable, I think.  Windows users may set the directory<br/>to “c: ooar”.  Maybe you could do like the package formerly knows<br/>as `tumme.el’ does it.  Ah, it’s `image-dired.el’ now:<br/>`image-dired-thumb-name’.
,—-[ (info “(elisp)Directory Names”) ]<br/>|    If you want to use a directory file name in making such a<br/>| combination, you must first convert it to a directory name using<br/>| `file-name-as-directory’:<br />| <br />|      (concat (file-name-as-directory DIRFILE) RELFILE)<br />| <br />| Don’t try concatenating a slash by hand, as in<br />| <br />|      ;;; Wrong!<br />|      (concat DIRFILE “/” RELFILE)<br />| <br />| because this is not portable.  Always use `file-name-as-directory’.<br/>`—-