<?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 : How to set the pdf-viewer-preferences</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 : Sample Code : How to set the pdf-viewer-preferences]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 04:11:17 +0000</pubDate>
  <lastBuildDate>Tue, 30 Jun 2015 15:08:12 +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=1415</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[How to set the pdf-viewer-preferences : Hi IngoGreat, thanks a lot for...]]></title>
   <link>http://www.quickpdf.org/forum/how-to-set-the-pdfviewerpreferences_topic1415_post12590.html#12590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2638">mortendc</a><br /><strong>Subject:</strong> 1415<br /><strong>Posted:</strong> 30 Jun 15 at 3:08PM<br /><br />Hi Ingo<div><br></div><div>Great, thanks a lot for helping out!</div><div><br></div><div>Kind regards&nbsp;</div><div><br></div><div>Morten</div><div>&nbsp;</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 30 Jun 2015 15:08:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/how-to-set-the-pdfviewerpreferences_topic1415_post12590.html#12590</guid>
  </item> 
  <item>
   <title><![CDATA[How to set the pdf-viewer-preferences : Nice one, Ingo... Thanks!  Tom...]]></title>
   <link>http://www.quickpdf.org/forum/how-to-set-the-pdfviewerpreferences_topic1415_post6396.html#6396</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1140">Shotgun Tom</a><br /><strong>Subject:</strong> 1415<br /><strong>Posted:</strong> 17 Apr 10 at 4:45PM<br /><br />Nice one, Ingo... Thanks!<DIV>&nbsp;</DIV><DIV>Tom</DIV>]]>
   </description>
   <pubDate>Sat, 17 Apr 2010 16:45:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/how-to-set-the-pdfviewerpreferences_topic1415_post6396.html#6396</guid>
  </item> 
  <item>
   <title><![CDATA[How to set the pdf-viewer-preferences :  Hi!The following code is out...]]></title>
   <link>http://www.quickpdf.org/forum/how-to-set-the-pdfviewerpreferences_topic1415_post6388.html#6388</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1415<br /><strong>Posted:</strong> 16 Apr 10 at 9:16PM<br /><br />Hi!<br><br>The following code is out of a complete app.<br>There is a window where you can make all settings...<br>So in the code checkbox-values are used.<br>But this doesn't matter to you - you shall see how to call<br>the functions ;-)<br><br>The code is in Delphi but this should be no prob<br>for a developer ;-)<br><br>Cheers, Ingo<br><br><br>&nbsp;&nbsp; QP&nbsp; := TQuickPDF718.Create;<br>&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Save_Cursor&nbsp;&nbsp; := Screen.Cursor;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Screen.Cursor := crHourglass;&nbsp;&nbsp;&nbsp; // Show hourglass cursor<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.UnlockKey('...');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LoadFromFile(Edit1.text);<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If QP.EncryptionStatus &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Decrypt;<br><br>//-------------------------------------------<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbhtb.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(1,1)&nbsp; // Hide toolbar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(1,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbhmb.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(2,1)&nbsp; // Hide menubar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(2,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbhwui.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(3,1)&nbsp; // Hide windows user interface<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(3,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbrwfps.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(4,1)&nbsp; // Resize window to first page size<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(4,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbcw.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(5,1)&nbsp; // Center window<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(5,0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbddt.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(6,1)&nbsp; // Display document title<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetViewerPreferences(6,0);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbseite.Checked = False Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbfwindow.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(1, -1) // -1 for Fit in window<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(1, 100);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbfwidth.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(1, -2) // -2 for Fit in Width<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(1, 100);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbzoom.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(1, 100);// Display first page with 100%<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbseite.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbfwindow.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(SpinEdit1.Value, -1) // -1 for Fit in window<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(SpinEdit1.Value, 100);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbfwidth.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(SpinEdit1.Value, -2) // -2 for Fit in Width<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(SpinEdit1.Value, 100);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if cbzoom.Checked = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOpenActionDestination(SpinEdit1.Value, 100);// Display first page with 100%<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SaveToFile(Edit1.Text);<br>//-------------------------------------------<br>&nbsp;&nbsp; finally<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Free;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Screen.Cursor := Save_Cursor;<br>&nbsp;&nbsp; end;<br><br>&nbsp;&nbsp; ShowMessage('Complete...');<br>&nbsp;<span style="font-size:10px"><br /><br />Edited by Ingo - 19 Apr 10 at 6:23AM</span>]]>
   </description>
   <pubDate>Fri, 16 Apr 2010 21:16:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/how-to-set-the-pdfviewerpreferences_topic1415_post6388.html#6388</guid>
  </item> 
 </channel>
</rss>