Skip to main content
Participant
February 3, 2018
Question

Window.print() is not working in indesign 2017 cep extension in InDesign SDK

  • February 3, 2018
  • 1 reply
  • 707 views

We want to print pdf of extension (HTML5 javascript) window in indesign using javascript's window.print() and it is working in indesign 2018 but not working in indesign 2017. Can anyone help me for this issue. My index.html :

<body>
...some html content
<button type="button" onClick="window.print()">Print Page</button>
</body

in 2018 this prints the page in pdf correctly but in 2017 it prints nothing

This topic has been closed for replies.

1 reply

Participant
February 6, 2018

Its working in mac platform but not in windows platform

Trevor:
Legend
February 6, 2018

Works by me on Windows InDesign 2017.1 Cep 7.0

I typed window.print() in my CSTK js console there and it came up with the print dialog.

Try it out. CSTK In Adobe App Console and Development Tool | Creative-Scripts.com

Participant
February 7, 2018

Thanks for your answer

windows.print() opens a print dialog window but when I click on print as pdf option and save the file with given name it saves/prints nothing.