script auto populate from url web page
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / script auto populate from url web page
- This topic has 2 replies, 3 voices, and was last updated 6 years, 3 months ago by Kasyan Servetsky.
-
AuthorPosts
-
-
December 28, 2017 at 1:37 am #100634Enrico IppolitoMember
HI,
do we have any script or similar to auto populate and indesign file from URL or web page?
I have a WordPress site and I would like to convert web page modified frequently in PDF but customizing the first cover and the final cover. The problem is that I have different web pages with different covers to be customized.
I was thinking whether possible to create like a form that automatic import text and image from the url.
Thank you for you assistance, Any solution really appreciated.
-
December 28, 2017 at 12:07 pm #100638David BlatnerKeymaster
Importing HTML is not a strongpoint of InDesign. I hope Adobe will add this feature in the future.
In the meantime, Ariel at ID-extras came up with a test script: https://www.id-extras.com/html-import-script
-
December 29, 2017 at 4:08 pm #100672Kasyan ServetskyMember
I can’t see the code of the script that David mentioned because it’s in a binary format, but I think it uses the same approach as the script I recently posted: https://kasyan.ho.com.ua/tips/indesign_script/web/alternative_to_socket.html
Note: it performs exactly the same task in two ways: using 1) the socket object (slow) and 2) a shell script (fast).I see it as a two steps process:
1) download raw html from a web-page to InDesign file
2) interpret it into something useful: e.g. with a series of find-change GREPs. I guess Ariel’s script finds text in between tags, applies corresponding styles and removes tags.Also, read/listen to the Kris Coppieters’ post in his blog where he explains how to download things from Web to InDesign: https://rorohiko.blogspot.com/2008/07/lightning-brain-podcast-click-here-to.html
Here I collect examples of InDesign interacting with Web (only those that were tested and worked for me): https://kasyan.ho.com.ua/tips/indesign_script/web/web.html
Of course, there’s no a ‘ready to use’ script for you, but probably such a script can be developed.
— Kas
-
-
AuthorPosts
- You must be logged in to reply to this topic.