Using a script to call named destinations causes blank pages

My first post in the Adobe forums. I realize that this may not be exactly the right location for this question, but this forum seemed to be the closest to what I need.
We are trying to use the following script to call named destinations in an Acrobat X PDF file. Note that this script is just a sample for testing. The actual function would be embedded in the product GUI.
<style>
BODY
    COLOR: #003774;
    FONT-SIZE: 80%;
    FONT-FAMILY: arial, verdana, trebuchet MS, Tahoma, sans-serif;
background: #ffffff;
</style>
<script>
function users()
document.open("/product/Documentation/SystemAdmin.pdf#NamedDestUsers", "PageHelp", "copyhistory=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolb ar=0");
function trunks()
document.open("/product/Documentation/SystemAdmin.pdf#NamedDestTrunks", "PageHelp", "copyhistory=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolb ar=0");
</script>
<p>
<a href=# onclick="users()"> Click to show user config pdf </a>
<p>
<a href=# onclick="trunks()"> Click to show trunk config pdf </a>
When we click the link to call the first destination, Users, for example, the file opens fine at the appropriate location. However, when we click a subsequent link, it tries to open in the same window and just freezes. All we see is a blank page. We realize that we could force it to open in new window each time, but since this is a fairly large file, we'd rather not do that. All these destinations are in the same file and we just want it to display a different destination in that file.
If you have any suggestions for either changes to the PDF or changes to the script, I would very much appreciate hearing about them. By the way, we're using the TimeSaver untility to standardize the named destinations.

This is not how you open a PDF at a specific named destination. You need to read this file:
http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf

