How to remove links pointing to the same page?

I have PDF documents with Links which point to sections referenced (e.g. link of text "Section 2.2" points to the actual page number of "Section 2.2"), but as the links are created from cross-references during rendition from Word to PDF, there are cases that the destination page number and source page number of the links are the same (e.g. links of text "Section 2.2" on page 9 are created with the destination of page 9 which is the actual page number of "Section 2.2"), I want to remove all these links, but I don't know how to get the destination page, I check the API reference and find that "PDLinkAnnotGetAction" may work , but I don't know how to use it, could you check me codes below and advise ? Your help is really appreciated!
PDPage page;
ASInt32 i,i2;
AVDoc avDoc = AVAppGetActiveDoc();
PDDoc pdDoc = AVDocGetPDDoc (avDoc);
int pageNum = PDDocGetNumPages(pdDoc);
for (i = pageNum - 1; i >= 0; i--)
page = PDDocAcquirePage(pdDoc, i);
int annotNum = PDPageGetNumAnnots(page);
for (i2 = annotNum - 1; i2 >= 0; i2--)
  if...
  PDPageRemoveAnnot(i, i2);
My Product Information:
Acrobat Pro 8.1.6, Windows

Start by reading the PDF standard (ISO 32000-1) to understand Actions vs. Destinations.
Then for each annot, you'll want to see which it has (and in the case of an Action, if it has more than one).  Then you need to parse the action or dest to see what it is and where it goes.  If you don't like it, then you'll delete it.
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Tue, 25 Oct 2011 09:25:32 -0700
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: How to remove links pointing to the same page?
How to remove links pointing to the same page?
created by OALD<http://forums.adobe.com/people/OALD> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3989576#3989576

