CS3:How to link a file to a InDesign document?

Hello all,<br /><br />I looked at in the LinkWatcher sample code to get an idea how to link a file to a document, I came up with the code below, the last line of code needs pageitemUID instead of pageUID which I  used it here:<br /><br />IDFile outFile = Utils<ImyUtils>()->getMyFile(); // it reads the file <br />InterfacePtr<IDataLinkHelper> dataLinkHelper(::CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)); <br />InterfacePtr<IDataLink>      dataLinkNew(dataLinkHelper->CreateDataLink(outFile)); <br /><br />IDocument* theFrontDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();<br />IDataBase* database = ::GetDataBase(theFrontDoc); <br /><br />InterfacePtr<IDocument> piDoc(theFrontDoc, UseDefaultIID()); <br /><br />InterfacePtr<IPageList> pageList(piDoc, UseDefaultIID()); <br />     <br />UID pageUID(kInvalidUID);<br /><br />if (pageList->GetPageCount() >  0)<br /> {<br />     pageUID = pageList->GetNthPageUID(0);<br />}<br />// I try to link the file to the front document, although it say pageitemUID, as a second //parameter, but I don't want to link the file to a particular page item. is this a right thing to do?<br /><br />int32 result = dataLinkHelper->AddDataLink(database,pageUID, dataLinkNew); <br /><br />as I execute the code it doesn't add the file in  Link palette in CS3, but when I pass a UID of one page item such as text frame, it will add the name of file to link palette with a "1" comes to  end of row that shows how many times this file was included in the frame. but in case I have not a page item can I use the pageUID instead ?<br /><br />Thanks In Advance,<br />Mor

Lee,
Sorry I think I didn't use the right terminology, somehow I want to include/link the file (not with menu item 'place') programmatically in my current open Indesign document, then I expect to see the filename in Link palette. I can do this with linking to a page item in doc but I don't want to assign it to a particular page item, rather I want to assign it to doc. Is any approach to do it?
Thanks again,
Mor

