Find a bookmark in a pdf?

Hi all. I'm looking to create a dynamic help system where the user can choose a field and be taken to the correct section in pdf based documentation, stored on a network resource. In specific, I'm looking for a way to find and launch a pdf at a specific bookmark in the documentation based on a context senstive search or specific field they have chosen. Does anyone know of an open source library that has this functionality?
Thanks!

Launching a PDF is done by calling acrord32.exe at the command line (at least in Windows) and passing the file name as the first parameter. If there were a way to make it open at a bookmark, that would be done by more command-line parameters. Adobe's documentation would be the place to start looking for such a feature, if it even exists.
(None of that has anything to do with Java or iText.)

Similar Messages

  • Unwanted bookmarks when combining PDFs

    I've been trying to PDF a 344 page FrameMaker book (several documents) but I keep getting a memory error (I doubt it's my machine cause it happens on others). So I PDFd the individual documents in the book then combined them in Acrobat. That works fine except that a top level bookmark is added for each PDF filename. Looks something like this:
    Report_Guide_1.pdf
    Printing
    Previewing
    Report_Guide_2.pdf
    Quick Report
    SuperReport
    Financial Report Writer
    Report_Guide_2.pdf
    Order Entry
    Invoice - Laser Graphics
    Invoice - Grey Bars
    Order Entry Reports
    And so on...
    I cannot figure out how to get rid of these bookmarks (e.g., Report_Guide_2.pdf) and just have the bookmarks that were established in the individual PDF files. I've gone through the Acrobat Help but I don't find any obvious reference to a setting that controls this. Does anyone know how to prevent the generation of these unnecessary bookmarks during combining (Insert pages)?
    I have also used the Create PDF/From Multiple Files method and it also generates the unnecessary bookmarks.
    I'm using Acrobat 7.1.0 Professional on Windows XP Pro.
    Thanks
    April

    As the script is written, you can cut and paste it into the JavaScript console/ Debugger, "Ctrl + J", and then highlight the text and press the keypad  "Enter" key.<br /><br />You can place the following variation in Acrobat's JavaScript folder and have a menu item:<br /><br />function RemovePDFTypeFromBookmarks() {<br /> /*<br />Author: Sean Stewart, ARTS PDF<br />Date: 2 June 2004<br />Description: When you merge documents using Acrobat's merge process<br />it creates a high-level bookmark with the filename of the merged document and<br />subordinates all bookmarks from the merged document below this.<br /><br />This script can be used to:<br />1) moves all subordinated bookmarks up the bookmark tree; and<br />2) delete the filename bookmark<br /> */<br /><br />var bm = this.bookmarkRoot;<br /><br />// Find the bookmarks which have .PDF and move all their children to the end<br />// of the bookmark tree. Add each found bookmark to an array so that<br />// it can be deleted at the conclusion of the process<br /><br />// Create an array to hold the bookmarks to delete @ a later stage<br /><br />try {<br />var bmToDeleteArray = new Array();<br />// console.show();<br />// console.clear();<br />// console.println("Removing bookmarks with string \".PDF\" in name");<br />// Iterate through each bookmark<br />var ibmLength = bm.children.length;<br />for (var i = 0; i < ibmLength; i++) {<br /><br />    // Check to see if this is a filename which<br />    // contains sub-ordinate bookmarks<br />    var bmToCheck = bm.children[i];<br />    // test as case insative<br />    if((bmToCheck.name.toLowerCase().indexOf(".pdf")!=-1) && (bmToCheck.children!=null)) {<br /><br />        // console.println("found bookmark with children " + i);<br /><br />        // Move all children to the end of the root bookmark tree<br />        // being sure to move the first item in each case<br />        // note: this is because the queue is shrinking as<br />        // we move each item<br /><br />        var ibmChildrenToMoveLength = bmToCheck.children.length;<br />        for(var j=0; j<ibmChildrenToMoveLength; j++) {<br /><br />           // console.println("moving bookmark " + j);<br /><br />           bm.insertChild(bmToCheck.children[0], bm.children.length);<br />        }<br /><br />        // Add this to the array of bookmarks to be deleted later<br />        bmToDeleteArray[bmToDeleteArray.length] = bmToCheck;<br />    }<br />}<br /><br />// Iterate through the array of 'filename' bookmarks to delete<br />// and delete them<br /><br />for (var i = 0; i < bmToDeleteArray.length; i++){<br /><br />// Delete bookmark<br />   bmToDeleteArray[i].remove();<br />}<br /><br />// Finally remove the array as a nicety<br />delete bmToDeleteArray;<br />// console.println(bmToDeleteArray.length + " booksmarks found and removed.");<br />}<br />catch (error) {<br />app.alert("Action failed.\nThere must be an open document to process\n"+ error, 0, 3); }<br />finally {<br />// console.hide();<br />return;<br />} //end try<br /><br />} end funciton<br /><br />// insert after the "Close" item (the default behavior)<br />app.addMenuItem( { cName: ,<br />cUser: "Remove \".PDF\" Bookmarks",<br />cParent: "Tools",<br />cExec: "RemovePDFTypeFromBookmarks()",<br />cEnable: "event.rc = event.target != null",<br />nPos: "Object Data"});

  • How do you set the zoom level to Inherit Zoom for all bookmarks in a pdf?

    How do you set the zoom level to Inherit Zoom for all bookmarks in a pdf?

    beatngu13
    I made an account just to "like" your comment and say that you are a god among men.
    I've been searching for hours about how to make the zoom level persistent throughout following links in various PDF's I have, and most sources were saying to just buy acrobat pro and edit the bookmarks manually with it.
    I saw that it was possible to write an application to change the property, and considered doing it after the only pre-existing custom application I could find was asking for $50.
    Thanks to you, I no longer have to worry about re-zooming every time I click a bookmark, and I'm not out $50 or the time it would take to code an app myself!
    From the bottom of my heart, thank you!

  • Finding Preview bookmarks on iPad

    I have a PDF with bookmarks in my Dropbox. When I open the PDF on my iPad, I can't find the bookmarks. Is there a way to find them on the iPad?

    Just wait a while.  It takes some time for Google to convert videos to HTML 5 for iDevices.

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • Preview.App does not find text in pure text pdf works in other PDF viewers

    Hi I am using reportlab an open source python based pdf generating package to generate pdf reports.
    The generated pdfs are searchable using Adobe acrobat and Google -Gmails built in pdf viewer . However in Preview.App the text seems to be only recognized as individual characters . For eg the text "hello world" will not match hello or world , but typing just h into the search bar will show up matched text as "h el l o" . So although visibly the text appears as a single word , semantically the words just seem to be composed of one or two characters.
    Only Preview.App seems to have a problem with the generated pdf. Adobe Acrobat ( Mac and Windows) , Google-Gmail pdf-view , Evince-Gnome-PDF viewer ( Linux) dont have any problem with finding the text in the PDF documents generated.
    I have a thread in the reportlab user forum discussing the issue (see http://two.pairlist.net/pipermail/reportlab-users/2009-August/008643.html). ANd the problem definitely seems to be with Preview.App . The pdf (sample see example text in corner) is available at this url ( http://s3.amazonaws.com/code-itch/searchtext.pdf)
    The app is targeted at scientist Mac users . And I want to have the pdf reports searchable and indexed by spotlight , so getting this working is very important for me.
    Your help is greatly appreciated
    Hari

    The posts on the reportlab newsgroup suggest that
    "> If the preview is actually rendering the pdf and then searching, the 0
    degrees case should be searchable. If that's the way the search is happening
    then it's no surprise that the search should fail if the rendered letters
    are at 90deg." -Robin Becker
    Test cases show that search fails completely at rotations of 90 , succeed partially at rotations of 45, succeed fully at rotations of 0.
    So , is there a way to prevent Preview from only searching the final rendered PDF. The pdf I am complaining about are searched fine in the many other PDF readers I tested that probably handle search differently.
    Hari

  • HT2506 In pages how can I link text within the document? I can find a bookmark option and links only allows me to link to a web page

    Hi all,
    This is my first time using this discussion site! Any help would be great, as I am getting very frustrated with pages!
    What I am trying to do is link text at the bottom of a document to a page at the beginning of the document. I can't find a bookmark option adn when I clink insert link it only provides an options to link to a web page. Help! thanks

    Bookmarks are missing (sadly) and with them, the ability to create an in document link.
    I was looking for this feature in a Table of Contents. When you assign a 'style' to text in a document, you can Insert > Table of Contents. Then Pages will keep the TOC updated and you'll be able to 'link' from the page number in the TOC. (Not much help though, for the OP)

  • I can isolate a bookmark with the filter, but how can I "find" a bookmark in the hierarchy of the ShowAllBookmarks window?

    I want to find a bookmark in its location in the hierarchy of bookmarks, but all I can do with the filter is isolate a bookmark[s]; either using the filter of the bookmarks sidebar, or in the ShowAllBookmarks window. For instance, I know I have a certain bookmark, but I want to move it into a new "folder" and rename it, perhaps; for this I need to be able to *see* it in the hierarchy, as in the Finder of a Mac, when the filter turns up a file, then "Show Original" of "Open Enclosing Folder."

    I'm just trying to understand how to use these add-ons, having just added them on, to borrow a phrase, but have now found a comment re Go Parent Folder, "This extension does not seem to work in MacOS X. " <http://forums.mozillazine.org/viewtopic.php?t=659690>. Sadly [altho I really like Snow Leopard] I'm running OS X.6.7. Nonetheless a contextual menu mousing down on a "found" bookmark indeed does give the working option of "Go to Parent Folder" from the found list of the ShowAllBookmarks window, *or* the that of the sidebar window. Bravo!!
    Just a question again, how would I have learned this had I not bothered the entire forum, and taken cor-el's time/effort?

  • I want to change the file location for the automatic backup file bookmarks.file, but I can't find browser.bookmarks.file in the list on the about:config page.

    I asked about automatic backup of bookmarks and received the following answer:You can make Firefox 3 create an automatic HTML backup (bookmarks.html) when you exit Firefox if you set the pref [http://kb.mozillazine.org/browser.bookmarks.autoExportHTML browser.bookmarks.autoExportHTML] to true on the about:config page. That backup is created by default in the profile folder as bookmarks.html, but you can set the file name and path via the pref [http://kb.mozillazine.org/browser.bookmarks.file browser.bookmarks.file] on the about:config page. I went to about:config page and toggled browser.bookmarks.autoExportHTML to “Yes” and it’s working. However, I want to change the file location, but I can’t find browser.bookmarks.file in the list.

    The browser.bookmarks.file preference does not exist by default. Right-click in about:config and select "New > String" to create it.

  • I opened my computer and the whole top only shows web search, I can not find my bookmarks and I tried reloading firefox and still nothing but tab bar

    Question
    I opened my computer and the whole top only shows web search, I can not find my bookmarks and I tried reloading firefox and still nothing but tab bar. Tried f10, alt, nothing! Can I reload an old firefox? There is no firefox logo at top. When I rt click at top I see hide toolbar and leave full screen. To the right there is only a home sign. How can I get my BOOKMARKS ??????? I so need them and hate what ever this is that now shows up on firefox.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF?

    When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF? Currently when I have a Framemaker book that I want to save as a PDF, I choose Save Book As and then choose PDF for the file format. A dialog box comes up in which I can choose the Bookmarks tab and choose which tagged content I want to be made into bookmarks in the PDF file. What if I would rather have the filename of a document rather than the chapter title be a bookmark in the PDF? Is that possible? Where would I choose that option? Thanks!

    There are two ways that you could do this. You can either use postscript text frames and enter the correct pdfmark entries to show the file name with the corresponding actions (i.e. where to go in the PDF) or you can use hidden text in FM and the "Filename (Short) " variable in a unique paratag to be picked up by FM's bookmark creation.
    To go the pdfmark route, see http://www.pdflib.com/fileadmin/pdflib/pdf/pdfmark_primer.pdf for details and also consult the Adobe Pdfmark Reference manual (http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdfmark_reference.pdf).
    The hidden text route would use FM's Color Views to specify a colour as Invisible. This will make the content visually disappear from the screen (and any output), but FM will still be able to read the contents of any text that is coloured with the Invisible colour(s).
    1. Pick or create a colour that you want to be invisible. [Magenta is usually a good bet and stands out visually].
    2. Set that colour to be invisible in View 1 and visible in View 6. [you can use the shortcut <esc> v 1 and <esc> v 6 to toggle between the views.]
    3. Create a paratag to use for the filename and set the font colour to use the invisible colour.
    3. In the title of each chapter file, drop an anchored frame that is set to be outside of the text frame [so it won't interfere with any other content].
    4. In that AFrame, insert a text frame and use the invisible paratag defined in step 3.
    5. Insert the Filename (Short) variable in that text frame.
    6. Repeat steps for all files to be included in the bookmarks.
    When creating the PDF bookmarks, select only the paratag used for the invisible colour.
    Don't forget to toggle the View to be invisible (i.e. <esc> v 1  - this also works at the book level for all files in the book).

  • Creating popup menus using bookmarks in acrobat pdf

    Hi All,
    I have a requirment to create a button called "Index" in a pdf.
    When I click on that button it should show the popup menu and if I click any of the menuitem in that, it should take me to that particular page. I saw some of the interactive pdf's available on the web and they have this facility. I tried to incorporate this into my pdf, it shows the popup menu item correctly but not taking me to that particular page and throughs an error message.
    itemIndex is not defined
    3:AcroForm:Index:Annot1:MouseUp:Action1
    Below is the code I tried for your reference.
    My question: Is there any way to populate this popup menu with the action to go to particular page, from the available bookmarks of a pdf?
    Please help me. Thanks in advance.
    var itemInedex = app.popUpMenu("Executive summary", "Why backups?", "Defining the data status (consistency)", "New disk technologies", "Understanding disaster recovery and restart and recovery", "Drawbacks with backups", "Backup in mainframe", "Schematic presentation", "For more information")
    switch (itemIndex) {
    case "Executive summary":
    this.pageNum = 0
    break
    case "Why backups?":
    this.pageNum = 3
    break
    case "Defining the data status (consistency)":
    this.pageNum = 4
    break
    case "New disk technologies":
    this.pageNum = 5
    break
    case "Understanding disaster recovery and restart and recovery":
    this.pageNum = 6
    break
    case "Drawbacks with backups":
    this.pageNum = 7
    break
    case "Backup in mainframe":
    this.pageNum = 8
    break
    case "Schematic presentation":
    this.pageNum = 9
    break
    case "For more information":
    this.pageNum = 10
    break
    Regards,
    Muthuraj. D

    Hi
    Thanks a lot. I did not notice that .
    Is there anyway to populate this popup menu item from the bookmark list? I did write these bookmarks and page numbers manually.
    Regards,
    Muthuraj. D

  • Save as pdf deleted bookmarks when combining pdf-files

    Hello,
    when I save several books each to a pdf-file with save as pdf (or printing to .ps and converting afterwards), the bookmarks are deleted when I combine the pdf-files with Acrobat. Only one bookmark for the 1st. file exists in the new pdf-file.
    The reference of the bookmarks in the original generated file is e.g. "g3.619626".
    These references are not anymore available in the combined files.
    I've tried several settings before saving as pdf but nothing helped.
    Ther are no problems of combining ordinary pdf-files with bookmarks if they are generated by other programs then Framemaker.
    I need to combine files as well within a book, as "save to pdf" is not able, to generate one file with different pages sizes. I then need to generate a separate pdf-file of the pages with the for e.g. bigger page size and combine it afterwards.
    In that project I'm working there will over all something between 1000 and 1500 pages from maybe 10 books with hunderts of bookmarks plus additionally separete pfd files to combine. So it's not an option to treat every bookmark before combining the pdf-files.
    My system is FM11.02.384 / Acrobat Pro 11.0.3 / Windows 7 64 Bit

    Never having had a need to do it, and Adobe documentation for Acrobat being what it is, I can't tell if AcroPro is supposed to be able to merge bookmarks when merging PDFs. It would be an unsurprising feature, and you do say it works on PDFs generated by means other than FM.
    Here's a hack that might work, if the variable-page-size rendering turns out to be out of reach. You can batch* this.
    Open each component PDF and re-save it with some otherwise harmless optimization (or even none). This will probably cause AcroPro to re-write the internal structures of each PDF, which might then be amenable to merged bookmarks when you re-open them for merging.
    * We do a similar thing for a slightly different problem. We have a software-in-a-box XML publishing app that, at just some seats, is generating PDFs that are tagged for byte serving (fast web view), but are not in fact encoded for it. This causes AcroReader plugin and entire browser crashes for web end users. The s/w vendor can't even tell us where the option is for controlling that feature, because they get the PDF gen code from some other 3rd party. So we routinely batch process all generated PDFs, with, oddly enough, NO "commands" selected. The re-save alone fixes it.

  • Linking to a bookmark in a PDF File

    Hello All,
    In our Web project, we have a .PDF which opens when the user
    clicks on the appropriate link. Is it possible to modify the link
    so the PDF opens at a specific location. For other purposes, we
    have inserted bookmarks in the PDF using Adobe 7.0 Professional.
    I suspect, although not sure, we could have the RoboHelp link
    point to a Redirect topic. However, I am not sure if we could
    insert a Shortcut control and have it function in a Web Help
    format. If not, what other alternatives are available. If a
    Shortcut control is possible how do I identify the PDF bookmark in
    the Program Parameters.
    Cheers,
    CRO

    I tried the Google search and a lot of other things. No
    complete success, but . . .
    RoboHelp for Word will reliably generate a link to a pdf file
    that opens the file at the top (ditto Robohelp for HTML). I.e., the
    source .doc has
    mytext!JumpHtml('C:/aFile.pdf')
    in it. Then if you create a WebHelp file, the .htm file has
    <a href="C:/aFile.pdf">mytext</a>
    in it. It works. However, Robohelp does not seem to offer the
    ability to specify a nameddest, i.e., a defined place anywhere in
    the .pdf. You can type a nameddest into the souce .doc, i.e.,
    selText!JumpHtml('C:/aFile.pdf#nameddest=sheep')
    but then the WebHelp .htm has no corresponding href in it at
    all. (But it works for WinHelp output, see below.) If you don't put
    the nameddest in the source .doc, and instead yourself insert it
    into the output WebHelp .htm, i.e.:
    <a
    href="C:/aFile.pdf#nameddest=sheep">selText</a>
    then naturally it works. The runtime hotlink jumps to the
    desired place inside the .pdf. So, there's one way to do it.
    However, having to hand enter the link in the .htm is suboptimal -
    RoboHelp *should* automate it.
    One wrinkle is, if you hand enter the nameddest in the source
    .doc, and then generate a WinHelp output (instead of WebHelp), that
    seems to work as desired, provided you include the .pdf in the
    baggage files and enable the special included .dll. So there's a
    WinHelp solution that at least lets you enter the nameddest in the
    source file, but it doesn't work for WebHelp. That difference makes
    me think I'm missing some setup parameter.

  • Expand/Collapse all the Bookmarks in a PDF file

    Hi,
    This is my first message on the board :-)
    I work with very large PDF files (i.e 2000 pages, 700 bookmarks on 5 or 6 levels!) and I'm looking for a script (Acrobat 9 Pro) allowing to expand/collapse all the bookmarks in a PDF file.
    Thanks in advance for your valuable help,
    Cheers
    Antonella

    The Acrobat Javascript Scripting reference (http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS.pdf) describes how to use scripting to access bookmarks and how to open and close them, which is what you're looking for.
    I suggest you read the reference and make a function that will do the job for you.
    That's the way I would do it.
    I don't think you can access the keyboard shortcuts "/" and "Shift + *" via scripting.
    Torben.

Maybe you are looking for

  • ORACLE ADF - Performing logical deletes in Oracle ADF

    [http://www.youtube.com/watch?v=zl5QjihrU0k] hi.. i am currently doing a system using oracle adf framework. i want to do a process of withdrawing a subject that have been registered by a student, but i don't want to permanently delete the data from t

  • Save data from a presentation to the BPMObject without moving.

    Hi there! This is the actual problem. I have an interactive activity calling a presentation with the data from a BPMObject called Person. The fields are editable and the user can change them. What I want it's a button to save those changed fields int

  • Transfer file from Windows 7 to palmOne TUNGSTEN E2 on internal memory by BlueTooth

    Hello. I have palmOne TUNGSTEN E2 without memory card and laptop Asus F3E with Windows 7. I would like to transfer by BlueTooth PDF file from laptop to Palm. How to do it easly and step by step?

  • Purchasing info Record - Auto update Setting

    Dear Experts, I have some query with purchasing info record: please go through the following scenario: I have created some po in post with tax code "V1 - 4% Vat"  and with reference to those info records are already created (as there was info update

  • Multiple Assignments Issue

    We are in process of implementing Multiple assignments for a clients despite the assignment carries same Payroll and GRE .Could anyone list on the impact of having multiple assignments , any document id to review, Basically to take a stock of bad eff