Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
10

Is it possible to create HTML element on document?

Community Beginner ,
Feb 05, 2024 Feb 05, 2024

Evan35230914qjbh_0-1707185236655.png

 

can we create a visual layout that looks like the UI shown in the image within an InDesign document using ExtendScript? It seems that I can’t find any API to create an HTML-like element.

 

TOPICS
Print , Scripting
330
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2024 Feb 06, 2024

Maybe try radioButtons. I don’t know whether and if so, how, they appear when you export them to HTML though.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 06, 2024 Feb 06, 2024

Hi, I am new to ExtendScript. I tried the radioButtons, but it does not look like what we normally see radioButton in HTML. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2024 Feb 06, 2024

Do you want just visual effect - or functionality? 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 06, 2024 Feb 06, 2024

I just want to render the UI as the visual effect and export the InDesign file to PDF. Thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2024 Feb 06, 2024

I'd simply use styles to create the components and effects. Not sure why a 'live function' approach is needed. (Actually, to be honest, I'd probably use Illustrator, although I'm not bad at technical illustrations in ID...)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 06, 2024 Feb 06, 2024

'live function' is not needed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2024 Feb 06, 2024

Right—so use the 'dead function' of just drawing what you want this panel to look like. Building a whole script to build a 'live' interface panel so you can take a picture of it seems... overly complicated.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2024 Feb 06, 2024
LATEST

Two cell table inside a TextFrame. 

Set rounded corners for the TextFrame. 

Copy&paste this TextFrame as InLine object in your destination Story. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines