<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : NewNamedDestination - will not add a nameddest</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : NewNamedDestination - will not add a nameddest]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 17:11:13 +0000</pubDate>
  <lastBuildDate>Tue, 13 Dec 2011 07:37:05 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=2068</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[NewNamedDestination - will not add a nameddest :   We have reproduced the bug...]]></title>
   <link>http://www.quickpdf.org/forum/newnameddestination-will-not-add-a-nameddest_topic2068_post8813.html#8813</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2068<br /><strong>Posted:</strong> 13 Dec 11 at 7:37AM<br /><br /><div><br></div><div>We have reproduced the bug and hopefully will have a fix sometime soon. &nbsp;It is not a trivial fix as the PDF spec allows for multiple methods for storing Destinations.</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Tue, 13 Dec 2011 07:37:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newnameddestination-will-not-add-a-nameddest_topic2068_post8813.html#8813</guid>
  </item> 
  <item>
   <title><![CDATA[NewNamedDestination - will not add a nameddest : Hi,I want to set new named destinations,...]]></title>
   <link>http://www.quickpdf.org/forum/newnameddestination-will-not-add-a-nameddest_topic2068_post8802.html#8802</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=387">hubbra</a><br /><strong>Subject:</strong> 2068<br /><strong>Posted:</strong> 09 Dec 11 at 3:16PM<br /><br />Hi,<br><br>I want to set new named destinations, and failed, so I wrote this little test to read a PDF with namedDest, search one ... this works, but I am confused about the left and top parameters.<br>And then use the nDestID and create a NewNamedDest ... Result 1, but there is nothing inside.<br>Than i create a new nDestID with NewDestination, Result &lt;&gt; 0, so it should be ok.<br>And try to create with it a NewNamedDestination, Result 1 but nothing inside ...<br>Save the PDF to a new file and no new nameddest inside, only the old ones ...<br>I got left = -185 and thought it should be 0 or 1 because it shows the first position on page.<br>I got top = 644 on the middle Position, and 804 on the page top ... <br><br>What do I have to do different ?<br><br>The example is in PowerBasic, using your INC file.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>#COMPILE EXE<br>#DIM ALL<br>#DEBUG ERROR ON<br><br>#INCLUDE "QuickPDFDLL0726.inc"<br>#INCLUDE "QuickPDFLizenz.inc"<br><br>FUNCTION PBMAIN () AS LONG<br>&nbsp; LOCAL nID, nResult, nH, i, x, nDestID AS LONG<br>&nbsp; LOCAL sPDF, sKW, sDestName AS ASCIIZ*256<br><br>&nbsp; sPDF = "Test.pdf"<br><br>&nbsp; nID = QuickPDFCreateLibrary()<br><br>&nbsp; IF QuickPDFUnlockKey(nID, $QuickPDFLizenzKeyHB&nbsp; ) THEN<br>&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFLibraryVersion(nID)<br>&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFLicenseInfo(nID)<br>&nbsp;&nbsp;&nbsp;&nbsp; nResult = QuickPDFLoadFromFile(nID, sPDF)<br>&nbsp;&nbsp;&nbsp;&nbsp; IF nResult &lt;&gt; 1 THEN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "Error PDF could not be opened:", nResult<br>&nbsp;&nbsp;&nbsp;&nbsp; ELSE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "PDF is open, some infos:"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "GetDocumentFileName()='"+QuickPDFGetDocumentFileName(nID)+"'"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 0 ) ' 0 = PDF Version<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 1 ) ' 1 = Author<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 2 ) ' 2 = Title<br>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 3 ) ' 3 = Subject<br>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 4 ) ' 4 = Keywords<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 5 ) ' 5 = Creator<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 6 ) ' 6 = Producer<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 7 ) ' 7 = Creation date<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? QuickPDFGetInformation(nID, 8 ) ' 8 = Modification date<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "PageCount:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " QuickPDFDAGetPageCount(nID, nH)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sDestName = "K01Ab"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nResult = QuickPDFGetNamedDestination(nID,sDestName)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF nResult=0 THEN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "not found:&nbsp; GetNamedDestination()",nID,sDestName<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ELSE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nDestID = nResult<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "gefunden:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ",nDestID<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "Infos zu&nbsp; " sDestName<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "PAGE:&nbsp;&nbsp;&nbsp;&nbsp; " QuickPDFGetDestPage(nID,nDestID)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "TYPE:&nbsp;&nbsp;&nbsp;&nbsp; " QuickPDFGetDestType(nID,nDestID)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "V-Left:&nbsp;&nbsp; " QuickPDFGetDestValue(nID,nDestID,1) ' Left<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "V-Top:&nbsp;&nbsp;&nbsp; " QuickPDFGetDestValue(nID,nDestID,2) ' Top<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "V-Right:&nbsp; " QuickPDFGetDestValue(nID,nDestID,3) ' Right<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "V-Bottom: " QuickPDFGetDestValue(nID,nDestID,4) ' Bottom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "V-Zoom:&nbsp;&nbsp; " QuickPDFGetDestValue(nID,nDestID,5) ' Zoom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sDestName = "K01Xx1"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "Set NewNamedDest", QuickPDFNewNamedDestination(nID, sDestName, nDestID)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "TEST: ", QuickPDFGetNamedDestination(nID,sDestName)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END IF<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sDestName = "K01Xx2"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nDestID&nbsp;&nbsp; = QuickPDFNewDestination(nID, 2, 100, 1, 1, 500,0,0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF nDestID=0 THEN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "Error in NewDestination()"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ELSE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "NewDestination is OK"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "Set NewNamedDest", QuickPDFNewNamedDestination(nID, sDestName, nDestID)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "TEST: ", QuickPDFGetNamedDestination(nID,sDestName)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END IF<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sPDF = "NeuTest.pdf"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KILL sPDF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF QuickPDFSaveToFile(nID, sPDF ) THEN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "OK, gespeichert"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ELSE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "Fehler beim speichern"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END IF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? "Reset", QuickPDFReleaseLibrary(nID), " (1=OK)"<br>&nbsp;&nbsp;&nbsp;&nbsp; END IF<br>&nbsp; ELSE<br>&nbsp;&nbsp;&nbsp;&nbsp; ? "ERROR"<br>&nbsp; END IF<br><br>&nbsp; ? "press key ..."<br><br>&nbsp; WAITKEY$<br><br>END FUNCTION<br></pre></td></tr></table><br><br><br><br>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 15:16:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/newnameddestination-will-not-add-a-nameddest_topic2068_post8802.html#8802</guid>
  </item> 
 </channel>
</rss>