# Multipage PDF Export

**URL:** <https://forums.creativeclouddeveloper.com/t/multipage-pdf-export/4479>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [March 31, 2022, 8:08pm UTC](https://forums.creativeclouddeveloper.com/t/multipage-pdf-export/4479 "2022-03-31T20:08:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [March 31, 2022, 8:08pm UTC](https://forums.creativeclouddeveloper.com/t/multipage-pdf-export/4479/1 "2022-03-31T20:08:02Z")

</div>

I’d like to be able to export a multipage pdf, but as far as I can tell all currently available methods utilise ExtendScript (which I’d like to avoid, being UXP and all that jazz). Am I correct in thinking this? Or have I missed something glaringly obvious?

---

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [April 27, 2022, 9:40pm UTC](https://forums.creativeclouddeveloper.com/t/multipage-pdf-export/4479/2 "2022-04-27T21:40:11Z")

</div>

Bumping because the forum’s been quite active - hopefully someone can shed some light on this for me!

---

<div class="post-metadata">

**Author:** ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)\
**Post date:** [April 28, 2022, 9:14am UTC](https://forums.creativeclouddeveloper.com/t/multipage-pdf-export/4479/3 "2022-04-28T09:14:35Z")

</div>

This is what Alchemist logs for me:

```auto
{
   "_obj": "PDFExport",
   "filesList": [
      {
         "_path": "C:\\...\\1.psd",
         "_kind": "local"
      },
      {
         "_path": "C:\\...\\2.psd",
         "_kind": "local"
      }
   ],
   "to": {
      "_path": "C:\\...\\Untitled.pdf",
      "_kind": "local"
   },
   "includeAnnotations": true,
   "backgroundColor": {
      "_enum": "backgroundColor",
      "_value": "white"
   },
   "as": {
      "_obj": "photoshopPDFFormat",
      "pdfPresetFilename": "Qualitativ hochwertiger Druck",
      "pdfPreserveEditing": false,
      "pdfCompressionType": 7
   },
}

```

---

<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:** [April 28, 2022, 1:55pm UTC](https://forums.creativeclouddeveloper.com/t/multipage-pdf-export/4479/4 "2022-04-28T13:55:47Z")

</div>

I think as long as you replace the paths with UXP File entries (or session tokens), that should get you to where need to be… (haven’t had a chance to try it tho)

---

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [May 2, 2022, 11:56pm UTC](https://forums.creativeclouddeveloper.com/t/multipage-pdf-export/4479/5 "2022-05-02T23:56:41Z")

</div>

Thanks for this, although I feel like a proper idiot now!  
My first thought was “how did he get Alchemist to generate that?!” - as I’d tried as much but not had any code returned. So I went to have a look and, lo! I had the marketplace version of Alchemist installed rather than the proper one (I have no memory of making this change, but hey ho, it is what it is 🤣 ).  
In a way, I guess you’ve also answered my upcoming question “why Alchemist no work?” 🤣
