No announcement yet.

Open a pdf file to a location within the file

  • Filter
  • Time
  • Show
Clear All
new posts

  • Open a pdf file to a location within the file

    Hi all!

    We've recently transferred from Adobe software to Foxit PhantomPDF and, as the result, have lost some of the very essential functionality that used to be available with Adobe products.

    The code below (VBA) would open a pdf to a certain item (location) based on the "nameddest" parameter passed into the file (all named destinations is set up manually before the file is uploaded to the web server)

    strPathName = "C:\Program Files (x86)\Internet Explorer\iexplore.exe https://servername/FileHandler.ashx?DocumentID=" & _
    rs!DocumentID & "&inline=1#nameddest=" & Me!ItemNum & "&zoom=100"
    lngTaskID = Shell(strPathName, vbNormalFocus)

    That worked just fine with Adobe Acrobat/Reader, but once we've transferred to Foxit PhantomPDF, all pdf's documents open only to the first page. Is there a way to make Foxit open documents to a location within a file?

    Thank you.

  • #2
    Hi GreenSky,

    Could you please kindly provide a PDF sample for testing only? If it is inconvenient to upload here, you may email it as attachment to [email protected].


    • #3
      Seems that now linking to Named destinations works in Foxit Reader.

      For example or even opens on Contents page in Foxit in browser.

      But I wonder how to write correct link to Named dest which has spaces :/


      • #4
        datagy, Would you please choose to use %20 to replace each blank space there to see if it works?