Similar Messages

  • CS3:Problem in generating .ps file for an indesign document.

    Hello,
    I have ported a plug-in built for InDesign server CS2 to CS3.
    Generating ".ps" file is one of the functionality of my plug-in.
    But for the given document InDesign CS3 server Debug generated the following asserts in the server log.
    [21/05/2008 22:21:50] ~InstanceList(): 1 outstanding references to UID 2 (Class kRIDXBoss).
    [21/05/2008 22:21:50] ~InstanceList(): 1 outstanding references to UID 216 (Class kAssignmentBoss).
    [21/05/2008 22:21:50] ~InstanceList(): 1 outstanding references to UID 5 (Class kContentMgrBoss).
    [21/05/2008 22:21:50] ~InstanceList(): 1 outstanding references to UID 187 (Class kAssignmentBoss).
    [21/05/2008 22:21:50] ~InstanceList(): 1 outstanding references to UID 218 (Class kAssignedStoryBoss).
    [21/05/2008 22:21:50] ~InstanceList(): 1 outstanding references to UID 1 (Class kDocBoss).
    I have debugged the code and found that the following API is causing these asserts.
    IPrintSetupProvider::StartPrintPub( bool16 & bReturn,
    IDocument * iDoc,
    UIDRef & styleUIDRef,
    IPrintCmdData::PrintUIOptions & printPubUIOpt,
    IInkList * iInkList,
    ITrapStyleListMgr * iTrapListMgr
    when i shutdown the InDesign server got crashed.
    Can any one of you describe in detail the functionality of this API.
    I will be thankful if any one you can give some idea on how to resolve this issue.
    Thanks,
    sambolus.

    Lee,
    Sorry I think I didn't use the right terminology, somehow I want to include/link the file (not with menu item 'place') programmatically in my current open Indesign document, then I expect to see the filename in Link palette. I can do this with linking to a page item in doc but I don't want to assign it to a particular page item, rather I want to assign it to doc. Is any approach to do it?
    Thanks again,
    Mor

  • Embedding SWF file into an Indesign document and later export as PDF

    Hi to everybody,
    I am searching now since 3 days for good solution of my problem. First I wanna tell you that the problem is not just to convert a swf-file into a pdf.  I did this many times with all animations, page flip and stuff.My situation is the following:
    I have varios catalogues with  more or less 12 pages each in an indesign format. Now I created an animated scroll down menu, which appears on an "index-page". On the menu I created buttons. One button for each catalogue. So the idea of the whole thing is to open a document and an index page appears where you have the animated menu and you choose the catalogue you wanna see. Until here it is quite easy. I created a swf file of each catalogue with my animations (as the special page turnover e.g.). So that I just need von Object in with I can load the different swf-files of these catalogues. I already did the process. I linked the buttons to the different swf files and so. So the problem is now when it comes to convert the whole thing into a PDF. Of course I convert it first to swf and then to PDF. After converting it to swf it works 100% fine, but in PDF not, suddenly the swf-files of the catalogues disappear.
    So the summary is, that I don't know how to embed swf files into an indesign document, creat buttons and interactions next to swf file, then save it to another swf, and then to a pdf without losing the first swf files within the pdf.
    Hope I made my self clear would be too nice if someone could help me or if someone may have a better idea of realizing the whole project.

    Jeffrey,
    Thank you for the answer. As you have written:
    I will also add that the ID's play mode contol [plays once] [repeat play] does not always control the file once in Acrobat.
    I presume you mean version of ID older than CS4 or version of Acrobat Reader older than 9.1
    It that is the case I will strongly recommend my visitors to upgrade to this version.
    I hope that would work.
    Thanks again.
    Peter

  • How to link pdf file in flash by xml ??

    how to link pdf file in flash by xml ??

    try to give <a href="your address">My Pdf</a>
    and your textfield should be html enabled
    mytextField.html=true
    mytextField.htmlText=your xml text

  • I need to know how to link 2 files in 1 folder

    Can anyone tell me how to link 2 files in one folder?  They are currently in the same folder but I need to link them.
    Thank you!

    Now we're getting somewhere.
    Unfortunately, I don't know Word or Excel very well. It might be better to find assistance over in the Microsoft Word for Mac Forums:
    http://office.microsoft.com/en-us/mac-word-help/learning-roadmap-for-word-for-ma c-2011-HA103528093.aspx
    http://office.microsoft.com/en-us/mac-word-help/results.aspx?qu=Link+to+excel&ex =1&origin=HA103528093

  • Content of linked files in a inDesign-document refuses to update when edited.

    The problem:
    I have a question about linked files in an inDesign-document.
    We have a indesign-file (indd) wich contains text, linked map-illustrations and ads.
    One of the linked maps gets changed by an external map-producer via an VPN-tunnel. He works directly on one of the existing linked files (a map), and does not change the name or location of it after editing.
    After the change, we open the indd-file again, but no dialog-window appears telling us that a link needs to be updated. So we do it manually, but the changed content doesn't get updated in inDesign.
    If we target the linked file and choose to open it in illustrator for editing, all of the changes that was ment to be there, still is. It just doesn't show up in indesign. This also shows that the linking isn't the problem.
    The file is only placed at one spot in the document.
    Workaround:
    1. If WE (not the external map-producer) open the linked file and save it again (same name, same location), inDesign instantly promts us to update the link and the graphics updates without problem.
    2. If we place the file in a another location of the same inDesign-file, the correct content shows. (But still, the existing one does not update.)
    Question:
    Is there any way you can think of that could make this happen?
    If so, How can we solve it without having to use the workarounds?

    This will work if you all use the file syncing of the Creative Cloud desktop application and then you use the Collaborate option for the folder containing all the files. Then it will work on each of your desktops.
    Links to files will not work in the browser when viewing the InDesign document from https://creative.adobe.com/files.

  • "The selected package file requires an InDesign document that cannot be found."

    Hello,
    I often get this error message "The selected packaged file requires an InDesign document that cannot be found.  How do you want to continue?" when opening in InDesign CS5.5
    My options are "Browse to locate this document." and "Save the contents of the package to disk."
    When I selected "Browse to locate this document." and I located the appropriate InDesign file, it prompts me to browse for the file again.  Its a never ended cycle.
    I'm not sure how to solve this problem.  I'm not familiar with the procedure if I "save the contents of the package to disk."  Can someone help me out with this?
    Thanks!

    Well, there’s your answer. Pretty simple…don’t do that.
    But if the damage has been done, you can change the extension of the idap file to zip and unzip the contents. You’ll find all the updated InCopy stories there.
    Overwrite the ones on your harddrive and you should be good to go.
    Bob

  • Can someone please give me a step-by-step guide on how to embed a video in my Indesign document?

    Can someone please give me a step-by-step guide on how to embed a video in my Indesign document? I've got CS4 and I've tried to follow Adobe's instructions. Even Creative Suite 4 for Dummies. But I can't get it to work. And yes, I understand the video will only play when exported as a pdf -- not in the indesign document. Help! Donna

    Please repost in the InDesign forum along with full details including what the problem is.
    Telling us it doesn’t work is meaningless.
    Bob

  • InDesign CS6 Crash on placing a file on to indesign document  , Crash Report is attached .

    Hi ,
    InDesign CS 6 is working fine in Mac mini and in MacBookPro it always crash on placing a file on to InDesign Document .
    Crash Report : http://pastebin.com/fUPiYd0c
    I have tried :
    1) uninstalling and reinstalling CS 6
    2) Using with different accounts including admin
    3)Troubleshooting as below mentioned  :
    a)  Trash preferences   (cmd-opt-shift-control while starting InDesign) "
    Either corrupt preferences (as above), or perhaps the permissions on the folders that contain the preferences are such that InDesign can't properly write to them. ( it sometimes does happen).
    b) Deleting the below folders: Before deleting the below directories/files please take a backup(just for safe).  Quit In Design and  try removing the  following directories/files (InDesign will re-create them at start up):
    ~/Library/Application Support/Adobe/Adobe InDesign CS5.5
    ~/Library/Caches/Adobe InDesign
    ~/Library/Caches/com.adobe.InDesign
    ~/Library/Preferences/Adobe InDesign
    ~/Library/Preferences/com.adobe.InDesign.plist
    ~/Library/Preferences/com.adobe.InDesign.plist.lockfile
    ~/Library/Saved Application State/com.adobe.InDesign.savedState
    Note:  The user Library directory is hidden under MacPro/Lion. You can get there in the Finder by holding down Option and then going to the Go menu (other ways are fine too).
    Please let me know if i am missing something .
    Thanks in advance ,

    Thanks Peter this definitely helps me , let me validate and come back to thanks again .

  • How to link Excel file to Access

    Hello,
    I created a barcode database using excel and labview. Now i want this data to be in access as a database and continuosly update it.
    I have a doubt also as i have created excel sheet of various product barcode and there is always a new sheet that is saved when ever working( this is a requirement)  so how can i link all the file and creat one access database.
    Thanks in advance, Need urgent help
    Regards
    Naman Vaidya

    sorry for the confusion. 
    i want labview to link my excel and acess, so that a database is created.
    second thing is i am having verious barcode data like for eg. for product X i have a particular barcode and for product Y another so my software create a new excel file whenever we change a product or a particular quantity of any product is filled. Now the question is if everytime i creat a new excel how do i creat a single database by linking all files using labview.
    Thanks for the reply.

  • [CS3][JS] How to get the file type of current document

    Hi,
    How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
    I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
    If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
    Regards,
    Karthik

    Do you really need to know the file type? What about just checking the bit depth?
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
    doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    //do your save etc
    }else{
        //Ignore

  • How to create a link to a dropbox file in an InDesign document?

    I have an InDesign document where I have successfully inserted links to a homepage, but I would also link a file which I keep in my Dropbox. I.e. when people click on the icon/text in the InDesign document, I would like them to be taken to the download page in Dropbox.
    Simply marking the text and >add new hyperlink and copying the download link into the appropriate field hasn't worked so far.
    Thanks a lot for any help!
    Best,
    Marvis

    I just typed my email address in InDesign, and chose Create Hyperlink from the Hyperlink panel menu. Chose Email Address as the type. Added a Subject Line. It shows the email link in the hyperlink list.
    Exported the same way. Works fine in Acrobat. Clicking launches my email application:

  • How to link to file in new window?

    I'm building a portfolio site. Right now, I know that I can open a new window when linking to an external page or even one of my own pages. However, I want to link to files that will open a new window instead of reloading the current page. For example, I want to link to an HTML file that references a .SWF. The .SWF and HTML file are in the same folder, so it plays just fine, but I need it in a new window. Any ideas?

    In the Inspector, Link to external page, and open in new window.

  • How to import multiple XML files into one inDesign document without copy/paste ?

    I use InDesign CS6, and I have several XML files with the same structure. Only the data are different.
    I created  an Indesign layout with some tagged placeholder frames on merge mode, for automated layout.
    Today for each XML file I have to create a new InDesign document to import the XML. Everything works fine. Then in order to have all Indesign layouts one after the other into a single Indesign layout, I have to use the copy/paste function.
    I mean for example, copy the contents of all documents to the first one. Or add pages of other documents to the first one, then delete spaces between each page.
    So my question is the following:
    How to repeat this process without copy/paste function, knowing that the
    number of XML files could be unknown.
    Thank you very much for your answer.

    Yes, effectively I would like to catalogue the files into one collection so i can save as one PDF and Print as one.:)
    I know I could save each AI as a pdf them then merge the pdf's together in acrobat, but I have nearly 100 files so would feel more comfortable seeing them all together before print / saving.
    My concern is that if I insert them in Ai, will the file resolution reduce? and will the ai still be editable and would it update the indesign file?
    Thanks for the quick reply

  • Is it possible to link and update external files in a Indesign document when sharing the Indesign file in Creative Cloud with multiple users?

    I am new to Creative Cloud, but have been using Adobe software for many years.
    Now we are considering sharing an Indesign file with my project group using CC.
    The Indesign file contains links to external files (one Illustrator and multiple .txt files); and we export the approved version to an Hi-Res PDF.
    These .txt files are currently hosted on our internal server but have not been linked directly: we first copy them over to local desktop and update the links in Indesign before creating a new PDF. 
    Since these file can be update by different people we would like to keep them outside the Indesign and Illustrator files.
    Is it still possible with CC to link directly to the files on our server in Indesign and see if there have been updated?
    Or can they also be stored in the CC cloud? Or is there another method?
    Thanks in advance for any help or suggestions
    Ronald

    This will work if you all use the file syncing of the Creative Cloud desktop application and then you use the Collaborate option for the folder containing all the files. Then it will work on each of your desktops.
    Links to files will not work in the browser when viewing the InDesign document from https://creative.adobe.com/files.

Maybe you are looking for

  • Add new item in Search Panel

    Requirement: Within a query region, add a new field to the results table and enable search by this field. Approach: - I added a new column within the results table by extending the VO. The search allowed property for this column is set to Yes. - I ad

  • HT204380 Can I broadcast live on a web site using my iphone4 or ipad2?

    Is there any way that I can Broadcast Live using my iPad2 or my iPhone 4. Are there any apps that I can purchase to do so?

  • PHP form handler

    Hi, I've found a PHP form handler in one of the forums to process my feedback page. All works well but one thing I can't work out is when a visitor to the site fills in the info and clicks the submit button, that comes back to my mail box as expected

  • Setting a default announcements template

    Is there any way to set a specific template for use in every individual announcement? I can see how it can be set on a per-announcement basis, but I'd like there to be a default chosen for all.

  • Help for: Video 4:2:2 + Dolby Digital + Stereo

    Dear all I posted this stopic already here http://forums.adobe.com/message/2579911#2579911 and Bill Hunt suggested me to report here the issue in order to be able to get some help. Could you help me please ? ------- TOPIC Dear all In order to publish