Similar Messages

  • HT4463 How do I get back to the same page I was on?

    When I have finished reviewing an app, if I click the back arrow in the top left corner it takes me back to the first page of the category. Not very user friendly when there are dozens of pages to click through to get back to where you were. How do I get back to the same page I was on?

    This is what I mean:  The users guide gives me all these instructions.  BUT, it does not give instructions to just STOP.  I don't
    Pause a song
    Tap .
    Resume playback
    Tap .
    Raise or lower the volume
    Drag the onscreen volume slider or use the iPad volume buttons.
    Restart a song or a chapter in an audiobook or podcast
    Tap .
    Skip to the next song or chapter in an audiobook or podcast
    Tap .
    Go to the previous song or chapter in an audiobook or podcast
    Tap twice.
    Rewind or fast-forward
    Touch and hold or —the longer you hold the control, the faster the song rewinds or fast-forwards.
    View album art full-size
    Tap the album cover when playing a song.
    I don't want to pause, resume playback, restart or any of these things.  i just want to STOP.  How do I do that?

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • HOW TO PUT TWO PANNEL IN THE SAME PAGE

    HI ALL
    I NEED TO KNOW HOW TO PUT TWO PANNEL IN THE SAME PAGE TO FULLY UTILIZE FULL PAGE AREA BECAUSE THE PANNEL WIDTH IS TOO SMALL , SO I WANT TO MAKE THE PAPER CONTAIN TO PANNELS VERTICALLY.
    THANK YOU

    So Barb,
    I like to use multiple desktops and move back and forth between then using gestures. At the moment I have 5 open: Chrome, Firefox, Safari, Photoshop CS 6 and a desktop. I use "gestures" to navigate between them:
    Mac Basics: Multi-Touch gestures - Apple Support
    and I use Mission Control (F3) to move the various desktops around in the order I want them.
    Mac Basics: Mission Control - Apple Support
    So say I'm searching for a photo to open in CS 6, I find it on the open desktop then hit select "open" in CS 6 and go to that folder in the select pane.
    Even right now I'm typing this in Safari and "gesturing" back to Chrome where I did the search about multi touch and mission control. I drag copy the URL there  and gestured back here to paste the URL into this text.
    If you did a lot of photo searches, I set professional clients of mine in Chicago up with dual monitors (In this case you'd have an external monitor on extended desktop.). So all you need to do is just glance over at the second monitor slide your cursor over there open stuff up find your photo and go back to Photoshop and open it up.
    Hope this helps.

  • Different CSS link effects on the same page?

    I have a CSS menu that looks good and works using the a:hover
    and a:link rules. I want to have the links on the rest of the page
    act differently. Can someone help me understand how to create
    different CSS rollover effects for different links on the same
    page? Pleas be specific, I’m not great with CSS or code in
    general.

    Pseudo-classes and container styles are what you need - here
    are some
    tutorials.
    http://www.mako4css.com
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "edwheels" <[email protected]> wrote in
    message
    news:ej2e5g$i4p$[email protected]..
    >I have a CSS menu that looks good and works using the
    a:hover and a:link
    >rules.
    > I want to have the links on the rest of the page act
    differently. Can
    > someone
    > help me understand how to create different CSS rollover
    effects for
    > different
    > links on the same page? Pleas be specific, I?m not great
    with CSS or code
    > in
    > general.
    >

  • How to develp a subreport in the same page of the main report and processed when is called

    SSRS 2012
    Hi guys,
    I am developing a report that includes a subreport.
    therefore The report is made up by 2 sections:
    1) Show a grid (several rows - may be 100 or more - and some columns). It represent high level info  (Each row represent a specific item)
    2) The user click on a Row/column (eg: Item1, to see details that must be shown as graph.
    Here the problem: Searching info about SSRS reporting for subreports, drilldown, nested report and so on, no ones accomplish the requirements for the following reasons:
    1) Subreports: NOT open in the same page. The user must <go back> to see detail for other items, such as Item 2....
    2) Nested and DrillDown: Process data as the Main report (they are hidden and displayed after user action). In my case this leads to performance problem, because: if the main report has 200 objects (it means 200 graphs processed and hidden at the same time
    for the main reports).
    3) DrillThrough and Subreport: The detail data are processed only when the user select the interested item in the main report. Here the problem: the report is shown externally.
    Please, it there any possibility to have a subreport (or anything else) to be executed in the same report as the main report and processed only when the user make action?
    Thanks for your help.

    Hi Fasttrack2,
    According to your description, there is a main report with more than 100 rows of summary information, when users click the item of the row, the report need to jump to detail information shows as graph. The problem you are facing is that you are not sure
    subreport, drilldown or drillthrough report should be used? You hope to set display detail information in the main report and keep high performance of report.
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. Subreports are recommended when there are just a few subreport instances. We should not use subreports inside a group when there are many
    group instances, instead, consider using drillthrough reports. Drilldown reports process all data even when the data is first hidden. In order to improve the performance of the report, we can split drilldown reports into parameterized drillthrough reports,
    because Drillthrough reports do not run until a user clicks the drillthrough link in the main report.
    In this case, we can consider using drilldown or drillthrough report. In drilldown report, when we click a plus or minus button to expand or collapse a section of a report, the detail data will be displayed in place. By using drillthrough report, when we
    click the link in the main report, the detail data will be displayed, we can come back to the main report by click return button in the drillthrough report.
    Reference:
    Troubleshooting Reports: Report Performance
    Drillthrough, Drilldown, Subreports, and Nested Data Regions
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • How to remove item header on the last page

    Hi,
    We have an adobe form where, on the last page a BIG footer gets displayed.
    Now if the number of line items are not enough, they wont go till the last page, but the last would still be printed with no line items, just to accomodate the huge footer that we want to be displayed only on the last page.
    Now in doing this, we want that if there are no line items on the last page, the item header should not be displayed. We are not sure how do we do this.
    The same is accomplished in SAP Script, and there they are using WRITE_FORM with type DELETE. So anything that prints after that even on a new page, the item header wont get printed.
    Please suggest how do we do this in Adobe Forms.
    Thanks,
    Tirth

    Hi Mate,
    there is a contradiction then.
    in table header rows definition, we specify show header in subsequent pages, then the header appears only if there are items displayed on that page. in your case the table header shouldn't be displayed then please check why its comming out there...?
    well in any case if you want the script it would be like below on layout ready event of the header row.
    // run the below script in last page
    if(xfa.layout.page(this) == xfa.layout.pageCount()){
    var pageSFList = xfa.layout.pageContent(xfa.layout.page(this) - 1, "subform", false);
    var pageTotal = 0;
    // for each subform named <Item>, which is the data row of the table
    for (var i = 0; i < pageSFList.length; i++)
         var sf = pageSFList.item(i);
            if(sf.name == "headerrow"){ // if header row is found then chec is data row is visible and set its presence accordingly
               if(sf.parent.item.presence == "hidden"){
                   sf.presence = "hidden";
         if (sf.name == "Item") // if data row itself is found set its presence accordingly
           sf.parent.headerrow.presence = "visible";
    you might need to tweak the code according to your element names.
    hope this helps,
    Cheers,
    Sai

  • Interactive Report with Declarative Filter pointing to the same page

    I want to apply the declarative filter that will be applied to the IR in the same page. Can anyone let me know the settings to be done.
    Thanks
    Deb

    A redirect will not work - we render your page and you enter your value but then you never submit the page to be written to sessions state, rather, you call the page again. You need to create a button that submits the page and then a branch to the same page that passes the same parameters. That said, I created a test case and found some sort of bug with passing an IR condition in a branch - it is failing with an odd error. We are looking into that. In the meanwhile, is there a reason you need another item to do your filter and cannot just use the built-in capability of the interactive report?
    -- Sharon

  • How to remove link content from the link structure field

    Hi,
    I created a UDF as Link struture in marketing document title to link external file. After file has been linked to the UDF and saved, how do I remove it to empty the field? I tried to point to the field and right click, but couldn't find any function to remove the link.
    KC

    Press ALT + Double Click to remove the Link content from the UDF

  • How do I make dreamweaver links open on the same page?

    Hi all,
    I've created a site that has div tags for Header, navbar, main content, and footer. I am using a sprybar menu and I want the content of the hyperlink to display in the main content area. I know this was previously accomplished with frames and I could select the target as the main frame, but I hear that is bad practice or is becoming more obsolete with CSS. I have some intermediate knowledge with CSS. Does anyone know how I can accomplish this? I am using Dreamweaver 6

    One page websites aren't really a good idea as far as search engine optimization goes. It's better to have multiple pages with the same design that your menu moves to when clicked.
    That being said, you could do what you're talking about using javascript to change the display css of content <div> tags where, to start, there is a general info <div> and when one of the menu items is clicked, that <div> has its display property set to none, while another has it's display:none changed to display:block (so it appears). Each link would turn off all of the containers that aren't specific to the link itself, while turning on that one container that is.
    I use a script like this normally...
    <!doctype html>
    <html lang="en-us">
    <head>
    <meta charset="utf-8">
    <title>Quick, Little Show/Hide Script</title>
    <style>
    #one, #two {
        display:none;
    </style>
    <script type="text/javascript">
        function turnoff(id)
        {document.getElementById(id).style.display = 'none';}
        function turnon(id)
        {document.getElementById(id).style.display = 'block';}
    </script>
    </head>
    <body>
    <div id="one">some text</div>
    <div id="two">some other text</div>
    <div id="three">yet more text</div>
    <a href="#" onclick="turnoff('two'); turnoff('three'); turnon('one');">One</a> | <a href="#" onclick="turnoff('one'); turnoff('three'); turnon('two');">Two</a> | <a href="#" onclick="turnoff('one'); turnoff('two'); turnon('three');">Three</a>
    </body>
    </html>
    In the above example, divs one and two are turned off by default in the css. Div three shows when the page is loaded. The javascript tells a chosen id to change its display css to block or none depending on the function called in the onclick of a link. The link for "One" uses turnon('one') and turnoff('two') and turnoff('three') so, when it's clicked, two and three are set to display:none and one is set to display:block no matter what they were at to begin with.

  • When saving files under options the file name is duplicated how to remove extra folder with the same name

    Under Firefox Options I clicked Saving Files under Downloads but the file name appears twice and an extra folder with the same name is created within the folder i.e.:
    G:\Akbar's Songs\HAMARA FORUMS DOWNLOADS\HAMARA FORUMS DOWNLOADS
    As you can see the folder is repeated, how can I correct this?
    Also the music files I download from a site downloads as WinRar file and I need to open it. Is there an option where the files open automatically in the folder I have selected?
    Many thanks for your help.

    The "beta" version is for testing and may be more prone to problems, so I suggest trying the regular version (9.20) even though it hasn't been updated since 2010.

  • How do I prevent multiples of the same page downloading without a force quit?

    When I click on a link to download, Firefox 3.6.17 starts trying to download the page quickly over and over without success increasing in speed. I must do a force quite to stop this repetitive action as the many pages build up on my screen. This doesn't happen if I try it with Safari. I have FireFox for the MacBook. My laptop is 3 yrs old.
    Thanks in advance!

    Sounds that you have selected the Firefox application for a file type that it doesn't support.
    See:
    * https://support.mozilla.com/kb/Firefox+keeps+opening+many+tabs+or+windows

  • How do you get 2 different link colors on the same page in DW CS4

    Hi
    After creating a white link called “white link test” in a blue background, I need to create a blue link called “blue link test” in a white background. How do I accomplish this task In DW CS4? I would greatly appreciate any feedback. Thank you
    <style type="text/css">
    <!--
    #apDiv1 {
                    position:absolute;
                    width:117px;
                    height:47px;
                    z-index:1;
                    background-color: #0000FF;
                    left: 6px;
                    top: 103px;
    a:link {
                    color: #FFF;
    -->
    </style>
    </head>
    <body>
    <div id="apDiv1"><a href="file:///C|/wamp/www/laserzone/public_html/add_maintenance.php">white link test</a></div>
    <p> </p>
    <p>blue link test</p>
    </body>
    </html>

    Nothing has changed. A stylesheet is still a stylesheet.  And pseudo-classes are still pseudo-classes.
    You need to define a set of link states (link, visted, hover, active) for each ID or class name required.
    Let's say you want to have red  links in your #header and white links in your #footer.
    CSS:
    #header  a {text-decoration:none}
    #header a:link {color:red} /**unvisited**/
    #header a:visited  {color:gray} /**visited**/
    #header a:hover, /**on mouse over**/
    #header a:active, /**on  click**/
    #header a:focus {text-decoration:underline}
    #footer a  {text-decoration:none}
    #footer a:link {color:white}
    #footer a:visited  {color:yellow}
    #footer a:hover,
    #footer a:active,
    #footer a:focus  {text-decoration:underline}
    HTML:
    <div id="header">
    <a  href="some-link.html">Link in the header</a> |
    <a  href="some-link.html">Link in the header</a> |
    <a  href="some-link.html">Link in the header</a> |
    </div>
    <div  id="footer">
    <a href="some-link.html">Footer  link</a> |
    <a href="some-link.html">Footer  link</a> |
    <a href="some-link.html">Footer  link</a> |
    </div>
    For more on CSS pseudo classes:
    http://www.w3schools.com/css/css_pseudo_classes.asp
    Nancy O.
    Alt-Web  Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How do create different link attributes on the same page

    I am using CSS links for my menu. The links are white, large and bold, but I want an email link to be a different color, font and smaller in size. How can I do this?

    Yow 400 somthing views and no one to help this guy...wow you people are mean....
    Ok just use a class for the email link....
    put a span around that email link
    <span class="class_name"><a>email link</a></span>
    then in the css place the class
    .class_name{
    color:red;
    If this doesnt work then that means the class needs to be more specific example
    span .class_name{
    color:red;

  • Duplicate entries in iTunes display, but both entries point to the same physical location.

    I've seen lots of discussion about how to remove duplicate copies of the same song, but my issue is different.
    iTunes has duplicate entries in its database, but if I do show in finder, then both entries point to the same physical location.
    If I delete one entry, then the other entry becomes unusable.
    Any idea how I could clean this up? Its annoying because if I select an album to play, then each song gets played twice.

    @zoo_bink I too have exactly the same issue however it's not affecting all my files.
    One solution, which I'm contemplating, is to backup the iTunes Media folder, delete files, uninstall/reinstall iTunes then re-import the files. The issue may have arisen during initial import. (I'm not sure at this stage if Apple allow iTunes to be uninstalled.)
    iTunes music collection is showing 58.95GB versus 57.11GB in Finder so it's not a massive deal but annoying nonetheless as deleting entries isn't an option.
    Any suggestions welcome.
    MacBook Pro, OS X 10.9.1, iTunes 11.1.3 (8)

Maybe you are looking for