Skip navigation
Currently Being Moderated

InDesign Server complains of missing links after importing InDesign Tagged Text

Sep 23, 2011 6:58 AM

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!

 
Replies
  • Currently Being Moderated
    Oct 18, 2011 2:11 PM   in reply to APMABC

    I don't know about taged text, but I'd try ...

     

    kSetLinkTextFilesCmdBoss "Don't Link Text Files"

    IID_IUIDDATA => kDocWorkspaceBoss

    IID_IBOOLDATA => kFalse

     

    matching that checkbox in document preferences / file handling ...

     

    Dirk

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 18, 2011 2:13 PM   in reply to Dirk Becker

    Oops, I should have read to the bottom. No idea yet.

     

    Sorry,

    Dirk

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points