Skip to main content
Inspiring
Jun 27, 2019 10:03 AM UTC
Question

Script to export PDF file into Powerpoint format

Hello guys,

I want to export PDF file into powerpoint. I know this is possible manually using the Export option from File. There must be a way to do it via javascript as well. I need some documentation that can help in the scripting of PDF using documentation. I would like to try first myself but the documentation link is needed.

Thanks

Charu

This topic is closed to new replies. Start a new post to keep the conversation going.

19 replies

Legend
Jun 28, 2019 1:58 PM UTC

I know what you’re saying. No, you can’t automate Acrobat from an Indesign script.

Translate
Inspiring
Jun 28, 2019 8:51 AM UTC

This is what I am doing

app.beginPriv();

app.doc.saveAs('/Users/mds/Desktop/test.png','com.adobe.acrobat.png');

app.endPriv();

in console and clicking cmd+enter. It starts executed but file in png format is not created created.

Translate
BarlaeDC
Community Expert
Community Expert
Jun 28, 2019 8:31 AM UTC

HI,

If you have a function key, it might be that key and Enter key.

Regards

Malcolm

Translate
Legend
Jun 28, 2019 8:11 AM UTC

What Mac model?

Translate
Inspiring
Jun 28, 2019 8:18 AM UTC

Please see attached screenshot.

Translate
Legend
Jun 28, 2019 7:22 AM UTC

You must press the Enter key on the numeric key pad (not regular Enter key) to execute. Just typing it only fills up lines.

Translate
Inspiring
Jun 28, 2019 7:51 AM UTC

I am on a mac, and just have a single Enter key

Translate
Bernd Alheit
Community Expert
Community Expert
Jun 28, 2019 8:23 AM UTC

Try cmd+enter

Translate
Bernd Alheit
Community Expert
Community Expert
Jun 27, 2019 10:11 AM UTC
Inspiring
Jun 27, 2019 10:44 AM UTC

Thanks, I got this and trying

doc.saveAs('~/Desktop','com.adobe.acrobat.pptx ');

but nothing happens, maybe I am not able to debug. I usually use Extended toolkit to debug other Adobe applications. This is the first time I am using scripting for PDF. Please help

Translate
Bernd Alheit
Community Expert
Community Expert
Jun 27, 2019 10:58 AM UTC

The file path must a device-independent path.

Translate