Substitution for "Named Destinations"

I'm using Named Destinations via Java Script and this works quite well. The disadvantage is the additional filesize (about 1kB) for every Named Destination (my PDF file has some 500+ of it). I'm looking for a possibility which yields the same result but without storing the relevant Informations permanently in the PDF file. Based on the position (x,y) and zoom factor the functionality should work from within Java Script.

I don't have sample code for this, although I have written scripts that do very similar things.
Basically you would need to save the viewState property when adding the "destination" and later on apply it when the user wants to go to that destination, or when your code does so.
However, unlike with the built-in Named Destinations, JS-based ones will not auto-update when pages are added/removed/moved around in the document, so the entire system will easily break when such an operation takes place.

Similar Messages

  • Links to named destinations in IFRAME positioning the PDF a page and half past

    I created a PDF file w/ named destinations so that I can allow the Internet user w/ browser and Acrobat Reader plug-in to link to specific sections of the PDF. The zoom is set to Fit Horizontally, and the position is the top of the page in my example PDF. I used Acrobat Pro 8.1 to create the PDF.
    Problem is when trying to load the PDF into an IFRAME, displayed with the named destination using a tag like:
    <a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1000#view=FitH&nameddest=Mission" target="myframe" >Click 1 </a>
    When clicking on the link to the named destination, the .pdf is loaded or reloaded into an IFRAME and the page with the named destination is usually correctly displayed. Only in IE 6,7,8 the pdf will frequently (about 1 out of 4 times) be positioned a page and a half past the named destination.  Clicking to a different link, and then back to the original link will usually reposition the PDF correctly. Chrome and Firefox always position the PDF exactly to the named destination.  I'd like to know how to create the named destination so that it will always be positioned correctly, or to use a different link that will always position correctly.  I'm using Reader 9.1.2
    HTML:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    </head>
    <body>
    <p>
    <a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1000#view=FitH&nameddest=Mission" target="myframe" >Click 1 </a> <p>
    <a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1100#view=FitH&nameddest=Highlights" target="myframe">Click 2 </a> <p>
    <a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1200#view=FitH&nameddest=Trustees" target="myframe">Click 3</a> <p>
    <a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1201#view=FitH&nameddest=Statement_of_Op erations" target="myframe">Click 4</a> <p>
    <a href="http://intranet" target="myframe">Click 5</a> <p>
    <iframe name="myframe" width="100%" height="800">
    </iframe>
    </body>
    </html>

    I'm working with Lyle on this, and I have done some additional testing.
    What I found is that the positioning for named destinations seems to work ok with IE8 when the html page and pdf file are located on one of our external web servers (rather than local intranet servers).
    I am wondering if this is due to the latency involved in downloading the file, allowing the DOM to register the plugin?
    I've posted a query at Microsoft's forum, but they are pointing me back to Adobe...saying they cannot know how the plugin handles rendering...even though I responded that it seems to work across the board with Firefox and Chrome.
    Here is my thread in the Microsoft forum.
    Erratic Behavior with PDF named destinations
    http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/4f6adaa2-de8f-47d6-b e4b-444edfdd26d7/

  • FM10/Acrobat X 10-use named destinations for PDF linking

    My company wants our documentation to be accessible from a web page. No problem there. But they want to provide users with links that open the PDF files to a specific section.
    My books are in FM10. I created hypertext named destinations (example hyperlink syntax: newlink alarm) at the points where they want to open the PDF. I then saved the book to PDF, with the Create Named Destinations for All Paragraphs check box selected.
    We are now trying to build a link from the web page to open the PDF at the named destination. Here is some info from the web developer on his syntax:
    These zoom but do not position you to the named destination:
         <a href="Documentation/IO.OS 2.1.3 Technical Overview.pdf#nameddest=alarm&zoom=40">Tech Doc</a>       
         <a href="Documentation/IO.OS 2.1.3 Technical Overview.pdf#alarm&zoom=40">Tech Doc</a>
    This positions to the indicated page and zooms:                   
         <a href="Documentation/IO.OS 2.1.3 Technical Overview.pdf#page=20&zoom=40">Tech Doc</a>
    What are we doing wrong? I've been searching the forums and community help and we've tried all the syntax examples we can find. Thanks so much for any help you can provide!

    Hi Kim,
    Our team recently found a way to put custom named destinations in our FrameMaker files that can be used for linking to specific places in the PDF output (with no strange alphanumeric codes added to the named destinations).
    The named destinations are anchored in FM so they stay with whatever heading/text/graphic/etc they are "attached" to, even as content is added to/removed from the FM files.
    Will the following work as part of the solution you're looking for? (We're also using FM10 and Acrobat X.)
    In FM, insert a new text frame object.
    Type the following code in the text frame: [/Dest /Help123/Dest pdfmark
    where “Help123” is the name that will appear in the PDF for this named destination. This is name you would use in your hyperlinks. Our programmers use this name for the context-sensitive help links in the user interface.
    Right-click on the text frame and select Object Properties. Click to select the PostScript Code check box, then click the Set button.
    NOTE: Once the PostScript Code check box is selected, the text in the text frame cannot be edited. To edit the text in the text frame, you have to first turn off the PostScript Code option, edit the text, and then turn the PostScript Code option back on.
    Select the text frame object, then cut and paste to create a new instance of it. This places the text frame inside an anchored frame.
    You can now “attach” the anchored frame to whatever heading/figure/text/etc the named destination should link to.
    Here's the catch. To get the named destination in the PDF output, you can’t use the “Save as PDF” command in FM – you must print to PDF instead:
    In the FM file, click File >> Print Setup.
    Select Adobe PDF in the Name drop-down list, then click the Properties button.
    Deselect the Rely on system fonts only; do not use document fonts check box, then click OK.
    Click OK.
    Click File >> Print.
    Select the Generate Acrobat Data check box.
    Click the PDF Setup button to define bookmark links, print quality, etc, then click the Set button when done.
    Click the Print button.
    The generated PDF file should contain all the bookmarks you’ve defined as well as all the named destinations you added (with the exact names you specified).
    Hope that helps. Thanks, and good luck,
    Jason

  • To create link for the selected named destination..

    Hello,
    I am getting list of Named Destinations(Title of the named destinations) using cos object values.
    I will be storing those titles in combobox. I want to create link for the selected named destination.
    I tried to set destination for the link using cos object value of the selected name destination.
    cosPageValue is cos object value of named destination.
    CosObj cosArrayDest = CosNewArray( cosDoc, true, 2 );
    CosArrayPut( cosArrayDest, 0, cosPageValue );
    But it has given me an Unhandled Exception.
    I am not able to get destination page number for the named destination.
    Please suggest me how do I can create link for the selected named destination?
    Thank you,

    I seem to recall (don't have the docs handy) that there is a higher level
    PDDest object and a PDAction object - you might want to look at using those
    higher level objects (created via PDXXXFromCosObj) if you are having trouble
    working with Cos.
    Leonard

  • Pdfmark code in MS Word 2008 doc doesn't seem to work properly to create Named Destination

    Hi all,
    I've been having trouble with creating Preview-compatible Named Destinations in Acrobat 9.x (see http://forums.adobe.com/thread/770470?tstart=0).  Distiller, on the other hand, appears to create compatible Destinations, so as a last-ditch effort, I tried to go back to my original source file (Microsoft Word 2008 document) to use Distiller's pdfmark functionality, to see if maybe I could finally get a PDF with Preview-compatible Destinations.
    Following instructions found elsewhere on this forum, I went into Word and inserted the following field into a test location in my document:
    PRINT "[ /Dest /testdest /View [ /XYZ null null null ] /DEST pdfmark"
    This field code is supposed to then cause a pdfmark to be inserted into the resulting PostScript and/or PDF files.  Distiller is supposed to understand this and turn it into a Named Destination called "testdest."  However, it doesn't seem to work - I don't see the pdfmark code in the PS file, and the PDF file doesn't have any Named Destinations in it.
    I'm using Acrobat 9.x on Mac OS X 10.6.5, so I tried this two different ways:
    1) Using the "Print to Adobe PDF" workflow (which replaced the "Adobe PDF Printer" from previous OS/Acrobat versions) - this automatically generates a PDF via (presumably) an API call to Distiller... and
    2) Using the "Print to Postscript" workflow to generate a PS file, which I then ran through Adobe Distiller.
    In neither case did I end up with a named destination in the PDF file, as I was supposed to.  In case #2, even the Postscript file didn't have a pdfmark embedded in it.  Thus, I'm assuming that perhaps this is particular issue may be a problem with MS Word 2008 rather than with Acrobat... but I'm hoping someone might have a clue as to how to fix it.
    I welcome ideas on how to get Word 2008 to properly output pdfmark code, so that Distiller will pick it up and properly embed a Named Destination into the PDF...
    Thanks in advance.
    (If anyone has ideas about the Preview-compatible problem, linked above, that would also be great!)

    You're suggesting that it was never fixed from Word 2004 to 2008?  Possibly.  I wonder if it's fixed in Word 2011?  Anyone know?  But is it really a Word problem, rather than a Distiller issue?
    I appreciate your offer, though I do have access to Word on Windows (2003, I think), so I could try Distilling there... I only worry about formatting, since there are minor differences (e.g. font kerning, etc.) between Mac and Windows that are subtle, but sufficient to create formatting issues for very long documents (e.g. pushing figures onto the wrong pages, etc.).  That would be a rather big problem.
    The question remains whether this is an issue with Word or Distiller, though... and whether it's fixed in Distiller X and/or Word 2011.
    Adobe, care to comment?
    I'd really love to find a proper Mac solution, if one exists... it would be rather a slap to Mac users if a solution doesn't exist.

  • Creation of substitution for populating field like segment

    Hi Friends,
    It is an  requirement with my client as they have a customized field called Customer Segment Not like SAP standard Segment and they want to populate customer segment in all the records or all the documents posted.
    Luckily, they have only one Customer segment and they want all the documents posted should populate this field by using substitution. I want a help out of you as how do I can write the substitution for this scenario. The customized field is named as YYCSG.
    Regards,
    Shilpa

    Hi,
    Can you please tell me the way to substitute by using VWTYGB01 ? Can you please elaborate this ?
    Regards,
    Shilpa

  • How can I jump to a named destination?

    I have separate Framemaker files for sections for which I specified a named destination at title. These sections are imported by reference into chapters of a number of books. Within the book I want to jump for example from chapter 2 to a section in chapter 3. Normally I would use a cross reference, but that does not work with an imported file. I tried to do this with a named destination, but it seems that Framemaker cannot jump from one chapter to another using a named destination. Does anyone know how I can jump from one chapter to imported file in another chapter?
    See attached structure drawing: Named destination problem.ppt

    Am 24.09.2009 um 13:19 schrieb JeroenW5:
    It was helpfull but it does not solve my problem. The gotolink 
    command is also in an imported file. I have all sections in separate 
    files that are reused accross several books.
    So the gotolink I have is for example from the file section 1 to the 
    file section 2. With the command gotolink section1.fm:destination1 
    it work when I open the file Section1, but it does not work in the 
    book where the file section 1 is imported in chapter 1 and the file 
    section 2 is imported in chapter 2.
    When I setup the command for the book gotolink 
    chapter2.fm:destination1 it works in book 1, but not in book 2, 
    because it has a different filename for chapter 2 or the section 
    with the named destination might be in another chapter.
    Okay, I should have looked at the PPT. But I understand that you are 
    working with "text insets".
    When you import some text into another document "by reference" the 
    text is nevertheless completely copied into the (I call it) container 
    document — other wise FrameMaker would have a hard time getting the 
    formatting and numbering right.
    But, the target file name has changed and I know of no way to have 
    that fixed automatically by FrameMaker.
    In a similar setup I created a FrameScript script program, which 
    checked all cross-references and changed the target file name to that 
    of the container file.
    - Michael

  • Prevent document name from appearing in named destinations?

    Is there a way to prevent the InDesign document name from appearing as part of the named destinations that get automatically generated when exporting to PDF?
    For example, I add a text anchor named "Help" to a particular heading in an InDesign document; I want a named destination in the exported PDF file that is simply named "Help" but instead the named destination in the PDF appears in this format:
         InDesignDocumentName.indd:Help
    (I understand I can modify the named destination in the PDF file, but that solution won't work for what I need to do.)
    I am using CS5 and Acrobat X Pro.
    Thanks in advance,
    Jason Nichols

    Links can have destinations to more than one document, therefore the  Destination name: will need to declare what document it is referencing, even if only one doc is used.
    However on the mac I was able to save a document with just a space, and no file extension. In the PDF for the link properties and destination name I see this: Destination name: :Help

  • Named destinations within a file on a network

    Is it possible for a PDF document to reference a specific destination page within another PDF file stored on a network? I'm familiar with the mechanism to do this in an html reference to a server file (#page=7 or #nameddest=), but it doesn't seem to function within a network.
    Thanks in advance,
    Cliff Ober

    Cliff,
    I would say no. Adobe's "Parameters for Opening PDF Files" says "You can open a PDF document with a command or URL that specifies exactly what to display (a named destination or specific page)..."
    The key here is it is via command or a URL. PDF-to-PDF links in a network setting don't fit into either picture.
    --GMc

  • CFDocument and PDF Named Destinations

    In essence I am building a single merged document (PDF)
    combining a single HTML document and n number of names from a SQL
    database. My plan is to use CFDocument to create a complete page
    set for each individual in the database and tack it on to the end
    of the PDF.
    As I process each individual I would like to insert a Named
    Destination in the PDF for that person at the beginning of their
    Page Set. Does anyone know how this can be done? Your help is
    greatly appreciated.
    Would it be better to use CFReport for this merge process?
    Can you add a Named Destination in CFReport generated PDF?

    Functionally, it appears that processing the allowed PDF parameters after opening a PDF involves (1) open the PDF then (2) process the parameter or parameters.
    Once the target PDF is "open" a second pass that attempts to process a parameter or parameters, on the now open PDF seem to not "take".
    So, typically, after open-process parameter(s) happens the PDF has to be backed out of. Then the same PDF can be "opened" again followed by processing of the parameter(s).
    If not already in hand, here's the reference document.
    Parameters for Opening PDF Files
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf
    Be well...

  • Getting Named Destinations

    I am trying to display named destination in my code using this code,
    PDNameTree pdNT = PDDocGetNameTree( pdDoc, ASAtomFromString( "Dests" ) );
    I am able to take name tree object from pdf document.
    But, I want to display each named destination.
    Please help me to take each named destination.
    Thank You,

    Thanks for your response.
    I am able to get named destination for Links and Bookmarks using PdViewDest.
    But my requirement is, I will create named destinations for all the pages manually.
    When I open particular file, I want to get each named destination name and page number for that document, not for bookmarks or links.
    I am taking CosDoc for that active document.
    CosDoc cosDoc = PDDocGetCosDoc(pdDoc);
    CosObj cosObj = CosDocGetRoot (cosDoc);
    CosObj cosdest = CosDictGet(cosObj, ASAtomFromString("Names"));
    After this how you want me to proceed. Please help me to solve this issue.
    Thank you,

  • Bookmarks, named destinations and how to "robust" link to PDF from HTML?

    I need a way to link to topics (from an HTML page) within a structured PDF file generated from InDesign, i.e. one that has an interactive bookmarks
    panel, that doesn't break the links when the file is updated.
    In particular, I don't want to refer to:
    *  page numbers because the document will repaginate when it is updated, breaking existing links
    * named destinations that are numeric as addition/deletion of topics renumbers the named destinations, breaking the links.
    Is there any option in InDesign that creates named destinations derived from bookmark titles as that would seem to solve my problem?

    I did some more trials, and here is where I am at:
    As page-break-after:always; was ignored by PDFGenerator, I used a hack: I wrapped my pages inside div's which have the height of the page, and this seems to work. In addition I had to edit my CSS, and remove the  @media print wrapper around my print specific CSS parts, to get my print media specific formatting inside HTML to the PDF page.
    I do not consider this a solution, but more of a hack - but it might work for what we are doing, and maybe it works for somebody else.
    But what I am actually trying to do is the following:
    We have a systems which creates reports in HTML which can be viewed in a browser, and printed from the browser, now we try to use PDFGenerator, to generate reports in PDF, with a minimal effort ( I know this is a the wrong way arround, HTML is not a language targeted at creating printable reports, but that's what we are doing now, and I think many other people are in the same boat)
    Still if anybody has a better solution, please chime in, or tell me why the hack I did is a real bad idea  - any feedback is welcome
    Thomas

  • How to generate "named destinations" in PDF

    When generating a PDF, how can I get "named destinations" in
    my PDF so I can created hyptertext links to it?
    1. question:
    I produce several PDFs files, which have links to chapters in
    the other PDF. To directly jump to such a chapter, one can use
    named destinations in the PDF. How can I tell RoboHelp to produce
    them?
    2. question:
    If there is an answer to q1, is that also possible in this
    way: I need to generate a Word document first, because I need to do
    some manual adjustments. Then I generate a PDF from this Word
    document. Going this way, I finally also want to have named
    destinations in the PDF. Is that possible?
    Any help appreciated a lot, thank you.
    Kind regrads
    Joerg

    Hi,
    You can insert dynamic barcodes into your form using LC Designer. 
    You should do a search here as dynamic barcodes has been covered by by Steve Walker in detail. For example:
    BARCODE 128 - possibility of binding 2 data fields to the barcode
    Paperforms barcodes
    Using Barcode in Acroforms
    However one thing to bear in mind is that dynamic barcodes will not work in Reader unless the form has been Reader enabled using LC Reader Extensions ES2, which is a server product. Option 4 in this summary:
    Good luck,
    Niall
    Assure Dynamics

  • Creating named destinations in InDesign CS3?

    Hello, I need some help with an issue I'm having. I want to create named destinations in a PDF file from InDesign so that I can easily access a specific destination in the file using the #nameddest="something" opening parameter. I tried using the hyperlink destinations but they didn't work. Out of desperation I also tried using the bookmarks but they didn't work either (as expected). Can someone please provide some info on how to create a named destination using InDesign or otherwise somehow allow easy access to a fixed anchor point in a PDF document created in InDesign.
    If it helps, I'm using Adobe InDesign CS3, Adobe Reader 9.0, Windows XP SP2, and the file I want to access is on a UNC Server address.
    Thanks in advance.

    Do not save as JPEG from Photoshop. Image quality degrades; how much that is, and how visible it is, depends on the compression and the resolution.
    There should not be any problem placing your PSDs directly into InDesign. I don't really grok what you mean by "save Photoshop files as PSD's", how on earth are you saving them now? JPEG?
    As for the preview quality, see Peter's answer, which applies to
    i any
    imported image of any kind.

  • Named Destinations with window.open

    I have a ColdFusion application that opens a reference document to a specific point of reference.  I had been using an html page with anchors for the reference document but would like to use PDF with named destinations.
    The code I am using is from a button click event:
    <input type="button" value="Reference"
      onClick="var ptr = window.open('../reference/<cfoutput>#reflink# </cfoutput>','popup','width=600,height=600,scrollbars=yes,resizable=yes,toolbar=no,direct ories=no,location=no,menubar=yes,status=no,left=500,top=0'); if(ptr) ptr.focus(); return false">
    The reflink variable would be something like "myreference.html#myanchor for html and "myreference.pdf#mydestination" for pdf.
    The code works fine for html.  The click event pops the window and displays the anchor location.  Another event will refresh the existing open window with the new location.
    With the pdf, the first click works correctly.  The second click clears the document view to blank and the first window is effectively hung.  If I click again, a new window is opened and the first window remains blank.
    If I don't use named destinations, the window is refreshed each time with the pdf file and the not hung.  So the problem only occurs when there is a named destination in the URL.  But I need named destinations to zoom to the reference location.
    This occurs with IE 8.
    When I use Firefox, the behavior is different.  The window pops correctly, but after the first attempt, it does not navigate to the correct named destination.  Any subsequent click event results in the pdf file staying at the existing location.

    Yes, I think you're right. I tryed the same in the HTML-protocol and it works: example:
    http://profiroll.fidom.de/pdf/01_Lastenheft_PPA_LH3_8.1_Elektrik.pdf#page=42
    It would be nice to find a workaround to use this "addressing" in MS-Office!

Maybe you are looking for

  • Safari keeps crashing when I type in a "Search" box

    Hello.  My Safari browser keeps crashing when I type in certain search boxes.  It doesn't crash when I type in some search boxes but it will consistently crash when I type in others.  Here is the error report that I get.  Thanks for your help.

  • Wife & I have different Apple IDs & can't link as Family?

    Why can't my wife and I have different Apple IDs, join as "family" and use the same iCloud storage?  When Apple showed the iOS 8, the idea of building a family would allow all users, (ours have iPhone each, an iPad each, and one iMac that supports iC

  • Can no longer access Facebook via Safari on iPhone

    Ever since I loaded IOS 6 onto my iPhone 4, I cannot get to Facebook via Safari...it automatically reverts to the fb app. Even if I put www.facebook.com into the browser. I still access fb via Safari on my ipad (new ipad). This is important as I have

  • Flash Player: Connection failed. Unable to complete installation. Mac OSX

    I'm working on a mac running 10.10.1 Yosemite in Safari. My current Flash version is 15.0.0. On most videos and pictures it now says 'Your Flash Player is out of date". I've clicked on this icon, which opens saying do you want to download the newest

  • Problem with video recording in wtk2.2

    Hi, I was trying to create a small utility for video recording using MMAPI.but the problem is that its is not working in the wtk2.2 emulator even after i include the mmapi package to the environment. Video player created by the following way is not w