# Io.failed on export to pdf with empty folder

**URL:** https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485
**Category:** Adobe XD
**Created:** [February 1, 2021, 12:29pm UTC](https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485 "2021-02-01T12:29:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gdreyv](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/gdreyv/32/358_2.png) [@gdreyv](https://forums.creativeclouddeveloper.com/u/gdreyv)
#### Post date: [February 1, 2021, 12:29pm UTC](https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485/1 "2021-02-01T12:29:50Z")

</div>

I’m trying to export pretty simple element to pdf but I’m getting error io.failed. The error occurs if there is empty folder next to the item I’m exporting. [pdf-export-failed.xd](https://forums.creativeclouddeveloper.com/uploads/short-url/32PfbXEE6tfK5HjDdeH83LbgMPa.xd) (29.5 KB) I’m using `xd.createRenditions([params])`. As pdf doesn’t have any options, `params` object is the same as in the documentation.  
Are there any workarounds for that?

XD version 36.2.32.5 on Windows but also reproduceable on Mac.

---

<div class="post-metadata">

### Author: ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)
#### Post date: [February 1, 2021, 2:21pm UTC](https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485/2 "2021-02-01T14:21:59Z")

</div>

Can you show clarify what you mean by “empty folder next to the item”? Is the empty folder a sibling of the file you’re exporting, or the parent?

---

<div class="post-metadata">

### Author: ![gdreyv](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/gdreyv/32/358_2.png) [@gdreyv](https://forums.creativeclouddeveloper.com/u/gdreyv)
#### Post date: [February 1, 2021, 2:48pm UTC](https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485/3 "2021-02-01T14:48:12Z")

</div>

I attached document to reproduce the issue. Empty folder I mean folder in document layers structure. And it’s a sibling for the layer marked for export.  
Export works if I export layer using XD UI but doesn’t work if I do the same using XD API.

---

<div class="post-metadata">

### Author: ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)
#### Post date: [February 1, 2021, 3:40pm UTC](https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485/4 "2021-02-01T15:40:45Z")

</div>

Oh – I thought you meant a folder on the file system. D’oh!

@DavidXD ^^^ Ideas?

---

<div class="post-metadata">

### Author: ![DavidXD](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/davidxd/32/909_2.png) [@DavidXD](https://forums.creativeclouddeveloper.com/u/DavidXD)
#### Post date: [February 1, 2021, 8:09pm UTC](https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485/5 "2021-02-01T20:09:04Z")

</div>

I was able to reproduce this problem with the XD UI as well. Looks like there is a bug with PDF export in this situation. I let our team know. Thanks for telling us about it!

---

<div class="post-metadata">

### Author: ![DavidXD](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/davidxd/32/909_2.png) [@DavidXD](https://forums.creativeclouddeveloper.com/u/DavidXD)
#### Post date: [February 16, 2021, 6:02pm UTC](https://forums.creativeclouddeveloper.com/t/io-failed-on-export-to-pdf-with-empty-folder/2485/6 "2021-02-16T18:02:57Z")

</div>

A developer looked at this and discovered that this error occurs when the PDF export is attempting to act on something that is too small to be rendered visually. He fixed it so that instead of failing, XD will simply ignore those paths. The fix is currently scheduled for XD 39. Thanks again for your bug report!
