Skip to main content
Participant
September 24, 2022
Question

PNG export indesign server

  • September 24, 2022
  • 1 reply
  • 290 views

Hello Community,

 

I'm using indesign server now for years but recently I have been asked to export to png with transparency. My indesign server version Adobe InDesign Server 2020 and when I try to run the following script:

tell application "InDesignServer"
set export resolution of PNG export preferences to 300.0
set PNG Quality of PNG export preferences to maximum

set myDocument to open "%s:%s.idml"
tell myDocument
export format PNG to "%s:%s.png"
end tell
close myDocument
end tell

 

I'm getting the following error:

 

Error Number: 30477

Error String: InDesignServer got an error: Invalid value for parameter 'format' of method 'export'. Expected tagged text/PDF type/EPS type/RTF/text type/XML/JPG/HTML/EPUB/fixed layout EPUB/HTMLFXL/InDesign snippet/InDesign markup/InCopy markup/PNG format/interactive PDF or string, but received PNG.

 

can you please tell me if this is a genuine limitation in indesign server? which would be very upsetting. as I'm getting pressure to find solution based on indesign. 

I hope it is just simple script issue. I need kindly your wise advices and help

This topic has been closed for replies.

1 reply

Community Expert
September 24, 2022

Change your export line to the following

export format PNG format to "%s:%s.png"

-Manan

-Manan
Participant
September 24, 2022

many thanks for your help. I have realised later form the error message. Sorry for my silly question.
Another question please @Manan Joshi  I'm trying to set the transparency and I'm using this line of code:

set PNG transparent background of PNG export preferences to true

However it does not work. Any luck if you know what tweak should I do.

 

again million thanks for your help

Community Expert
September 24, 2022

Try the following

set transparent background of PNG export preferences to true

-Manan

-Manan