5 Replies Latest reply: May 18, 2012 12:45 AM by APMABC RSS

    InDesign Server complains of missing links after importing InDesign Tagged Text

    APMABC

      Hi Folks,

       

      In my plug-ins for InDesign CS5/5.5 desktop I'm importing InDesign Tagged Text via the method IImportSuite::DoImport(). The code goes something like this...

       

          InterfacePtr<IImportSuite> ptrImportSuite(static_cast<IImportSuite *>(Utils<ISelectionUtils>()->QuerySuite(IImportSuite::kDefaultIID)));

       

          if (ptrImportSuite != nil)
          {
              IDFile TaggedTextFile;

       

              if (CoreFileUtils::CreateUniqueTempFile( "My Tagged Text ", "", TaggedTextFile ))
              {
                  if (WriteToFile( TaggedTextFile, TaggedText ))
                  {
                      URI ResourceID;

       

                      if (Utils<IURIUtils>()->IDFileToURI( TaggedTextFile, ResourceID ))
                      {
                          ptrImportSuite->DoImport( ResourceID,
                                                    DocumentReferenceID.GetDataBase(),
                                                    kTrue,
                                                    kMinimalUI,
                                                    kTrue,
                                                    kTrue,
                                                    kFalse );
                      }
                  }

       

                  TaggedTextFile.Delete();
              }
          }

       

      The tagged text is imported with no problems and is correctly formatted . I can save and reopen the document with no problems.

       

      Now if I open the same document via InDesign Server, I see this...

       

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877211421

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877212218

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877212984

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877213234

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877213406

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877213609

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877213875

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877222812

      09/23/11 13:40:04 ERROR [link manager] Link missing.; file:c:/TEMP/My%20Tagged%20Text%20480877238171

       

      The document has opened and I can edit the imported text - so it would appear that the text is embedded in the document. But InDesign Server is complaining that links to the text files are missing. Which should it be - no embedded text with linked files or embedded text and no linked files? What I'm after is embedded text with no linked files as the files are temporary and only a means to an end.

       

      If I open the document in the Desktop application, the Links tab is not showing any links, which is what I'd expect. So what's up with Server? I should also note that in Preferences\File Handling\Links "Create Links When Placing Text and Spreadsheet Files" is using the default setting - unchecked.

       

      Any insight on this would be appreciated.

       

      Regards,

       

      Andrew

       

      PS - I'm on holiday next week!