# How to Insert an SVG File into the Current Document?

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-insert-an-svg-file-into-the-current-document/10695>\
**Category:** UXP Plugin API\
**Tags:** uxp\
**Created:** [April 21, 2025, 7:47am UTC](https://forums.creativeclouddeveloper.com/t/how-to-insert-an-svg-file-into-the-current-document/10695 "2025-04-21T07:47:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1317048307](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/1317048307/32/3076_2.png) [@1317048307](https://forums.creativeclouddeveloper.com/u/1317048307)\
**Post date:** [April 21, 2025, 7:47am UTC](https://forums.creativeclouddeveloper.com/t/how-to-insert-an-svg-file-into-the-current-document/10695/1 "2025-04-21T07:47:40Z")

</div>

I have already downloaded the SVG file to the temporary directory of the plugin. However, when I use action.batchPlay to insert it into the layer, Photoshop prompts: “Could not place’svg\_name.svg’ because the parser or the file format cannot be opened.”

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [April 25, 2025, 6:58pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-insert-an-svg-file-into-the-current-document/10695/2 "2025-04-25T18:58:15Z")

</div>

You can use affinity designer and save it as PSD then open in PS. Adobe wasn’t good at this last time I checked. Or maybe place as smart object would work if you don’t need to edit it.