Similar Messages

  • DPS: pinch and zoom function not working on all pages within folio (v30 tools using the pdf setting). What would cause some pages to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer?

    What would cause some pages in the same folio to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer that's not allowing the pinch and zoom to work?
    I do have a "go to state" button that enlarges graphic to full page on the page. Could this be cancelling the pinch and zoom functionality? Would a box with text wrap ON affect the ability to pich and zoom? What else may be causing this?

    What would cause some pages in the same folio to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer that's not allowing the pinch and zoom to work?
    I do have a "go to state" button that enlarges graphic to full page on the page. Could this be cancelling the pinch and zoom functionality? Would a box with text wrap ON affect the ability to pich and zoom? What else may be causing this?

  • What causes blank pages appearing suddenly in an autoflowed-text document?

    CS5.5, english version.
    The complete book was built-up and all master pages were applied . When reopening the file, several blank pages appeared at two places in the document. The text flow was not interrupted, but seamed «hidden» under a non-existing white layer. The software showed «Master page applied», but the pages were blank, imposible to select any object or to place a new text frame. It was also impossible to reapply the master page (the pages were still blank after). We could not access the hidden part of text, even if it was obviously still present, and we had no choice but rebuild a new document.
    We don't know what caused this very disturbing bug, and we would avoid it to reappear again! If someone knows a trick, you're welcome!
    Version : Indesign CS 5.5, en anglais.
    Le livre était monté en entier avec pages maîtresses appliquées. Lors d'une réouverture du fichier, plusieurs pages vides sont apparues, à deux endroits dans le document. Le texte n'était pas interrompu, mais semblait «caché» sous un calque blanc. Le logiciel affichait l'icône de la page maîtresse appliquée, mais la page demeurait vide. Impossible de sélectionner une boîte de texte ni de parvenir à réappliquer la page maîtresse. Nous n'avons pas réussi à accéder à la portion de texte «cachée» sous ces pages vides, bien qu'elle n'ait de toute évidence pas été perdue.
    Nous n'avons pas trouvé d'autre solution que de recommencer le montage à zéro à partir d'un nouveau document, mais nous ne savons pas ce qui a causé ce problème, ni comment éviter qu'il survienne à nouveau.
    Si quelqu'un a déjà rencontré cette anomalie et peut m'informer, bienvenue!

    I'm afraid I don't have any good news for you, though I was able to get the text to reappear by deleting the blank pages and inserting new ones, then rethreading. Youy could do this, but I suspect it is a short-term fix that won't last a day and more important, that output will fail.
    ID seems to think the frames on the blank pages are lines with astronomically long lengths and they seem to be sheared as well. Needless to say that seems to be some sort of corruption in the file. The reason that I don't have good news is that I've been completely unable to export anything useful for repair out of the file and reimport it-- neither .idml or tagged text. In all cases I get an error message that the  either the file does not exist, it is in use or I don't have permission. I know the files exist -- I can open the text file in a text editor, and I can see the components of the .idml file if I change the extension to .zip, but I can't convince any version of ID to access either of them.
    I looked through the file history and noticed that this file began life as a CS4 file that was converted to CS5.5 in August of 2011. I think that's the source of the problem. From time to time we get reports of unexplainable glitches or files that will not output, or just refuse to open at some point, even though they were fine hours earlier, and quite often it turns out that these are legacy files that were directly updated in a newer version. Because of this I now recommend that all legacy files that are to be converted be exported to .inx or .idml from the original version, then that exported file should be opened in the new version.
    Actually I had one more thought, and it seems to have been at least partly successful. As I mentioned, I was able to export the main story to InDesign Tagged Text and open that in a text editor (Notepad in this case, since I'm on PC). I tried saving the file from notepad with a new name and lo and behold I can now import it into a new file or use it to replace the text in the original. I tried the replacement, and exporting another .idml. but that still fails to reopen, so the corruption is not in the text of the main story. A .idml file export from a new .indd with the resaved tagged text placed in it also is working.
    This means you actually have a good shot at rebuilding this file fairly quickly. Export the stories to tagged text, open those in a plain text editor of your choice and resave as plain text, then place them into a new document with the same page dimensions and margins (rebuild the master pages from scratch in the new file). Make a backup copy of the file with just the text, and make sure it is working properly and that you can export to .idml and PDF, then add the images and check again. I think this is going to work, though it may take a few hours.
    DON'T overwrite any of the files you have already -- use new names, and do a save As a the end of each session or at any major change point adding a version number to the name so you have a good backup version chain in case something goes wrong again. Good luck.

  • Oracle Reports Parameter List form called through URL bring blank page

    We are using 10g Release 2
    We are able to load balance all other reports out there.
    1. Using run_report_objects in oracle forms
    2. Using a URL to call a report directly with parameters.
    However we are unable to use the URL function if there there is a hard ware load balancer in front. For the following scenario
    1. Using a URL to call an oracle report using its own internal parameters form. This is with the parameter "paraform=yes"
    Message was edited by:
    naveeny1974

    I just found out that IE 6 and IE 7 do not work. However, Firefox does work.

  • Cflayout type="border" seems to cause blank page in IE

    Coldfusion Developer Version 8,0,1,195765
    Hot Fix 4 Installed
    Server running on Windows XP SP3
    I have a fairly complex page that occasionally displays a blank page in IE 8. About 1 every 10 launches, hitting refresh always works to display the page properly. I have eliminated all code until I'm left with this....
    <html>
    <head>
    <title>Test</title>
    </head>
    <body>
    <cflayout type="border" >
    </cflayout>
    </body>
    </html>
    The code above has the same problem, although I know the page should be blank since I'm not displaying anything, every 10th or so launch IE will sit in the Loading..... state until refresh it pressed. If I change the type to "vbox" or "hbox" then there is NO problem. Only when it's "border", and only in IE.
    Firefox, Chrome and Safari are all fine. The page title always loads, and if I view code it seems to be all there.
    Sorry if this has been answered before, I searched but could find a related problem or solution.
    Thanks in advance

    Hello rotorboss,
    first the last: there is no way in Pages to link images. All objects and media you insert into a document is stored into the package folder. But you can reduce the file size if you are able to handle an image editor. I think you have inserted your images directly from iPhoto, right? This means the images are in full resolution and size. But for 99 % of all images this is far more then needed.
    Here is a post I wrote yesterday that will help you to reduce the size of your Pages document: http://discussions.apple.com/thread.jspa?messageID=2711166&#2711166. If you need more details for image editing, feel free to ask.
    To give you an example of document sizes: I am writing manuals and handbooks with 350+ pages and 300+ images (most for tutorials). Most of this images are screenshots and so they are only 72 dpi in resolution. But there are a few photos as well (the biggest is 10.5 mb in TIFF format (19.5 x 12.5 cm, 300 dpi) and I have reduced it to 4.3 mb in PNG format (19.5 x 12.5 cm, 300 dpi)). This documents have file sizes between 3 mb and 25 mb.
    The only big problem is the use of CMYK images, because PNG can't handle this color format. So you have to use JPEG with good quality setting. To give you an example: the same image I mentioned above is 13.5 mb in size as a CMYK image. As a JPEG with 100 % quality and baseline optimisation you get a file size of 4.2 mb, but JPEGs compression is not lossless. In some special motifs you will get block artifacts. So you can choose the file type you want to use.

  • Using devanagari script in the 'special characters' option in Pages

    Using the special characters menu in Pages how can I produce double consonances?  Any help would be gratefully received

    That should be double consonants if you have been searching.
    What keyboard are you using?
    Devanāgarī Typing & Keyboard Layouts (Mac & Windows)
    http://www.indiantypefoundry.com/help/technical-issues/devanagari-keyboard/
    https://discussions.apple.com/thread/3548952?start=0&tstart=0
    Peter

  • ^FORM causing blank page

    We are using ^FORM in our datastream to change the form type mid-print. This causes a blank form to print followed by the form correctly populated. How can I prevent this?
    Dave Hall

    Talking about using ^FORM in the datastream seems to me an Output Server problem, not the designer software. You might get a better response on that forum (but, like me, I would think most people monitoring that forum also monitor this one).
    Have you checked the Print Agent manual to see if there is something about your scenario that might provide an explanation?
    I assume your datastream looks something like the following:
    ^form X.mdf
    ^field a
    aaaaa
    ^field b
    bbbb
    ^form Y.mdf
    ^field c
    cccc
    ^field d
    dddd
    Is it form "X" or form "Y" that is printing blank?
    As long as field "c" is on form "Y" then I would think it should work. If it is not, then that might be causing the blank form.
    I'm not familiar with your problem because our datastreams are mostly like:
    ^global a
    aaaaa
    ^global b
    bbbb
    ^global c
    cccc
    ^global d
    dddd
    ^form X.mdf
    ^form Y.mdf
    With this setup the fields can be used in any order on the forms and we definately don't experience what you are.
    We do use the
    b -afxon
    parameter to "discard unknown fields". It is possible this might help you if you are not already using it.

  • Picture Causing Blank Page

    I have a crystal report that uses only one section. I have supressed all other sections. This section is two pages long. When I insert a picture onto the report (right in the middle i.e. it does not even come close to the edges of the section) it causes a third page (all blank) to be generated. If I delete the picture without changing anything else, the report goes back to two pages.
    I've searched and done the normal suggestions with supressing all other sections, etc. I changed the background color of my section to red, and oddly enough the third page does not have the red background. If I supress the picture, the third page still shows up. Possible bug?
    I am really at a loss here, so any guidance would be appreciated.

    Hi,
    What section are you working with?  Different sections handle page breaks differently but I doubt that's the problem. 
    I would recommend creating a section just for your picture.  You can have this new section above  your current one and format the new section to overlay.  This is usually a better solution when working with pictures. 
    Crystal handles pictures the say as Word would.  If you have a picture and Crystal believes it's too large to fit onto the current page, it forces the picture onto the next page.  This may be what you are running into.  Even suppressing the picture won't work because Crystal still allocates vertical space to allow for it. 
    Having the picture in its own section gives you better control over how the picture is handled. 
    Good luck,
    Brian

  • Chart item causes blank page in ie9

    Hello,
    we are using design studio 1.2 sp2 with netweaver and have problems with ie9. Firefox working well but ie9 ended up in a blank white screen if the application contains a chart item.
    Do you have some suggestions for that?
    Thanks
    Robert

    Hi Amit,
    thanks for your advice. I checked it up with ie develeoper tools (F12) - works as IE9. Switching to compatibility view doesn´t help. Intresting if running as IE8, evey thing is displayed but do not ask in which design

  • 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,

  • Sqlldr flat file to external table using shell scripts

    Hi,
    Has anyone done this before? Please give me a hand.
    Thanks!

    Thanks Justin.
    When do I need to create the external table EMP_STAGING ?
    These are my steps so far:
    - shell script to crate the flat file (but I need to change the table name to EMP_STAGING)
    - use a script to call sqlldr to load the flat file into the external table
    - then the script will call the MERGE sql script to merge the data from the external table into the database table
    Am I on the right track?
    In which stage should I create and drop the external table?
    Thanks!

  • 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

  • Help with Nav Bar using Action Script 3

    I am a flash NOOB to say the least.  Trying to teach myself.  Thank God for YouTube! LOL!  Anyway, I have build a Nav Bar for a site that has a sliding bar on the bottom of it that follows the mouse.  The problem with this nav bar is that when you change pages inside the site, the slider resets back to position X/Y = 0 and you really don't know what page you are on for sure without me having to identify each page in the page body itself.
    Does anyone know of a way using action script to have the URL of the page sent to flash and in turn use that URL to set the X and Y position of the slider to the appropriate X and Y of the button on the Nav Bar for the page the user is on?
    I have heard of using flash.external.ExternalInterface but now for sure how this really works nor if I can assign it to a variable for reference inside the action script.
    Any help would be appreciated greatly!!

    The Flash Nav Bar is at the top of each page.  But yes, when you click a button inside the flash nav bar it takes you away from your current page and loads a new one.  I am trying to tell the swf file which page it is on so I can set the X and Y position of the slider.
    You will have to excuse me if I am so noob that I loose any of your replies to this as just as Flash is new to me, so is the lingo.
    Thank you for your help.  I will research FlashVar but if you have any other ideas then I am open to them.

  • Posting a useful shell script

    Is there a Sun form to post useful shell scripts?

    Look at Bigadmin's main page. There is an option there to let you share your scripts and other resources with the community.

  • Script blank page

    Hi,
    I am working on the Purchase order form(script).
    I am getting a blank page after first page ,but i suppressed using
    no blank lines in paragraph format.But i doubt
    how come blank lines are coming,infact there are no
    blank lines.Can anybody give me some explanation regarding this,is highly appreciable.
    Thanks,
    Seshagiri

    Hi seshagiri,
    1. Just make sure you are putting everything
       under some element
       /E myelement ...
    2. If anything is outisde it,
       it will come in the first page / blank page.
    regards,
    amit m.

Maybe you are looking for