Skip to main content

6 replies

dulajun
Inspiring
September 19, 2024

Using Tree Shade you can build the template using the CMS online interface through a Node.js server. Then using the template you can edit the website content in a dynamic and flixable approach to be reflected to the website and to a pdf through the InDesign extension that auto open the documents and export the output.

https://exchange.adobe.com/apps/cc/13737/tree-shade

Legend
September 6, 2024

Please clarify your scenario by an example and what you already got in place.

You got a web site (or idea) backed by dynamic data rather than displaying static pages. You would do that by any means that allows for execution at the server side (php, node.js, asp,jsp), connected to a separate storage system (mysql database) or intermediate higher level web services "API".

Then your objective is to turn that data into output supported by InDesign - (a PDF for delivery to the user of the website or to your own printer, other image formats, but could also be the mentioned "publish online").

The same way that your server side php/asp/jsp connects to its storage engine, it must also connect to InDesign.

For the beginning, let's say there is a strictly local web site on the machine of an "operator" that does not know to handle InDesign, on the same machine licensed for the operator. All they know is to open their browser window, click that "localhost" bookmark and press the button "print" on your web page.

This sends a http request to the local web server (e.g. php), which pulls the matching data from its database.

It then stores the data in an intermediate file, and launches a script on InDesign.

The script opens an InDesign template file, fills in the data from the intermediate file (by means of place, import or reading the file itself) and produces the output file (another intermediate file) or sends it straight to the printer. The script run ends and yields the result (e.g. file name of the output file) to your web server for final delivery.

How the web server (php) accesses InDesign differs on your choice of operating system. To them it is an external program at the command line. On the Mac you can use the osascript command to launch an AppleScript to tell InDesign to run whatever actual script we had above. On Windows it could be powershell or others using COM.

Above "operator" is also your developer environment. You maintain the local web site, edit InDesign templates, run scripts.

Scaling to a fancy big web site open to the world, or just to your corporate intranet, supporting hundreds of users in parallel instead of that single operator user, you will need multiple instances of InDesign. InDesign Server is made for this, and it also solves the problem that the web site users are not individually licensed to use InDesign – at a higher price tag. InDesign Server itself also is accessible via AppleScript or COM, but it adds a web protocol "SOAP" - basically again HTTP plus some XML data, so that the web server can bypass the external program call, and talk to separate machines. You may add a load balancer as intermediary to address the multiple InDesign Server instances, or restart them on failure. The principle remains the same – a script opens a template or creates a blank document, fills in the data and delivers the output.

m1b
Community Expert
Community Expert
September 5, 2024

Hi @kurama_uzumaki6225, you are talking about building a bridge between two worlds. Can you explain why you need a web page and an Indesign document to stay synchronized?

 

It would be simpler for you if you always went in one direction, and the simplest (and easiest!) approach would be, as @rob day suggested, to edit your indesign document and "publish online" after each edit. There is no true synchronization, but it is a rudimentary bridge, in that one direction.

- Mark

Known Participant
September 8, 2024
Yes, I think it's the same thing you mentioned. Can you recommend me?
Robert at ID-Tasker
Legend
September 5, 2024

@kurama_uzumaki6225

 

What exactly is your end goal? What are you looking to achieve?

 

Known Participant
September 5, 2024

I want to create a website where I write content such as news. I want the content I write on the website to be combined with frames in Adobe Indesign in a format that I have specified.
My problem is syncing data from my website database with Adobe Indesign. The sync on both sides is in real time. As I've described, I've seen it done before. But I don't know what to do.

Robert at ID-Tasker
Legend
September 5, 2024
quote

I want to create a website where I write content such as news. I want the content I write on the website to be combined with frames in Adobe Indesign in a format that I have specified.
My problem is syncing data from my website database with Adobe Indesign. The sync on both sides is in real time. As I've described, I've seen it done before. But I don't know what to do.


By @kurama_uzumaki6225

 

Then, I'm affraid, you need to use InDesign Server. 

 

BobLevine
Community Expert
Community Expert
September 5, 2024

I hate to throw cold water on this, but based on the questions you're asking here I can't see this happening for you. If it's truly something you need, then I think the only way forward is to hire a professional web developer. This is not something for the faint of heart unless you're okay embedding Publish Online documents which are not in any way shape or form, responsive.

Known Participant
September 5, 2024
This is very new to me. I want to study and do it before I give up.
rob day
Community Expert
Community Expert
September 5, 2024

InDesign is primarily a print page layout application. It has a very limited set of web related export tools. Other than the Publish Online Export there is an Interactive PDF Export, a very limited HTML Export, and an ePub Export—that’s all.

rob day
Community Expert
Community Expert
September 5, 2024

Hi @kurama_uzumaki6225 , InDesign is not a web editor. You would use a content management system backend like WordPress to handle data updates

Known Participant
September 5, 2024

I mean the sync between the web and adobe indesign, the sync between the data. I know I can. I've seen websites like this. But I don't understand how it works.

rob day
Community Expert
Community Expert
September 5, 2024

How do I start? What tools are needed? Which extension, and is Adobe Indesign Server involved?


Read the helpx page I posted.