title: PDFSharp / How to set zoom level on an existing document
body: <p>I have an existing document on which I set some properties.  I would like to set the Zoom level but don't know how.  Anybody knows if and how I can set the zoom level on an existing document with PDFSharp.</p>
  
  <p>This is the existing (VB) code:</p>
  
  <pre><code>Dim doc = PdfReader.Open(New MemoryStream(bytesContent))
  
  doc.ViewerPreferences.CenterWindow = True
  doc.ViewerPreferences.FitWindow = True
  doc.ViewerPreferences.HideToolbar = False
  doc.PageLayout = PdfPageLayout.SinglePage
  </code></pre>
  
  <p>Thank you</p>