Merging pages in C# with Hyperlinks (destinations empty)

Hi all,
I tried to merge PDF documents with CAcroPDDoc InsertPages. It works well. Now I have hyperlinks in my documents. After merging the documents the list of destinations is empty and the links are dead.
Does anyone know a solution to this problem?
With four your help
ctNoSpec

It's a bug/limitation of the COM APIs for page insertion.
Use the JSObject bridge to get to the JavaScript version and be sure to pass the right values for the insertFlags.
From: ctNoSpec <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Mon, 27 Feb 2012 06:05:55 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Merging pages in C# with Hyperlinks (destinations empty)
Re: Merging pages in C# with Hyperlinks (destinations empty)
created by ctNoSpec<http://forums.adobe.com/people/ctNoSpec> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4231932#4231932

Similar Messages

  • Paragraphs with hyperlink destinations ID [CS4/CS5][JS]

    Hi Scripters,
    Im running out of options this task is really tedious and i need help.
    I need a script that would create a hyperlink destination for a specific paragraph styles so that when i export to epub those paragraph styles will have id:
    <p class="para"><a id="p0001" />Sample text here</p>
    <p class="para-indent"><a id="p0002" />Sample text here</p>
    I hope i stated my case clearly enough.
    -CharlesD

    Hi Scripters,
    Im running out of options this task is really tedious and i need help.
    I need a script that would create a hyperlink destination for a specific paragraph styles so that when i export to epub those paragraph styles will have id:
    <p class="para"><a id="p0001" />Sample text here</p>
    <p class="para-indent"><a id="p0002" />Sample text here</p>
    I hope i stated my case clearly enough.
    -CharlesD

  • How to place an indesign page with hyperlinks in another indesign file, such that the links work?

    I have a page of text with hyperlinks in a master indesign file.
    I place that file into another indesign file.
    (It is like an html include file for a webpage.In this way i only have to update the file in one place.)
    But when i export the indesign file to pdf, the hyperlinks fail to work.
    They work in the original but not in the second.
    Does anyone have any suggestions?
    Abby Eagle

    My apologies. My tests were done using URLs. They function in Acrobat regardless of their state in InDesign.
    Aside to Bob: Since I had just made a PDF that worked, I mistook your "Since when" to mean since when won't a placed ID file work? I guess I was blind sided by the fact that the only hyperlinks I ever come into contact with are full URLs.
    If Abbey's situation is as I envisioned -- that the placed files are more akin to smaller graphics within the layout of a page rather than discreet pages at all -- then is this not a insolvable problem given how InDesign works now?

  • I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers.

    I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers. Any ideas?

    version 10.6.8

  • Embed Quicktime export with hyperlinks in web page

    I've got a project I exported from Keynote with hyperlinks -- forward, back, return to menu, etc.
    The links work fine in the Quicktime export playing in the player. They work fine if I open the file directly in a web browser.
    If I embed the file in a web page, however, the link functionality goes away, and it ends up as a 'click-to-advance' movie. Does anyone know if there's a parameter I need to include in the embed code to enable hyperlinks? I couldn't find any likely candidates in Apple's official list...

    My apologies; something must have gone wrong with my export. Tried again, and it works fine!

  • Possible bug with creating hyperlink destination while in story editor

    I'm just curious if anyone else is experiencing this and if it's proper behavior or a bug:
    I'm making manual cross references for endnotes in an ebook. To do this I'm creating hyperlink destinations for each endnote and endnote reference. I'm doing this in story editor because I can see the destination targets, however, I'm having a weird issue where when I hit enter when in the hyperlink destination dialog box, it closes and puts a hard return in my text. If I'm doing this in layout mode, I don't get the hard return--it's only in story editor. Creating a hyperlink and hitting enter on that dialogue box does not have the same behavior. It's just the "New Hyperlink Destination" dialog box that does it.
    Can someone else replicate this behavior: Open story editor for any length story. Select some text (doesn't matter where it is), and go to the hyperlink panel menu and select "New Hyperlink Destination" and then hit the keyboard "enter" [rather than clicking on OK] to close the dialogue box.
    When I do this on my Windows 8 laptop running the latest InDesign CC 2014, I'm getting a hard return that deletes whatever text was selected in the story editor. Is this supposed to happen?

    I'm just curious if anyone else is experiencing this and if it's proper behavior or a bug:
    I'm making manual cross references for endnotes in an ebook. To do this I'm creating hyperlink destinations for each endnote and endnote reference. I'm doing this in story editor because I can see the destination targets, however, I'm having a weird issue where when I hit enter when in the hyperlink destination dialog box, it closes and puts a hard return in my text. If I'm doing this in layout mode, I don't get the hard return--it's only in story editor. Creating a hyperlink and hitting enter on that dialogue box does not have the same behavior. It's just the "New Hyperlink Destination" dialog box that does it.
    Can someone else replicate this behavior: Open story editor for any length story. Select some text (doesn't matter where it is), and go to the hyperlink panel menu and select "New Hyperlink Destination" and then hit the keyboard "enter" [rather than clicking on OK] to close the dialogue box.
    When I do this on my Windows 8 laptop running the latest InDesign CC 2014, I'm getting a hard return that deletes whatever text was selected in the story editor. Is this supposed to happen?

  • Shared Hyperlink Destination now works with DPS

    The new revamped Hyperlinks panel automatically makes character style and color swatch to coloring links and now we can use Shared Hyperlink Destination function in DPS projects.

    The new revamped Hyperlinks panel automatically makes character style and color swatch to coloring links and now we can use Shared Hyperlink Destination function in DPS projects.

  • How to automatically create hyperlink destinations based on numbered list?

    I am very new to InDesign and am creating a template for an academic journal. Each article contains a list of references at the end and the references are cited in the main text (like what you see in Wikipedia if you are not familiar with scientfic journal articles). In exported HTML, the citation in the main text should be hyperlinked to the coressponding reference in the reference list. I have two questions:
    1) It is possible to ask paragraphy style to assign each numbered item a hyperlink destination? If this is possible, I can then manually inserted hyperlinks in the main text.
    2) one step further, is there any way (e.g. script) which can then insert hyperlink to those destinations based on pattern match? For example, in main text, the citation to reference #1 appear in the text as [1] which should be hyperlinked to reference #1.
    One more question, is there anyone who knows how academic journals handle the flow from InDesign to html? Certainly, the exported html cannot go directly online without further editing.
    Thank you.

    Hi Eric,
    I posted the script here. But it should be adjusted to your particular document. (Anyone with basic scripting knowledge can do this). I am sure it won’t work as it is. I assume that “comments” and “references” are in two different stories.
    Can I have the scripts from you (for a fee or free)?
    I don't sell my scripts: they're free.
    Can the scripts handle the pattens like these [3], [1-5], [3,4], [6, 8, 11-13]?
    This script can't, but another handles both single page numbers and page ranges like so:
    I can post it as well.
    Now I’d like to make one thing clear:
    I made a set of scripts for creating hyperlinks in InDesign documents for further exporting them to ePub/HTML. I can’t make a script that would work for everyone because all books are very different. I simply adjusted scripts for every book I had to work with (mainly changing GREP expressions and names of styles) and I have numerous variations of scripts. I can post them if someone is interested but you should be aware that they have to be reworked.

  • Cross-references to hyperlink destinations (text anchors) results in file slowdown

    I'm using text anchors for the first time in a 12-file book (~280 pages) for the table/figure list in the front matter. There are maybe 100 or so total cross-references in the front matter in tables (where one column is the text of the figure title and one column the page number).
    About halfway through the process of adding the cross references, things got reallllly slow, and only in that one document. So slow that reformatting became almost impossible, because of the delays.
    So I went through many of the usual troubleshooting steps, just in case. Trashed preferences, trashed the style, etc. I exported the file to IDML and created a new file from that. It helped, but I can tell that it's still not quite so snappy.
    My question, then, is if this is to be expected with what may be a large number of hyperlinks/text anchors? All the other files in the book act fine, so it's not an InDesign-wide slowdown. Are there any best practices when it comes to using hyperlink destinations?
    As an amusing aside, before I tried the troubleshooting steps I had a clever idea--to insert the cross references into a new, blank document and then paste them into the frontmatter file. Consist and ugly crashes to desktop resulted.

    George Krompacky wrote:
    Peter,
    Thanks for your reply. Yes, the TOC could do this and would be an easier approach. But I hadn't anticipated using it and so didn't have my ducks in a row as far as having the styles consistent for chapter titles, figures and tables. Next time I will do so. I can guess that as a TOC doesn't generate live links, it shouldn't have a performance impact like dozens of cross-references do.
    Yes, the TOC is inert except when it's being generated.
    Regardless of how "creatively chaotic" or "chaotically creative" your chapter, table, and figure title paragraph styles are, as long as all chapter titles are tagged with style names that are not used for figures or tables, and similarly figures and tables are not tagged with styles used for the "other," you can still generate a usable TOC. The idea is to capture all the paragraph styles for each category, and display each category's captured paragraphs as uniform TOC entries - i. e., all chapter title entries are the same, all table title entries are the same, and all table title entries are the same. If you don't want the categories intermixed, create a separate TOC for each category, place each TOC separately, unthreaded to other document frames.
    If you'd like to try a few things to see if it's possible to quickly remake the TOC and regain a responsive working document, before doing anything else, save the whole project to a secure place, and work on the copy. Then:
    * Move the Text tool insertion point to each cross-reference's destination by selecting the reference in the cross-reference panel and clicking  the right-pointing arrow on the panel status bar; then verify that the paragraph is tagged with an appropriate style that doesn't belong to the other category of TOC items.
    * After all the TOC-to-be items are identified and verified that they're tagged correctly, delete the text frame(s) that contain the TOC that's created with cross-references. All the references will break, of course. You've got the secure original project somewhere, right?
    * Set up the TOC roughly; just pick the paragraph styles for each category - chapter, figure, table, and generate a TOC for the book. Drag to place the TOC on a clean new page, and DO NOT THREAD THE TOC TO NON-TOC TEXT FRAMES.
    * If the extracted paragraphs are in their correct categories, you can create new TOC styles for the TOC entries, or, if they exist, assign them in the TOC setup dialog box, and regenerate.
    If this result gives you a sense of what needs fixing, and you have the time, refine the TOC styles so you can get the exact appearance you want. By avoiding changing the source paragraphs in the main document, you'll avoid any risk of reflowing anything. Finally, after the project's completely done and handed off, you can spend time refining the rogue source paragraph styles, IN A COPY, for use going forward.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Script to split threaded story but keep hyperlink destinations?

    I have a series of long CS6 documents in a book with stories running through many frames. These stories have many text anchors acting as hyperlink destinations within (and across) the files. 
    Each story needs to be split into separate frames.*
    The script SplitStory.jsx does exactly this, but in the process it breaks my hyperlinks to destinations anchored in the text of the story being split.
    The problem seems to be that a hyperlink destination does not "carry" the correct information when duplicated, and the script duplicates each frame before removing it.
    A manual solution
    I have found a manual way of producing the desired result:
    Unlink the last frame in the thread,
    Cut (not copy) the overmatter from the penultimate frame,
    Paste into what was the last frame (which is now a standalone frame).
    Repeat recursively until the entire story is reduced to standalone frames.
    This seems crying out for a scripting solution: it may even be relatively simple? But I cannot find anything suitable and my javascript is not good enough to write one from scratch.
    Could anyone offer any suggestions?
    * As an aside, I need to split the stories into separate frames so that all the text on a given page gets extracted to a text file together. Otherwise all the text in the main text thread gets extracted and then our software "mops up" display quotes, etc. This is not acceptable in my scenario.

    It seems that Rorohiko's plug-in TextStitch will automatically de-thread linked frames whilst preserving the destinations.
    I Rorohiko

  • Spreadsheet into Hyperlink Destinations

    I'm trying to find a way to generate hyperlink destinations automatically from an Excel spreadsheet.
    We gave a spreadsheet to the client with the names of images used in the document. They are placing these images on their websites.
    They will then send back the spreadsheet with the URL of where these links appear on their site. We will then attach hyperlinks to the images in the document that, when exported to PDF, will bring up the relevant page on their site.
    On top of that, each hyperlink will have at least 10 different destinations, as the images appear on multiple sites.
    We have many images to create hyperlinks and destinations for, so I'm trying to automate as much as possible. To that end, is there a way to somehow bring in that spreadsheet in such a way as to create named URL destinations? It seems like a relatively simple task, but the hyperlinks palette is clunky, at least compared to other operations in InDesign.
    Thanks

    > I'm trying to create links from a webpage to specific spots in a pdf.
    This makes it sound like you need links from a webpage to a PDF.
    > I can get it to work perfectly if I create the hyperlink destinations
    > in the pdf, using the Acrobat software.
    But this makes it sound like you need links from a PDF to a webpage.
    > When I try it, though, I can't get the
    > webpage link to go to the destination, only to the top of the pdf.
    And this makes it sound like you're linking from webpage to PDF.
    Which one are you doing?
    1) If you want a link from a webpage to a PDF, the link must be in the
    webpage.
    2) If you want a link from a PDF to a webpage, the link must be in the PDF.
    I can help you with #2. I could probably help you with #1 too, but I
    don't think I would use Indesign.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Shared Hyperlink Destinations Unpleasantness

    Where I work, we've upgraded from CS1 to CS6.
    We've created many newsletters in InDesign (40+ pages each; 1 per month) that have hyperlinks.
    Working with the Hyperlinks and Hyperlink Destinations, while rather cumbersome before, was manageable.
    However, in CS6 an aspect of it makes them unworkable.
    First off, we're working in a new newsletter that has essentially been opened and converted from a previous month's CS1 version to the new CS6. It carries forward all the previous hyperlinks, naturally. However, InDesign treats all of these as "shared" hyperlinks.
    So, when I have to troubleshoot a link, I can straight up delete the link and create a new, unshared URL-type link.
    No real problem, except having to write down where the link goes and retype it into the new link creation dialog, since I can't select the original and copy & paste it.
    However, if I accidentally forget to avoid opening Hyperlink Destinations like the plague, then all the Destinations created previously in CS1 will be accessed in order to open that pallet. Since all "shared" Destinations are stored in whatever original document they were made in apparently, that means InDesign will open and convert effectively every single CS1 INDD that still shares a link in common or that still has a Destination listed in the palette ... or something.
    This process takes about 1 hour (or more) and effectively hangs InDesign for me. I can not cancel the process (that I've found yet); I can not close the palette before it's refreshed and processed every single Destination; I have to manually hit Esc or click cancel on every single Destination as it tries opening it if I wish to try short-circuiting the process (which means I'll still have to sit there for at least half an hour, since there's so much time between each dialog that pops up).
    I'm not the one who generally works in the file doing all the design work; I'm the one who does the processing for creating the PDF for the web. I'm willing to understand and work with InDesign to a fuller extent of its capabilities, but the actual designers are generally as ignorant as they can get away with about InDesign's tools and innards.
    They're the ones that work with and create the links (until there's a problem, then it's me); and getting them to clean up their methods or to at least only create "unshared" hyperlinks going forward is pretty much impossible.
    If somebody doesn't know a way to get around this problem, then I have a request that an update to InDesign is implemented to accomplish any of several things:
    • All "old" Hyperlink Destinations are not created as shared ones, thereby avoiding InDesign's desire to open and convert all the old INDD files.
    • All shared Destinations are stored elsewhere, not in their original INDD (or whatever is going on with them right now).
    • Implement a method to short-circuit this update process (like hitting Esc exits the opening of the Hyperlink Destinations palette, or prevents the action if I masochistically try selecting and editing a Hyperlink Destination once it opens, etc).
    Thank you, especially if there's any help getting around the problem short of me deleting all Hyperlink Destinations (once I get the palette open and sitting still again) to force the designers to start over.

    > I'm trying to create links from a webpage to specific spots in a pdf.
    This makes it sound like you need links from a webpage to a PDF.
    > I can get it to work perfectly if I create the hyperlink destinations
    > in the pdf, using the Acrobat software.
    But this makes it sound like you need links from a PDF to a webpage.
    > When I try it, though, I can't get the
    > webpage link to go to the destination, only to the top of the pdf.
    And this makes it sound like you're linking from webpage to PDF.
    Which one are you doing?
    1) If you want a link from a webpage to a PDF, the link must be in the
    webpage.
    2) If you want a link from a PDF to a webpage, the link must be in the PDF.
    I can help you with #2. I could probably help you with #1 too, but I
    don't think I would use Indesign.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Unchecking "Shared Hyperlink Destination" causes InDesign CS5.5 to crash

    This occurs on multiple Macs (running either Leopard or Snow Leopard) in our office. The links are connected to conditional text in InCopy. Here's the scenario:
    1) Open the InDesign document and select the linked text.
    2) Get a dialog box: "You must check out the contents of this frame in order to make changes. Check out now?" Click "Yes."
    3) Copy the text of the link, right-click and select "New Hyperlink."
    4) In the "New Hyperlink" window, paste in the text of the URL (leaving in the http://).
    5) Uncheck "Shared Hyperlink Destination." InDesign immediately crashes.
    I've been told by our designers that you have to uncheck "Shared Hyperlink Destination" to prevent changes to all of the other related links in the document. I don't work with InDesign on a regular basis and have very limited knowledge of InCopy. I tested the current version of InDesign (7.5.3) on my Mac and the same crash occurred.
    Here is the first part of the crash report:
    Process:         Adobe InDesign CS5.5 [6458]
    Path: /Applications/Adobe InDesign CS5.5/Adobe InDesign CS5.5.app/Contents/MacOS/Adobe InDesign CS5.5
    Identifier: com.adobe.InDesign
    Version: 7.5.2.318 (7520)
    Code Type:       X86 (Native)
    Parent Process: launchd [3125]
    Interval Since Last Report:          4473638 sec
    Crashes Since Last Report:           38
    Per-App Interval Since Last Report:  2159305 sec
    Per-App Crashes Since Last Report:   15
    Date/Time: 2012-05-03 12:29:26.452 -0700
    OS Version:      Mac OS X 10.5.8 (9L31a)
    Report Version:  6
    Anonymous UUID: 14200E2C-6A0E-4571-B96F-268BF9F135D1
    Exception Type: EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
    Crashed Thread:  0
    Thread 0 Crashed:
    0 ...e.InDesign.Hyperlinks Panel      0x23929fa5 GetPlugIn + 117525
    1 ...e.InDesign.Hyperlinks Panel      0x2392b103 GetPlugIn + 121971
    2 ...e.InDesign.Hyperlinks Panel      0x2393f28a GetPlugIn + 204282
    3 ...adobe.InDesign.AppFramework            0x19697e37 GetPlugIn + 45687
    4 ...adobe.InDesign.AppFramework            0x196983f9 GetPlugIn + 47161
      5 PublicLib.dylib                  0x01786b49 CSubject::Change(IDType<ClassID_tag>,

    Thanks to you both. Excuse my ignorance - I presumed that 7.5.3 was a paid-for-upgrade to Creative Suite 6 (or higher?!)... I thought I had the Updater set to prompt me for updates, but I obviously didn't.
    Anyhow - I've since run the updater, but the crash happens the same way. Here's the new crash report.
    http://pastebin.com/JNvtTRbn
    Hopefully there's something of use in this - I really don't want to have to manually do this: I have nearly 200 film titles that need to be listed in alphabetical order with their respective page number, and the TOC feature would be the perfect solution if it actually worked...
    As a matter of interest, how stable is Creative Suite 6 / Creative Cloud? Worth the leap?

  • PDF with Hyperlinks to Flash/Flex

    My company is looking for a solution to put our print catalog
    online, with links from each part number. Here is a sample of
    this...
    http://www.nxtbook.com/nxtbooks/nimco/redribbonweek07/
    Our catalog has approx. 30,000 part numbers in its 280 pages.
    I have a PDF that contains hyperlinks to each part number on our
    site. I would like to be able to merge the incredible flexbook
    found at
    http://www.quietlyscheming.com/
    with our own catalog and keep the hyperlinks.
    NXTbook was able to take our hyperlinked PDF and create a
    flash-based catalog complete with hyperlinks intact, but my company
    wants to host it on our own servers for shopping cart reasons. So,
    I know this can be done.
    Are there any Flex/Flash gurus out there who can point me in
    the right direction?
    Thanks in advance.
    Randy

    hi
    flash.net is the package you need on flex, inside it you
    several methods that can help you, 2 of them are:
    URLVariables and navigateToURL
    look at them and if you can't do it, just hire me, i'll be
    glad to do it :D

  • PDF document on iWeb page - Can't get hyperlinks to work

    I have dragged a .pdf file which contains working hyperlinks onto my iWeb page. The .pdf file displays properly but the hyperlinks are inactive. Is there a way to make them work? I do not wish to use an iFrame because I don't want the clickable links to open in the iFrame.

    Hi Old Toad,
    Thanks for the reply. I'm not sure I understand. My PDF file, which originated as a Numbers table, contains a numbered list with hyperlinks to outside sites. I exported the Numbers document as a .pdf, then dragged that onto the iWeb page. I see that if it is being converted to an image, the links won't work once placed on the iWeb page. When I tried to use the iFrame widget from your site, here: http://web.me.com/toad.hall/Demo1/Scrolling_TextBox.html, the links worked but the URLs opened right in the frame. Is there a solution that will make the links open in another window given that my file is made in a Numbers file converted to PDF? Thanks much for your help and for all the great resources on your site....

Maybe you are looking for